2022-11-22 00:56:47 +08:00
|
|
|
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
|
|
|
|
set(filename readline-${VERSION}.tar.gz)
|
2022-01-05 11:57:18 +08:00
|
|
|
vcpkg_download_distfile(
|
2022-11-22 00:56:47 +08:00
|
|
|
ARCHIVE
|
|
|
|
URLS
|
|
|
|
"https://ftpmirror.gnu.org/gnu/readline/${filename}"
|
|
|
|
"https://ftp.gnu.org/gnu/readline/${filename}"
|
|
|
|
FILENAME "${filename}"
|
|
|
|
SHA512 0a451d459146bfdeecc9cdd94bda6a6416d3e93abd80885a40b334312f16eb890f8618a27ca26868cebbddf1224983e631b1cbc002c1a4d1cd0d65fba9fea49a
|
2022-01-05 11:57:18 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_extract_source_archive(SOURCE_PATH ARCHIVE "${ARCHIVE}")
|
|
|
|
|
|
|
|
vcpkg_configure_make(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-11-22 00:56:47 +08:00
|
|
|
DETERMINE_BUILD_TRIPLET
|
2022-01-22 03:08:38 +08:00
|
|
|
OPTIONS
|
2022-01-05 11:57:18 +08:00
|
|
|
--with-curses=yes
|
2022-11-22 00:56:47 +08:00
|
|
|
--disable-install-examples
|
2022-01-05 11:57:18 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_make()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
|
2022-01-22 03:08:38 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2022-01-05 11:57:18 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|