mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-10 20:09:01 +08:00
2c208f9831
Co-authored-by: Osyotr <8740768+Osyotr@users.noreply.github.com>
24 lines
792 B
CMake
24 lines
792 B
CMake
vcpkg_download_distfile(
|
|
ARCHIVE
|
|
URLS https://ftp.gnu.org/gnu/readline/readline-8.1.tar.gz
|
|
FILENAME readline-8.1.tar.gz
|
|
SHA512 27790d0461da3093a7fee6e89a51dcab5dc61928ec42e9228ab36493b17220641d5e481ea3d8fee5ee0044c70bf960f55c7d3f1a704cf6b9c42e5c269b797e00
|
|
)
|
|
|
|
vcpkg_extract_source_archive(SOURCE_PATH ARCHIVE "${ARCHIVE}")
|
|
|
|
vcpkg_configure_make(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
--with-curses=yes
|
|
)
|
|
|
|
vcpkg_install_make()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/tools/readline-unix/bin" "${CURRENT_PACKAGES_DIR}/tools/readline-unix/debug/bin")
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|