early-access version 2853
This commit is contained in:
7
externals/vcpkg/ports/pdcurses/LICENSE
vendored
Executable file
7
externals/vcpkg/ports/pdcurses/LICENSE
vendored
Executable 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.
|
||||
21
externals/vcpkg/ports/pdcurses/nmake-install.patch
vendored
Executable file
21
externals/vcpkg/ports/pdcurses/nmake-install.patch
vendored
Executable file
@@ -0,0 +1,21 @@
|
||||
diff --git a/wincon/Makefile.vc b/wincon/Makefile.vc
|
||||
index 80c4689..1bae388 100644
|
||||
--- a/wincon/Makefile.vc
|
||||
+++ b/wincon/Makefile.vc
|
||||
@@ -118,3 +118,16 @@ tui.obj: $(demodir)\tui.c $(demodir)\tui.h
|
||||
|
||||
tuidemo.obj: $(demodir)\tuidemo.c
|
||||
$(BUILD) -I$(demodir) $(demodir)\tuidemo.c
|
||||
+
|
||||
+install: all
|
||||
+ -mkdir $(INSTALLDIR)\lib
|
||||
+ copy pdcurses.lib $(INSTALLDIR)\lib
|
||||
+!ifdef DLL
|
||||
+ -mkdir $(INSTALLDIR)\bin
|
||||
+ copy pdcurses.dll $(INSTALLDIR)\bin
|
||||
+!endif
|
||||
+!ifndef SKIP_HEADERS
|
||||
+ -mkdir $(INSTALLDIR)\include
|
||||
+ copy $(PDCURSES_SRCDIR)\curses.h $(INSTALLDIR)\include
|
||||
+ copy $(PDCURSES_SRCDIR)\panel.h $(INSTALLDIR)\include
|
||||
+!endif
|
||||
42
externals/vcpkg/ports/pdcurses/portfile.cmake
vendored
Executable file
42
externals/vcpkg/ports/pdcurses/portfile.cmake
vendored
Executable file
@@ -0,0 +1,42 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO wmcbrine/PDCurses
|
||||
REF 6c1f95c4fa9f9f105879c2d99dd72a5bf335c046 # 3.9
|
||||
SHA512 2d682a3516baaa58a97854aca64d985768b7af76d998240b54afc57ddf2a44894835a1748888f8dd7c1cc8045ede77488284f8adf1b73878879b4b4d3391218d
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
nmake-install.patch
|
||||
)
|
||||
|
||||
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
||||
cmake_path(NATIVE_PATH SOURCE_PATH PDCURSES_SRCDIR)
|
||||
set(DLL_OPTION "")
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||
set(DLL_OPTION DLL=Y)
|
||||
endif()
|
||||
vcpkg_build_nmake(
|
||||
SOURCE_PATH "${SOURCE_PATH}/wincon"
|
||||
PROJECT_NAME Makefile.vc
|
||||
ENABLE_INSTALL
|
||||
OPTIONS
|
||||
/A
|
||||
"PDCURSES_SRCDIR=${PDCURSES_SRCDIR}"
|
||||
WIDE=Y
|
||||
UTF8=Y
|
||||
${DLL_OPTION}
|
||||
OPTIONS_RELEASE
|
||||
"CFLAGS=-D_CRT_SECURE_NO_WARNINGS"
|
||||
"LDFLAGS="
|
||||
OPTIONS_DEBUG
|
||||
"CFLAGS=-D_CRT_SECURE_NO_WARNINGS -DPDCDEBUG"
|
||||
"LDFLAGS=-debug"
|
||||
DEBUG=Y
|
||||
SKIP_HEADERS=Y
|
||||
)
|
||||
vcpkg_copy_pdbs()
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/curses.h" "#ifdef PDC_DLL_BUILD" "#if 1")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
8
externals/vcpkg/ports/pdcurses/vcpkg.json
vendored
Executable file
8
externals/vcpkg/ports/pdcurses/vcpkg.json
vendored
Executable file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "pdcurses",
|
||||
"version-string": "3.9",
|
||||
"port-version": 3,
|
||||
"description": "Public Domain Curses - a curses library for environments that don't fit the termcap/terminfo model.",
|
||||
"homepage": "https://pdcurses.org/",
|
||||
"supports": "windows & !uwp & !mingw"
|
||||
}
|
||||
Reference in New Issue
Block a user