ncurses 5.9 - patch 20140726
[ncurses.git] / package / debian / rules
index 74d10aaee699e75d098a406f215cac855b97a708..c8b96d13464b08be7f7a47876bac569a0f6da911 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)
 
@@ -55,11 +56,14 @@ configure-stamp:
                --enable-warnings \
                --enable-widec \
                --verbose \
+               --with-chtype=uint32_t \
+               --with-mmask_t=uint32_t \
                --with-develop \
                --with-shared \
                --with-termlib \
                --with-ticlib \
                --with-trace \
+               --with-cxx-shared \
                --with-xterm-kbs=DEL \
                --without-ada \
                --without-debug \
@@ -92,7 +96,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