mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 21:18:59 +08:00
Added package for PDCurses
This commit is contained in:
parent
cb0d924ec3
commit
38e152cb29
3
ports/pdcurses/CONTROL
Normal file
3
ports/pdcurses/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: pdcurses
|
||||
Version: 3.4
|
||||
Description: Public Domain Curses - a curses library for environments that don't fit the termcap/terminfo model.
|
7
ports/pdcurses/LICENSE
Normal file
7
ports/pdcurses/LICENSE
Normal file
@ -0,0 +1,7 @@
|
||||
The core package is in the public domain, but small portions of PDCurses are subject to copyright under various licenses.
|
||||
|
||||
The win32 files are released to the public domain.
|
||||
|
||||
If you use PDCurses in an application, an acknowledgement would be appreciated, but is not mandatory. If you make corrections or enhancements to PDCurses, please forward them to the current maintainer for the benefit of other users.
|
||||
|
||||
This software is provided AS IS with NO WARRANTY whatsoever.
|
26
ports/pdcurses/portfile.cmake
Normal file
26
ports/pdcurses/portfile.cmake
Normal file
@ -0,0 +1,26 @@
|
||||
include(${CMAKE_TRIPLET_FILE})
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/PDCurses-3.4)
|
||||
find_program(NMAKE nmake)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://sourceforge.net/projects/pdcurses/files/latest/download?source=files"
|
||||
FILENAME "pdcurs34.zip"
|
||||
SHA512 cf2144359935ea553954e60e74318168d4c6fcee48648dfec74325742a61786b285c59ad0a014cc1f4039a332c3dbf2031c64865025a0cd25ef8faacc5827d05
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
message(STATUS "Build ${TARGET_TRIPLET}")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${NMAKE} -f vcwin32.mak WIDE=Y UTF8=Y PDCLIBS
|
||||
WORKING_DIRECTORY ${SOURCE_PATH}/win32
|
||||
LOGNAME build-${TARGET_TRIPLET}
|
||||
)
|
||||
message(STATUS "Build ${TARGET_TRIPLET} done")
|
||||
|
||||
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/pdcurses RENAME copyright)
|
||||
file(COPY ${SOURCE_PATH}/win32/pdcurses.lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
||||
file(COPY ${SOURCE_PATH}/win32/panel.lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
||||
file(COPY ${SOURCE_PATH}/curses.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
||||
file(COPY ${SOURCE_PATH}/panel.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
||||
file(COPY ${SOURCE_PATH}/term.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
Loading…
Reference in New Issue
Block a user