ncurses 6.1 - patch 20180519
[ncurses.git] / package / debian-mingw64 / rules
index 04a21a3c9bf711f33b14bd1a8c76e7b61c3d7556..fa9769edfb6d1269bdf849e99e726d2376bd0220 100755 (executable)
@@ -11,6 +11,8 @@
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
+MY_ABI=6
+
 BUILD_CC = gcc
 
 CC_NORMAL = -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
 BUILD_CC = gcc
 
 CC_NORMAL = -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
@@ -19,13 +21,15 @@ CC_STRICT = $(CC_NORMAL) -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissi
 TARGET    = x86_64-w64-mingw32
 MINGW_BIN = /usr/bin
 MINGW_TOP = /usr/$(TARGET)
 TARGET    = x86_64-w64-mingw32
 MINGW_BIN = /usr/bin
 MINGW_TOP = /usr/$(TARGET)
-MINGW_TMP = $(CURDIR)/debian/mingw64-ncurses6
+MINGW_TMP = $(CURDIR)/debian/mingw64-ncurses$(MY_ABI)
 
 CFLAGS = $(CC_NORMAL)
 
 
 CFLAGS = $(CC_NORMAL)
 
+verbose = # -v
+
 CONFIG_OPTIONS = \
 CONFIG_OPTIONS = \
-       --disable-echo \
        --disable-db-install \
        --disable-db-install \
+       --disable-echo \
        --disable-getcap \
        --disable-hard-tabs \
        --disable-leaks \
        --disable-getcap \
        --disable-hard-tabs \
        --disable-leaks \
@@ -33,12 +37,16 @@ CONFIG_OPTIONS = \
        --disable-overwrite \
        --disable-termcap \
        --enable-interop \
        --disable-overwrite \
        --disable-termcap \
        --enable-interop \
+       --enable-opaque-curses \
+       --enable-opaque-form \
+       --enable-opaque-menu \
+       --enable-opaque-panel \
        --enable-pc-files \
        --enable-term-driver \
        --enable-warnings \
        --enable-widec \
        --verbose \
        --enable-pc-files \
        --enable-term-driver \
        --enable-warnings \
        --enable-widec \
        --verbose \
-       --with-abi-version=6 \
+       --with-abi-version=$(MY_ABI) \
        --with-cxx-shared \
        --with-develop \
        --with-fallbacks=unknown,rxvt \
        --with-cxx-shared \
        --with-develop \
        --with-fallbacks=unknown,rxvt \
@@ -73,6 +81,7 @@ configure-stamp:
                --target=$(TARGET) \
                --prefix=$(MINGW_TOP) \
                --with-build-cc=$(BUILD_CC) \
                --target=$(TARGET) \
                --prefix=$(MINGW_TOP) \
                --with-build-cc=$(BUILD_CC) \
+               --with-pc-suffix=$(MY_ABI) \
                --with-pkg-config-libdir=/usr/$(TARGET)/lib/pkgconfig \
                $(CONFIG_OPTIONS)
 
                --with-pkg-config-libdir=/usr/$(TARGET)/lib/pkgconfig \
                $(CONFIG_OPTIONS)
 
@@ -101,7 +110,7 @@ install-stamp: build-stamp
        dh_testdir
        dh_testroot
        dh_clean -k
        dh_testdir
        dh_testroot
        dh_clean -k
-       dh_installdirs
+       dh_installdirs      $(verbose)
 
        $(MAKE) install.libs DESTDIR=$(MINGW_TMP)
 
 
        $(MAKE) install.libs DESTDIR=$(MINGW_TMP)
 
@@ -121,16 +130,18 @@ binary-indep: build install
 # Build architecture-dependent files here.
 binary-arch: build install
        dh_testdir
 # Build architecture-dependent files here.
 binary-arch: build install
        dh_testdir
-       dh_testroot
-       dh_installchangelogs NEWS
+       dh_testroot          $(verbose)
+       dh_lintian           $(verbose)
+       dh_installdocs       $(verbose)
+       dh_installchangelogs $(verbose) NEWS
        # dh_strip
        # dh_strip
-       dh_compress
-       dh_fixperms
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
+       dh_compress          $(verbose)
+       dh_fixperms          $(verbose)
+       dh_installdeb        $(verbose)
+       dh_shlibdeps         $(verbose)
+       dh_gencontrol        $(verbose)
+       dh_md5sums           $(verbose)
+       dh_builddeb          $(verbose)
 
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary install install-stamp
 
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary install install-stamp