2 # MAde with the aid of dh_make, by Craig Small
3 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4 # Some lines taken from debmake, by Cristoph Lameter.
6 # Uncomment this to turn on verbose mode.
9 # These are used for cross-compiling and for saving the configure script
10 # from having to guess our platform (since we know it already)
11 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
14 CC_NORMAL = -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
15 CC_STRICT = $(CC_NORMAL) -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wwrite-strings -ansi -pedantic
17 MY_DIR=/usr/local/ncurses6
18 MYDATA=/usr/local/ncurses/share/terminfo
19 BUILD_DIR=$(CURDIR)/debian/ncurses6
23 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
28 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
33 configure: configure-stamp
37 RPATH_LIST=../lib:$(MY_DIR)/lib \
38 CFLAGS="$(CFLAGS)" ./configure \
39 --host=$(DEB_HOST_GNU_TYPE) \
40 --build=$(DEB_BUILD_GNU_TYPE) \
42 --with-default-terminfo-dir=$(MYDATA) \
43 --with-terminfo-dirs=$(MYDATA):/usr/share/terminfo \
59 --with-chtype=uint32_t \
60 --with-mmask_t=uint32_t \
67 --with-xterm-kbs=DEL \
75 build-stamp: configure-stamp
86 [ ! -f makefile ] || $(MAKE) distclean
88 rm -f configure-stamp build-stamp install-stamp
92 install: install-stamp
93 install-stamp: build-stamp
99 $(MAKE) install.libs install.progs DESTDIR=$(BUILD_DIR)
101 ( cd test && make ncurses LOCAL_LIBDIR=$(MY_DIR)/lib )
102 mv test/ncurses $(BUILD_DIR)$(MY_DIR)/bin/ncurses6
106 # Build architecture-independent files here.
107 binary-indep: build install
108 # No binary-indep target.
110 # Build architecture-dependent files here.
111 binary-arch: build install
114 dh_installchangelogs NEWS
124 binary: binary-indep binary-arch
125 .PHONY: build clean binary-indep binary-arch binary install install-stamp