]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - package/debian-mingw64/rules
ncurses 6.1 - patch 20180127
[ncurses.git] / package / debian-mingw64 / rules
index 6391527a75506e1660c693da63b20ff844433d4c..5ef06f7487544139c0a559d9bba3d79a1f704811 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)
 
+MY_ABI=6
+
 BUILD_CC = gcc
 
 CC_NORMAL = -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
@@ -19,7 +21,7 @@ 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)
-MINGW_TMP = $(CURDIR)/debian/mingw64-ncurses6
+MINGW_TMP = $(CURDIR)/debian/mingw64-ncurses$(MY_ABI)
 
 CFLAGS = $(CC_NORMAL)
 
@@ -40,7 +42,7 @@ CONFIG_OPTIONS = \
        --enable-warnings \
        --enable-widec \
        --verbose \
-       --with-abi-version=6 \
+       --with-abi-version=$(MY_ABI) \
        --with-cxx-shared \
        --with-develop \
        --with-fallbacks=unknown,rxvt \
@@ -75,6 +77,7 @@ configure-stamp:
                --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)