]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - package/debian-mingw/rules
ncurses 5.9 - patch 20150523
[ncurses.git] / package / debian-mingw / rules
index 0c6362ad87b7326f307434a7070fb3fee50ef032..cd317c0a9cfbc066e8fd66fc82d01b5b0c388391 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,16 @@ 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 \
        --enable-widec \
        --verbose \
+       --with-chtype=uint32_t \
+       --with-mmask_t=uint32_t \
        --with-cxx-shared \
        --with-develop \
        --with-fallbacks=unknown,rxvt \
@@ -75,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
@@ -106,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.
@@ -117,7 +130,7 @@ binary-arch: build install
        dh_testdir
        dh_testroot
        dh_installchangelogs NEWS
-       dh_strip
+       dh_strip
        dh_compress
        dh_fixperms
        dh_installdeb