]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - package/debian/rules
ncurses 6.2 - patch 20211016
[ncurses.git] / package / debian / rules
index f5297f0c8aacfa63a03a492f331f8c1e04164127..287c758a9eade1dd8075cc8852317de43f37598d 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.41 2021/10/11 18:18:08 tom Exp $
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
@@ -61,6 +59,7 @@ configure = \
                --disable-leaks \
                --disable-macros  \
                --disable-overwrite  \
+               --disable-relink \
                --disable-termcap \
                --enable-hard-tabs \
                --enable-opaque-curses \
@@ -68,6 +67,7 @@ configure = \
                --enable-opaque-menu \
                --enable-opaque-panel \
                --enable-pc-files \
+               --enable-stdnoreturn \
                --enable-warnings \
                --enable-wgetch-events \
                --enable-widec \
@@ -75,12 +75,13 @@ configure = \
                --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):/usr/share/terminfo \
+               --with-terminfo-dirs=$(MYDATA):/lib/terminfo:/usr/share/terminfo \
                --with-termlib \
                --with-ticlib \
                --with-trace \
@@ -88,6 +89,7 @@ configure = \
                --with-xterm-kbs=DEL \
                --without-ada \
                --without-debug \
+               --without-manpage-aliases \
                --without-normal
 
 NCURSES6_DIR = $(CURDIR)/debian/ncurses6
@@ -118,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
@@ -192,6 +209,8 @@ install-ncurses6-doc-stamp: build-ncurses6-stamp
 
        $(MAKE) -C t/ncurses6 install.man DESTDIR=$(NCURSES6_DIR)-doc
 
+       cd $(NCURSES6_DIR)-doc/usr/share/man/man1 && ln -sf tset6.1.gz reset6.1.gz
+
        touch $@
 
 HTML_DESTDIR=$(NCURSES6_DIR)-doc-html/usr/share/ncurses6-doc-html