Skip to content

Commit

Permalink
[ncurses] Update to 6.4 (#29129)
Browse files Browse the repository at this point in the history
* [ncurses] Update to 6.4

* Adopt new pkgconfig dir option

Fixes native mingw builds.
  • Loading branch information
dg0yt committed Jan 24, 2023
1 parent 0a761bd commit cb32d75
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 36 deletions.
55 changes: 23 additions & 32 deletions ports/ncurses/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,28 +1,20 @@
set(NCURSES_VERSION_STR 6.3)
vcpkg_download_distfile(
ARCHIVE_PATH
URLS
"https://invisible-mirror.net/archives/ncurses/ncurses-${NCURSES_VERSION_STR}.tar.gz"
"ftp://ftp.invisible-island.net/ncurses/ncurses-${NCURSES_VERSION_STR}.tar.gz"
"https://ftp.gnu.org/gnu/ncurses/ncurses-${NCURSES_VERSION_STR}.tar.gz"
FILENAME "ncurses-${NCURSES_VERSION_STR}.tgz"
SHA512 5373f228cba6b7869210384a607a2d7faecfcbfef6dbfcd7c513f4e84fbd8bcad53ac7db2e7e84b95582248c1039dcfc7c4db205a618f7da22a166db482f0105
"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}"
)

set(OPTIONS
--disable-db-install
--enable-pc-files
--without-ada
--without-manpages
--without-progs
--without-tack
--without-tests
)
vcpkg_list(SET OPTIONS)

if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
list(APPEND OPTIONS
--with-shared
Expand All @@ -45,27 +37,26 @@ if(VCPKG_TARGET_IS_MINGW)
)
endif()

file(MAKE_DIRECTORY "${CURRENT_INSTALLED_DIR}/debug/lib/pkgconfig")
file(MAKE_DIRECTORY "${CURRENT_INSTALLED_DIR}/lib/pkgconfig")

set(OPTIONS_DEBUG
"--with-pkg-config-libdir=${CURRENT_INSTALLED_DIR}/debug/lib/pkgconfig"
--with-debug
--without-normal
)
set(OPTIONS_RELEASE
"--with-pkg-config-libdir=${CURRENT_INSTALLED_DIR}/lib/pkgconfig"
--without-debug
--with-normal
)

vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}"
DETERMINE_BUILD_TRIPLET
OPTIONS ${OPTIONS}
OPTIONS_DEBUG ${OPTIONS_DEBUG}
OPTIONS_RELEASE ${OPTIONS_RELEASE}
NO_ADDITIONAL_PATHS
OPTIONS
${OPTIONS}
--disable-db-install
--enable-pc-files
--without-ada
--without-manpages
--without-progs
--without-tack
--without-tests
--with-pkg-config-libdir=libdir
OPTIONS_DEBUG
--with-debug
--without-normal
OPTIONS_RELEASE
--without-debug
--with-normal
)
vcpkg_install_make()

Expand Down
3 changes: 1 addition & 2 deletions ports/ncurses/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "ncurses",
"version": "6.3",
"port-version": 4,
"version": "6.4",
"description": "Free software emulation of curses in System V Release 4.0, and more",
"homepage": "https://invisible-island.net/ncurses/announce.html",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5261,8 +5261,8 @@
"port-version": 0
},
"ncurses": {
"baseline": "6.3",
"port-version": 4
"baseline": "6.4",
"port-version": 0
},
"neargye-semver": {
"baseline": "0.3.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/n-/ncurses.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c557b7daa2f3a87a54e037e7b984ad8a661c5903",
"version": "6.4",
"port-version": 0
},
{
"git-tree": "83eac97c40a368314b01639191657529194d8bdc",
"version": "6.3",
Expand Down

0 comments on commit cb32d75

Please sign in to comment.