forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ncurses] Add new port (microsoft#17226)
* [ncurses] Add new port. * x-add-version * Test ncurses port against CMake.
- Loading branch information
Showing
6 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
vcpkg_fail_port_install(ON_TARGET "Windows" "UWP") | ||
|
||
vcpkg_download_distfile( | ||
ARCHIVE_PATH | ||
URLS | ||
"https://invisible-mirror.net/archives/ncurses/ncurses-6.2.tar.gz" | ||
"ftp://ftp.invisible-island.net/ncurses/ncurses-6.2.tar.gz" | ||
"ftp://ftp.gnu.org/gnu/ncurses/ncurses-6.2.tar.gz" | ||
FILENAME "ncurses-6.2.tgz" | ||
SHA512 4c1333dcc30e858e8a9525d4b9aefb60000cfc727bc4a1062bace06ffc4639ad9f6e54f6bdda0e3a0e5ea14de995f96b52b3327d9ec633608792c99a1e8d840d | ||
) | ||
|
||
vcpkg_extract_source_archive_ex( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
ARCHIVE ${ARCHIVE_PATH} | ||
) | ||
|
||
set(OPTIONS | ||
--disable-db-install | ||
--enable-pc-files | ||
--without-manpages | ||
--without-progs | ||
--without-tack | ||
--without-tests | ||
) | ||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic) | ||
list(APPEND OPTIONS | ||
--with-shared | ||
--with-cxx-shared | ||
--without-normal | ||
) | ||
endif() | ||
|
||
set(OPTIONS_DEBUG | ||
--with-pkg-config-libdir=${CURRENT_INSTALLED_DIR}/debug/lib/pkgconfig | ||
--with-debug | ||
) | ||
set(OPTIONS_RELEASE | ||
--with-pkg-config-libdir=${CURRENT_INSTALLED_DIR}/lib/pkgconfig | ||
--without-debug | ||
) | ||
|
||
vcpkg_configure_make( | ||
SOURCE_PATH ${SOURCE_PATH} | ||
OPTIONS ${OPTIONS} | ||
OPTIONS_DEBUG ${OPTIONS_DEBUG} | ||
OPTIONS_RELEASE ${OPTIONS_RELEASE} | ||
NO_ADDITIONAL_PATHS | ||
) | ||
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 "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "ncurses", | ||
"version-string": "6.2", | ||
"description": "free software emulation of curses in System V Release 4.0", | ||
"supports": "!(windows | uwp)" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"versions": [ | ||
{ | ||
"git-tree": "ab8de39c1659867da459ac0bec7e09bee5762819", | ||
"version-string": "6.2", | ||
"port-version": 0 | ||
} | ||
] | ||
} |