]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - package/debian-mingw64/rules
ncurses 5.9 - patch 20150509
[ncurses.git] / package / debian-mingw64 / rules
index da793d921b08e7334cd290189a20a5ec0bd9df6e..1177e112a3fe57a29e4a77116392bf1bace2c99b 100644 (file)
@@ -17,6 +17,7 @@ CC_NORMAL = -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
 CC_STRICT = $(CC_NORMAL) -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wwrite-strings -ansi -pedantic
 
 TARGET    = x86_64-w64-mingw32
+MINGW_BIN = /usr/bin
 MINGW_TOP = /usr/$(TARGET)
 MINGW_TMP = $(CURDIR)/debian/mingw64-ncurses6
 
@@ -34,7 +35,9 @@ CONFIG_OPTIONS = \
        --enable-const \
        --enable-ext-colors \
        --enable-ext-mouse \
+       --enable-ext-putwin \
        --enable-interop \
+       --enable-pc-files \
        --enable-sp-funcs \
        --enable-term-driver \
        --enable-warnings \
@@ -77,6 +80,7 @@ configure-stamp:
                --target=$(TARGET) \
                --prefix=$(MINGW_TOP) \
                --with-build-cc=$(BUILD_CC) \
+               --with-pkg-config-libdir=/usr/$(TARGET)/lib/pkgconfig \
                $(CONFIG_OPTIONS)
 
        touch configure-stamp
@@ -108,6 +112,13 @@ install-stamp: build-stamp
 
        $(MAKE) install.libs DESTDIR=$(MINGW_TMP)
 
+       mkdir -p $(MINGW_TMP)$(MINGW_BIN)
+       for name in $(MINGW_TMP)$(MINGW_TOP)/bin/*-config; \
+       do \
+               base=`basename $$name`; \
+               ln -v $$name $(MINGW_TMP)$(MINGW_BIN)/$(TARGET)-$$base; \
+       done
+
        touch install-stamp
 
 # Build architecture-independent files here.