vcpkg/ports/pdcurses/nmake-install.patch
Kai Pastor 67e4272121
[pdcurses] Revise portfile (#22092)
* Use vcpkg_build_nmake

* Update versions

* Use INSTALLDIR

* Update versions
2021-12-22 00:03:46 -05:00

22 lines
619 B
Diff

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