ncurses 5.9 - patch 20150328
[ncurses.git] / package / debian-mingw / rules
index 0c6362ad87b7326f307434a7070fb3fee50ef032..9b910ea56b39f324c45fbda45948392f722118e4 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    = i686-w64-mingw32
+MINGW_BIN = /usr/bin
 MINGW_TOP = /usr/$(TARGET)
 MINGW_TMP = $(CURDIR)/debian/mingw32-ncurses6
 
@@ -34,12 +35,15 @@ CONFIG_OPTIONS = \
        --enable-const \
        --enable-ext-colors \
        --enable-ext-mouse \
+       --enable-ext-putwin \
        --enable-interop \
        --enable-sp-funcs \
        --enable-term-driver \
        --enable-warnings \
        --enable-widec \
        --verbose \
+       --with-chtype=uint32_t \
+       --with-mmask_t=uint32_t \
        --with-cxx-shared \
        --with-develop \
        --with-fallbacks=unknown,rxvt \
@@ -106,6 +110,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.
@@ -117,7 +128,7 @@ binary-arch: build install
        dh_testdir
        dh_testroot
        dh_installchangelogs NEWS
-       dh_strip
+       dh_strip
        dh_compress
        dh_fixperms
        dh_installdeb