ncurses 5.9 - patch 20150103
[ncurses.git] / package / debian / rules
index 74d10aaee699e75d098a406f215cac855b97a708..a8b6635a405c35653bc9b36d4d49f6e95227a28c 100644 (file)
@@ -16,6 +16,7 @@ CC_STRICT = $(CC_NORMAL) -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissi
 
 MY_DIR=/usr/local/ncurses6
 MYDATA=/usr/local/ncurses/share/terminfo
+BUILD_DIR=$(CURDIR)/debian/ncurses6
 
 CFLAGS = $(CC_NORMAL)
 
@@ -50,16 +51,22 @@ configure-stamp:
                --enable-ext-mouse \
                --enable-hard-tabs \
                --enable-interop \
+               --enable-pc-files \
                --enable-rpath \
                --enable-sp-funcs \
                --enable-warnings \
                --enable-widec \
                --verbose \
+               --with-chtype=uint32_t \
+               --with-mmask_t=uint32_t \
                --with-develop \
+               --with-pc-suffix=6 \
                --with-shared \
                --with-termlib \
                --with-ticlib \
                --with-trace \
+               --with-cxx-shared \
+               --with-versioned-syms \
                --with-xterm-kbs=DEL \
                --without-ada \
                --without-debug \
@@ -92,7 +99,10 @@ install-stamp: build-stamp
        dh_clean -k
        dh_installdirs
 
-       $(MAKE) install.libs install.progs DESTDIR=$(CURDIR)/debian/ncurses6
+       $(MAKE) install.libs install.progs DESTDIR=$(BUILD_DIR)
+
+       ( cd test && make ncurses LOCAL_LIBDIR=$(MY_DIR)/lib )
+       mv test/ncurses $(BUILD_DIR)$(MY_DIR)/bin/ncurses6
 
        touch install-stamp