mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-17 08:37:50 +08:00
be4195ad10
<!-- If your PR fixes issues, please note that here by adding "Fixes #NNNNNN." for each fixed issue on separate lines. --> Fixes https://github.com/microsoft/vcpkg/issues/37867 - [x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [ ] ~SHA512s are updated for each updated download.~ - [ ] ~The "supports" clause reflects platforms that may be fixed by this new version.~ - [ ] ~Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file.~ - [ ] ~Any patches that are no longer applied are deleted from the port's directory.~ - [x] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [x] Only one version is added to each modified port's versions file.
67 lines
1.8 KiB
CMake
67 lines
1.8 KiB
CMake
vcpkg_download_distfile(
|
|
ARCHIVE_PATH
|
|
URLS
|
|
"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
|
|
)
|
|
|
|
vcpkg_extract_source_archive(
|
|
SOURCE_PATH
|
|
ARCHIVE "${ARCHIVE_PATH}"
|
|
)
|
|
|
|
vcpkg_list(SET OPTIONS)
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
|
list(APPEND OPTIONS
|
|
--with-cxx-shared
|
|
--with-shared # "lib model"
|
|
--without-normal # "lib model"
|
|
)
|
|
endif()
|
|
|
|
if(NOT VCPKG_TARGET_IS_MINGW)
|
|
list(APPEND OPTIONS
|
|
--enable-mixed-case
|
|
)
|
|
endif()
|
|
|
|
if(VCPKG_TARGET_IS_MINGW)
|
|
list(APPEND OPTIONS
|
|
--disable-home-terminfo
|
|
--enable-term-driver
|
|
--disable-termcap
|
|
)
|
|
endif()
|
|
|
|
vcpkg_configure_make(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
DETERMINE_BUILD_TRIPLET
|
|
NO_ADDITIONAL_PATHS
|
|
OPTIONS
|
|
${OPTIONS}
|
|
--disable-db-install
|
|
--enable-pc-files
|
|
--without-ada
|
|
--without-debug # "lib model"
|
|
--without-manpages
|
|
--without-progs
|
|
--without-tack
|
|
--without-tests
|
|
--with-pkg-config-libdir=libdir
|
|
)
|
|
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")
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|