aboutsummaryrefslogtreecommitdiff
path: root/package/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'package/debian/rules')
-rwxr-xr-xpackage/debian/rules25
1 files changed, 18 insertions, 7 deletions
diff --git a/package/debian/rules b/package/debian/rules
index fae0138249de..d8ab2cd9cb5d 100755
--- a/package/debian/rules
+++ b/package/debian/rules
@@ -1,5 +1,5 @@
#!/usr/bin/make -f
-# MAde with the aid of dh_make, by Craig Small
+# 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.
@@ -11,7 +11,11 @@
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-CFLAGS =
+CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
+CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
+LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
+
+ACTUAL_PROG = cdialog
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
@@ -27,7 +31,12 @@ configure: configure-stamp
configure-stamp:
dh_testdir
- CFLAGS="$(CFLAGS)" ./configure \
+ cp -v package/dialog.map package/${ACTUAL_PROG}.map
+
+ CPPFLAGS="$(CPPFLAGS)" \
+ CFLAGS="$(CFLAGS)" \
+ LDFLAGS="$(LDFLAGS)" \
+ ./configure \
--host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr \
@@ -35,9 +44,10 @@ configure-stamp:
--enable-nls \
--enable-header-subdir \
--enable-widec \
- --with-libtool \
- --with-ncursesw \
- --with-package=cdialog \
+ --with-shared \
+ --with-screen=ncursesw6 \
+ --with-package=${ACTUAL_PROG} \
+ --with-versioned-syms \
--disable-rpath-hack
touch configure-stamp
@@ -67,7 +77,7 @@ install-stamp: build-stamp
dh_clean -k
dh_installdirs
- $(MAKE) install DESTDIR=$(CURDIR)/debian/cdialog
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/${ACTUAL_PROG}
touch install-stamp
@@ -86,6 +96,7 @@ binary-arch: build install
dh_compress
dh_fixperms
dh_installdeb
+ dh_makeshlibs
dh_shlibdeps
dh_gencontrol
dh_md5sums