]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - package/debian/rules
ncurses 6.2 - patch 20210619
[ncurses.git] / package / debian / rules
index 9d0eb980dee142148db06ff6f5fd15fc7dc98404..b90fd5ce218704132ce1e42248ca23cfaf42a43e 100755 (executable)
@@ -1,7 +1,5 @@
 #!/usr/bin/make -f
-# Made with the aid of dh_make, by Craig Small
-# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
-# Some lines taken from debmake, by Cristoph Lameter.
+# $Id: rules,v 1.40 2021/03/23 00:17:05 tom Exp $
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
@@ -25,6 +23,7 @@ NORMAL_DIR=$(CURDIR)/debian/ncurses$(MY_ABI)
 THREAD_DIR=$(CURDIR)/debian/ncursest$(MY_ABI)
 
 CFLAGS   = $(shell dpkg-buildflags --get CFLAGS) $(CC_NORMAL)
+CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS)
 CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
 LDFLAGS  = $(shell dpkg-buildflags --get LDFLAGS)
 
@@ -55,34 +54,42 @@ configure = \
                --host=$(DEB_HOST_GNU_TYPE) \
                --build=$(DEB_BUILD_GNU_TYPE) \
                --prefix=$(MY_DIR) \
-               --with-default-terminfo-dir=$(MYDATA) \
-               --with-terminfo-dirs=$(MYDATA):/usr/share/terminfo \
                --disable-echo \
                --disable-getcap \
                --disable-leaks \
                --disable-macros  \
                --disable-overwrite  \
+               --disable-relink \
                --disable-termcap \
                --enable-hard-tabs \
+               --enable-opaque-curses \
+               --enable-opaque-form \
+               --enable-opaque-menu \
+               --enable-opaque-panel \
                --enable-pc-files \
+               --enable-stdnoreturn \
                --enable-warnings \
                --enable-wgetch-events \
                --enable-widec \
+               --enable-xmc-glitch \
                --program-suffix=$(MY_ABI) \
                --verbose \
                --with-abi-version=$(MY_ABI) \
+               --with-config-suffix=dev \
+               --with-cxx-shared \
+               --with-default-terminfo-dir=$(MYDATA) \
                --with-develop \
                --with-extra-suffix=$(MY_ABI) \
                --with-shared \
+               --with-terminfo-dirs=$(MYDATA):/lib/terminfo:/usr/share/terminfo \
                --with-termlib \
                --with-ticlib \
                --with-trace \
-               --with-cxx-shared \
-               --with-terminfo-dirs=/lib/terminfo:/usr/share/terminfo \
                --with-versioned-syms \
                --with-xterm-kbs=DEL \
                --without-ada \
                --without-debug \
+               --without-manpage-aliases \
                --without-normal
 
 NCURSES6_DIR = $(CURDIR)/debian/ncurses6
@@ -113,14 +120,29 @@ build-arch: $(PACKAGES.arch:%=build-%-stamp)
 install-indep: $(PACKAGES.indep:%=install-%-stamp)
 install-arch: $(PACKAGES.arch:%=install-%-stamp)
 
-config-ncurses6-stamp:
+# make the doc-package installable by renaming everything to avoid clashing
+patch-ncurses6-stamp:
+       dh_testdir
+       sed -i.bak \
+               -e 's/-config\.1$$/dev-config.1/;t' \
+               -e 's/\.3ncurses$$/.3ncurses6/' \
+               -e 's/\.3curses$$/.3curses6/' \
+               -e 's/\.3form$$/.3form6/' \
+               -e 's/\.3menu$$/.3menu6/' \
+               -e 's/\.3panel$$/.3panel6/' \
+               -e 's/\.\([157]\)$$/6.\1/' \
+               man/man_db.renames
+       diff -u man/man_db.renames.bak man/man_db.renames || true
+       touch $@
+
+config-ncurses6-stamp: patch-ncurses6-stamp
        dh_testdir
        rm -rf t/ncurses6
        mkdir -p t/ncurses6
        cd t/ncurses6; $(configure)
        touch $@
 
-config-ncursest6-stamp:
+config-ncursest6-stamp: patch-ncurses6-stamp
        dh_testdir
        rm -rf t/ncursest6
        mkdir -p t/ncursest6
@@ -207,6 +229,7 @@ ifneq ($(PACKAGES.indep),)
        rm -f $(PACKAGES.indep:%=install-%-stamp)
        dh_testdir
        dh_testroot
+       dh_lintian           $(verbose) $(PACKAGES.arch:%=-p%)
        dh_installdocs       $(verbose) $(PACKAGES.indep:%=-p%)
        dh_installman        $(verbose) $(PACKAGES.indep:%=-p%)
        dh_installexamples   $(verbose) $(PACKAGES.indep:%=-p%)
@@ -225,6 +248,8 @@ ifneq ($(PACKAGES.arch),)
        rm -f $(PACKAGES.arch:%=install-%-stamp)
        dh_testdir
        dh_testroot
+       dh_lintian           $(verbose) $(PACKAGES.arch:%=-p%)
+       dh_installdocs       $(verbose) $(PACKAGES.arch:%=-p%)
        dh_installchangelogs $(verbose) $(PACKAGES.arch:%=-p%)  NEWS
        dh_strip             $(verbose) $(PACKAGES.arch:%=-p%)
        dh_compress          $(verbose) $(PACKAGES.arch:%=-p%)