ncurses 5.9 - patch 20140726
[ncurses.git] / package / debian / rules
index 8949a94f57cd47247e427d5fa7568f14d3438da0..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)
 
@@ -49,16 +50,20 @@ configure-stamp:
                --enable-ext-colors \
                --enable-ext-mouse \
                --enable-hard-tabs \
+               --enable-interop \
                --enable-rpath \
                --enable-sp-funcs \
                --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 \
@@ -91,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