[pdcurses] Add usage

This commit is contained in:
NancyLi1013 2019-11-18 23:18:03 -08:00
parent 29def6aa63
commit 5a161e316b
3 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
Source: pdcurses
Version: 3.8-1
Version: 3.8-2
Homepage: https://sourceforge.net/projects/pdcurses/
Description: Public Domain Curses - a curses library for environments that don't fit the termcap/terminfo model.

View File

@ -1,9 +1,7 @@
if(NOT VCPKG_CRT_LINKAGE STREQUAL "dynamic")
message(FATAL_ERROR "PDCurses only supports dynamic CRT linkage")
endif()
include(vcpkg_common_functions)
find_program(NMAKE nmake)
vcpkg_from_github(
@ -68,3 +66,6 @@ file(
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/pdcurses RENAME copyright)
vcpkg_copy_pdbs()
# Install usage
configure_file(${CMAKE_CURRENT_LIST_DIR}/usage ${CURRENT_PACKAGES_DIR}/share/${PORT}/usage @ONLY)

1
ports/pdcurses/usage Normal file
View File

@ -0,0 +1 @@
Define PDC_DLL_BUILD to import external variables if building pdcurses as a DLL on Windows.