2011-03-27 09:06:46 +08:00
|
|
|
#!/usr/bin/make -f
|
ncurses 6.0 - patch 20170812
+ improve description of -R option in infocmp manual page (report by
Stephane Chazelas).
+ add reset_color_pairs() function.
+ add user_caps.5 manual page to document the terminfo extensions used
by ncurses.
+ improve build scripts, using SIGQUIT vs SIGTRAP; add other configure
script fixes from work on xterm, lynx and tack.
+ modify install-rule for ncurses-examples to put the data files in
/usr/share/ncurses-examples
+ improve tracemunch, by changing address-parameters of add_wch(),
color_content() and pair_content() to dummy parameters.
+ minor optimization to _nc_change_pair, to return quickly when the
current screen is marked for clearing.
+ in-progress changes to improve performance of test/picsmap.c for
loading image files.
+ modify allocation for SCREEN's color-pair table to start small, grow
on demand up to the existing limit.
+ add "RGB" extension capability for direct-color support, use this to
improve color_content().
+ improve picsmap test-program:
+ if no palette file is needed, attempt to load one based on $TERM,
checking first in the current directory, then by adding ".dat"
suffix, and finally in the data-directory, e.g.,
/usr/share/ncurses-examples
+ add "-l" option for logging
+ add "-d" option for debugging
+ add "-s" option for stepping automatically through list of images,
with time delay.
+ use tsearch to improve time for loading color table for images.
+ update config.guess, config.sub from
http://git.savannah.gnu.org/cgit/config.git
2017-08-13 08:55:26 +08:00
|
|
|
# Made with the aid of dh_make, by Craig Small
|
2011-03-27 09:06:46 +08:00
|
|
|
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
|
|
|
|
# Some lines taken from debmake, by Cristoph Lameter.
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
2015-07-12 09:32:50 +08:00
|
|
|
# packages
|
|
|
|
NCURSES_PKG = ncurses-examples
|
|
|
|
NCURSEST_PKG = ncursest-examples
|
|
|
|
|
|
|
|
PACKAGES.indep = # ncurses-examples-docs
|
|
|
|
PACKAGES.arch = $(NCURSES_PKG) $(NCURSEST_PKG)
|
|
|
|
|
2011-03-27 09:06:46 +08:00
|
|
|
# These are used for cross-compiling and for saving the configure script
|
|
|
|
# from having to guess our platform (since we know it already)
|
|
|
|
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
|
|
|
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
|
|
|
|
2017-07-23 08:30:14 +08:00
|
|
|
CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
|
|
|
|
CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
|
|
|
|
LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
|
2011-03-27 09:06:46 +08:00
|
|
|
|
|
|
|
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
|
|
|
CFLAGS += -O0
|
|
|
|
else
|
|
|
|
CFLAGS += -O2
|
|
|
|
endif
|
|
|
|
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
|
|
|
INSTALL_PROGRAM += -s
|
|
|
|
endif
|
|
|
|
|
2015-07-12 09:32:50 +08:00
|
|
|
verbose = # -v
|
2011-03-27 09:06:46 +08:00
|
|
|
|
2015-07-12 09:32:50 +08:00
|
|
|
configure = \
|
2017-07-23 08:30:14 +08:00
|
|
|
CFLAGS="$(CFLAGS)" \
|
|
|
|
CPPFLAGS="$(CPPFLAGS)" \
|
|
|
|
LDFLAGS="$(LDFLAGS)" ../../configure \
|
2011-03-27 09:06:46 +08:00
|
|
|
--host=$(DEB_HOST_GNU_TYPE) \
|
|
|
|
--build=$(DEB_BUILD_GNU_TYPE) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--disable-rpath-hack
|
|
|
|
|
2015-07-12 09:32:50 +08:00
|
|
|
.PHONY: all config build install binary clean config-indep config-arch \
|
|
|
|
build-indep build-arch install-indep install-arch binary-indep \
|
|
|
|
binary-arch
|
|
|
|
|
|
|
|
all: build
|
2011-03-27 09:06:46 +08:00
|
|
|
|
2015-07-12 09:32:50 +08:00
|
|
|
config: config-indep config-arch
|
|
|
|
build: build-indep build-arch
|
|
|
|
install: install-indep install-arch
|
|
|
|
binary: binary-indep binary-arch
|
|
|
|
clean:
|
2011-03-27 09:06:46 +08:00
|
|
|
dh_testdir
|
2015-07-12 09:32:50 +08:00
|
|
|
dh_testroot
|
|
|
|
dh_clean $(verbose)
|
|
|
|
rm -rf t
|
2011-03-27 09:06:46 +08:00
|
|
|
|
2015-07-12 09:32:50 +08:00
|
|
|
config-indep: $(PACKAGES.indep:%=config-%-stamp)
|
|
|
|
config-arch: $(PACKAGES.arch:%=config-%-stamp)
|
2011-03-27 09:06:46 +08:00
|
|
|
|
2015-07-12 09:32:50 +08:00
|
|
|
build-indep: $(PACKAGES.indep:%=build-%-stamp)
|
|
|
|
build-arch: $(PACKAGES.arch:%=build-%-stamp)
|
2011-03-27 09:06:46 +08:00
|
|
|
|
2015-07-12 09:32:50 +08:00
|
|
|
install-indep: $(PACKAGES.indep:%=install-%-stamp)
|
|
|
|
install-arch: $(PACKAGES.arch:%=install-%-stamp)
|
|
|
|
|
|
|
|
config-$(NCURSES_PKG)-stamp:
|
2011-03-27 09:06:46 +08:00
|
|
|
dh_testdir
|
|
|
|
|
2015-07-12 09:32:50 +08:00
|
|
|
rm -rf t/ncurses6
|
|
|
|
mkdir -p t/ncurses6
|
2011-03-27 09:06:46 +08:00
|
|
|
|
2015-07-12 09:32:50 +08:00
|
|
|
cd t/ncurses6; $(configure) \
|
|
|
|
--bindir=\$${prefix}/bin/$(NCURSES_PKG) \
|
ncurses 6.0 - patch 20170812
+ improve description of -R option in infocmp manual page (report by
Stephane Chazelas).
+ add reset_color_pairs() function.
+ add user_caps.5 manual page to document the terminfo extensions used
by ncurses.
+ improve build scripts, using SIGQUIT vs SIGTRAP; add other configure
script fixes from work on xterm, lynx and tack.
+ modify install-rule for ncurses-examples to put the data files in
/usr/share/ncurses-examples
+ improve tracemunch, by changing address-parameters of add_wch(),
color_content() and pair_content() to dummy parameters.
+ minor optimization to _nc_change_pair, to return quickly when the
current screen is marked for clearing.
+ in-progress changes to improve performance of test/picsmap.c for
loading image files.
+ modify allocation for SCREEN's color-pair table to start small, grow
on demand up to the existing limit.
+ add "RGB" extension capability for direct-color support, use this to
improve color_content().
+ improve picsmap test-program:
+ if no palette file is needed, attempt to load one based on $TERM,
checking first in the current directory, then by adding ".dat"
suffix, and finally in the data-directory, e.g.,
/usr/share/ncurses-examples
+ add "-l" option for logging
+ add "-d" option for debugging
+ add "-s" option for stepping automatically through list of images,
with time delay.
+ use tsearch to improve time for loading color table for images.
+ update config.guess, config.sub from
http://git.savannah.gnu.org/cgit/config.git
2017-08-13 08:55:26 +08:00
|
|
|
--datadir=\$${prefix}/share/$(NCURSES_PKG) \
|
2015-07-12 09:32:50 +08:00
|
|
|
--with-screen=ncursesw6
|
2011-03-27 09:06:46 +08:00
|
|
|
|
2015-07-12 09:32:50 +08:00
|
|
|
touch $@
|
2011-03-27 09:06:46 +08:00
|
|
|
|
2015-07-12 09:32:50 +08:00
|
|
|
config-$(NCURSEST_PKG)-stamp:
|
|
|
|
dh_testdir
|
|
|
|
|
|
|
|
rm -rf t/ncursest6
|
|
|
|
mkdir -p t/ncursest6
|
|
|
|
|
|
|
|
cd t/ncursest6; $(configure) \
|
|
|
|
--bindir=\$${prefix}/bin/$(NCURSEST_PKG) \
|
ncurses 6.0 - patch 20170812
+ improve description of -R option in infocmp manual page (report by
Stephane Chazelas).
+ add reset_color_pairs() function.
+ add user_caps.5 manual page to document the terminfo extensions used
by ncurses.
+ improve build scripts, using SIGQUIT vs SIGTRAP; add other configure
script fixes from work on xterm, lynx and tack.
+ modify install-rule for ncurses-examples to put the data files in
/usr/share/ncurses-examples
+ improve tracemunch, by changing address-parameters of add_wch(),
color_content() and pair_content() to dummy parameters.
+ minor optimization to _nc_change_pair, to return quickly when the
current screen is marked for clearing.
+ in-progress changes to improve performance of test/picsmap.c for
loading image files.
+ modify allocation for SCREEN's color-pair table to start small, grow
on demand up to the existing limit.
+ add "RGB" extension capability for direct-color support, use this to
improve color_content().
+ improve picsmap test-program:
+ if no palette file is needed, attempt to load one based on $TERM,
checking first in the current directory, then by adding ".dat"
suffix, and finally in the data-directory, e.g.,
/usr/share/ncurses-examples
+ add "-l" option for logging
+ add "-d" option for debugging
+ add "-s" option for stepping automatically through list of images,
with time delay.
+ use tsearch to improve time for loading color table for images.
+ update config.guess, config.sub from
http://git.savannah.gnu.org/cgit/config.git
2017-08-13 08:55:26 +08:00
|
|
|
--datadir=\$${prefix}/share/$(NCURSEST_PKG) \
|
2015-07-12 09:32:50 +08:00
|
|
|
--with-screen=ncursestw6
|
|
|
|
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
build-$(NCURSES_PKG)-stamp: config-$(NCURSES_PKG)-stamp
|
|
|
|
dh_testdir
|
|
|
|
|
|
|
|
$(MAKE) -C t/ncurses6
|
|
|
|
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
build-$(NCURSEST_PKG)-stamp: config-$(NCURSEST_PKG)-stamp
|
|
|
|
dh_testdir
|
|
|
|
|
|
|
|
$(MAKE) -C t/ncursest6
|
|
|
|
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
install-$(NCURSES_PKG)-stamp: build-$(NCURSES_PKG)-stamp
|
2011-03-27 09:06:46 +08:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2015-07-12 09:32:50 +08:00
|
|
|
dh_installdirs $(verbose)
|
|
|
|
dh_prep $(verbose) -p$(NCURSES_PKG)
|
|
|
|
|
|
|
|
$(MAKE) -C t/ncurses6 install DESTDIR=$(CURDIR)/debian/$(NCURSES_PKG)
|
2011-03-27 09:06:46 +08:00
|
|
|
|
2015-07-12 09:32:50 +08:00
|
|
|
touch $@
|
2011-03-27 09:06:46 +08:00
|
|
|
|
2015-07-12 09:32:50 +08:00
|
|
|
install-$(NCURSEST_PKG)-stamp: build-$(NCURSEST_PKG)-stamp
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_installdirs $(verbose)
|
|
|
|
dh_prep $(verbose) -p$(NCURSEST_PKG)
|
|
|
|
|
|
|
|
$(MAKE) -C t/ncursest6 install DESTDIR=$(CURDIR)/debian/$(NCURSEST_PKG)
|
|
|
|
|
|
|
|
touch $@
|
2011-03-27 09:06:46 +08:00
|
|
|
|
|
|
|
# Build architecture-independent files here.
|
2015-07-12 09:32:50 +08:00
|
|
|
binary-indep: install-indep
|
|
|
|
ifneq ($(PACKAGES.indep),)
|
|
|
|
rm -f $(PACKAGES.indep:%=install-%-stamp)
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_installdocs $(verbose) $(PACKAGES.indep:%=-p%)
|
|
|
|
dh_installman $(verbose) $(PACKAGES.indep:%=-p%)
|
|
|
|
dh_installexamples $(verbose) $(PACKAGES.indep:%=-p%)
|
|
|
|
dh_installchangelogs $(verbose) $(PACKAGES.indep:%=-p%) NEWS
|
|
|
|
dh_compress $(verbose) $(PACKAGES.indep:%=-p%)
|
|
|
|
dh_fixperms $(verbose) $(PACKAGES.indep:%=-p%)
|
|
|
|
dh_installdeb $(verbose) $(PACKAGES.indep:%=-p%)
|
|
|
|
dh_gencontrol $(verbose) $(PACKAGES.indep:%=-p%)
|
|
|
|
dh_md5sums $(verbose) $(PACKAGES.indep:%=-p%)
|
|
|
|
dh_builddeb $(verbose) $(PACKAGES.indep:%=-p%)
|
|
|
|
endif
|
2011-03-27 09:06:46 +08:00
|
|
|
|
|
|
|
# Build architecture-dependent files here.
|
2015-07-12 09:32:50 +08:00
|
|
|
binary-arch: install-arch
|
|
|
|
ifneq ($(PACKAGES.arch),)
|
|
|
|
rm -f $(PACKAGES.arch:%=install-%-stamp)
|
2011-03-27 09:06:46 +08:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2015-07-12 09:32:50 +08:00
|
|
|
dh_installchangelogs $(verbose) $(PACKAGES.arch:%=-p%) NEWS
|
|
|
|
dh_strip $(verbose) $(PACKAGES.arch:%=-p%)
|
|
|
|
dh_compress $(verbose) $(PACKAGES.arch:%=-p%)
|
|
|
|
dh_fixperms $(verbose) $(PACKAGES.arch:%=-p%)
|
|
|
|
dh_installdeb $(verbose) $(PACKAGES.arch:%=-p%)
|
|
|
|
dh_makeshlibs $(verbose) $(PACKAGES.arch:%=-p%)
|
|
|
|
dh_shlibdeps $(verbose) $(PACKAGES.arch:%=-p%)
|
|
|
|
dh_gencontrol $(verbose) $(PACKAGES.arch:%=-p%)
|
|
|
|
dh_md5sums $(verbose) $(PACKAGES.arch:%=-p%)
|
|
|
|
dh_builddeb $(verbose) $(PACKAGES.arch:%=-p%)
|
|
|
|
endif
|