ncurses 6.0 - patch 20160903
[ncurses.git] / package / debian-mingw / rules
old mode 100644 (file)
new mode 100755 (executable)
index ba40251..6ac4c43
@@ -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    = i686-w64-mingw32
+MINGW_BIN = /usr/bin
 MINGW_TOP = /usr/$(TARGET)
 MINGW_TMP = $(CURDIR)/debian/mingw32-ncurses6
 
@@ -31,22 +32,17 @@ CONFIG_OPTIONS = \
        --disable-macros \
        --disable-overwrite \
        --disable-termcap \
-       --enable-const \
-       --enable-ext-colors \
-       --enable-ext-mouse \
        --enable-interop \
-       --enable-sp-funcs \
+       --enable-pc-files \
        --enable-term-driver \
        --enable-warnings \
        --enable-widec \
        --verbose \
-       --with-chtype=uint32_t \
-       --with-mmask_t=uint32_t \
+       --with-abi-version=6 \
        --with-cxx-shared \
        --with-develop \
        --with-fallbacks=unknown,rxvt \
        --with-shared \
-       --with-tparm-arg=intptr_t \
        --with-trace \
        --with-xterm-kbs=DEL \
        --without-ada \
@@ -77,6 +73,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 +105,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.