2021-05-01 02:12:25 +08:00
|
|
|
vcpkg_download_distfile(
|
|
|
|
ARCHIVE_PATH
|
|
|
|
URLS
|
2023-01-24 08:05:18 +08:00
|
|
|
"https://invisible-mirror.net/archives/ncurses/ncurses-${VERSION}.tar.gz"
|
|
|
|
"ftp://ftp.invisible-island.net/ncurses/ncurses-${VERSION}.tar.gz"
|
|
|
|
"https://ftp.gnu.org/gnu/ncurses/ncurses-${VERSION}.tar.gz"
|
|
|
|
FILENAME "ncurses-${VERSION}.tgz"
|
|
|
|
SHA512 1c2efff87a82a57e57b0c60023c87bae93f6718114c8f9dc010d4c21119a2f7576d0225dab5f0a227c2cfc6fb6bdbd62728e407f35fce5bf351bb50cf9e0fd34
|
2021-05-01 02:12:25 +08:00
|
|
|
)
|
|
|
|
|
2022-09-09 02:36:51 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
2021-12-21 00:35:06 +08:00
|
|
|
ARCHIVE "${ARCHIVE_PATH}"
|
2021-05-01 02:12:25 +08:00
|
|
|
)
|
|
|
|
|
2023-01-24 08:05:18 +08:00
|
|
|
vcpkg_list(SET OPTIONS)
|
|
|
|
|
2021-12-21 00:35:06 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
2021-05-01 02:12:25 +08:00
|
|
|
list(APPEND OPTIONS
|
|
|
|
--with-cxx-shared
|
2023-03-01 02:09:09 +08:00
|
|
|
--with-shared # "lib model"
|
|
|
|
--without-normal # "lib model"
|
2021-05-01 02:12:25 +08:00
|
|
|
)
|
|
|
|
endif()
|
2023-01-05 06:49:02 +08:00
|
|
|
|
|
|
|
if(NOT VCPKG_TARGET_IS_MINGW)
|
|
|
|
list(APPEND OPTIONS
|
|
|
|
--enable-mixed-case
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2021-12-21 00:35:06 +08:00
|
|
|
if(VCPKG_TARGET_IS_MINGW)
|
|
|
|
list(APPEND OPTIONS
|
|
|
|
--disable-home-terminfo
|
|
|
|
--enable-term-driver
|
|
|
|
--disable-termcap
|
|
|
|
)
|
|
|
|
endif()
|
2021-05-01 02:12:25 +08:00
|
|
|
|
|
|
|
vcpkg_configure_make(
|
2022-09-09 02:36:51 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-11-04 06:19:08 +08:00
|
|
|
DETERMINE_BUILD_TRIPLET
|
2021-05-01 02:12:25 +08:00
|
|
|
NO_ADDITIONAL_PATHS
|
2023-01-24 08:05:18 +08:00
|
|
|
OPTIONS
|
|
|
|
${OPTIONS}
|
|
|
|
--disable-db-install
|
|
|
|
--enable-pc-files
|
|
|
|
--without-ada
|
2023-03-01 02:09:09 +08:00
|
|
|
--without-debug # "lib model"
|
2023-01-24 08:05:18 +08:00
|
|
|
--without-manpages
|
|
|
|
--without-progs
|
|
|
|
--without-tack
|
|
|
|
--without-tests
|
|
|
|
--with-pkg-config-libdir=libdir
|
2021-05-01 02:12:25 +08:00
|
|
|
)
|
|
|
|
vcpkg_install_make()
|
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
|
2021-12-21 00:35:06 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2024-04-10 00:16:18 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|