| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
ACTUAL_PROG = cdialog |
| 4 |
|
| 5 |
export DEB_BUILD_MAINT_OPTIONS := hardening=+all qa=+bug reproducible=+all |
| 6 |
|
| 7 |
%: |
| 8 |
dh $@ |
| 9 |
|
| 10 |
# dh_autoreconf interferes with portability -- skip it |
| 11 |
override_dh_autoreconf: |
| 12 |
echo "skip: dh_autoreconf autoreconf-dickey -- -f -i" |
| 13 |
|
| 14 |
override_dh_auto_configure: |
| 15 |
cp -v package/dialog.map package/${ACTUAL_PROG}.map |
| 16 |
dh_auto_configure -- \ |
| 17 |
--prefix=/usr \ |
| 18 |
--disable-echo \ |
| 19 |
--enable-nls \ |
| 20 |
--with-shlib-version=abi \ |
| 21 |
--enable-header-subdir \ |
| 22 |
--enable-pc-files \ |
| 23 |
--enable-stdnoreturn \ |
| 24 |
--enable-widec \ |
| 25 |
--with-package=${ACTUAL_PROG} \ |
| 26 |
--with-program-prefix=c \ |
| 27 |
--with-shared \ |
| 28 |
--with-screen=ncursesw6td \ |
| 29 |
--with-versioned-syms \ |
| 30 |
--disable-rpath-hack |
| 31 |
|
| 32 |
override_dh_auto_install: |
| 33 |
dh_auto_install -- install install-lib install-examples |
| 34 |
|
| 35 |
override_dh_install: |
| 36 |
dh_install |
| 37 |
sh -c '\ |
| 38 |
pc_source=$$(find debian/tmp -name "*.pc"); \ |
| 39 |
pc_target=$$(echo $$pc_source | sed -e "s,tmp,cdialog-dev,"); \ |
| 40 |
pc_holder=$$(echo $$pc_target | sed -e "s,/[^/]*$$,,"); \ |
| 41 |
mkdir -v -p $$pc_holder; \ |
| 42 |
mv -v $$pc_source $$pc_target' |
| 43 |
|
| 44 |
override_dh_link: |
| 45 |
sh -c "\ |
| 46 |
D=$$(awk '{gsub(":","."); print $$1}' <VERSION); \ |
| 47 |
S=$$(awk '{gsub(":","."); print $$2}' <VERSION); \ |
| 48 |
sed -i.bak \ |
| 49 |
-e \"s/.SRC/.\$$S/\" \ |
| 50 |
-e \"s/.DST/.\$$D/\" \ |
| 51 |
debian/cdialog-dev.links" |
| 52 |
diff -u debian/cdialog-dev.links.bak debian/cdialog-dev.links || echo OK |
| 53 |
rm -f debian/cdialog-dev.links.bak |
| 54 |
dh_link |
| 55 |
|
| 56 |
override_dh_installdocs: |
| 57 |
dh_installdocs README |
| 58 |
|
| 59 |
override_dh_installexamples: |
| 60 |
# the makefile rule adjusts the default program-name |
| 61 |
mv -v debian/tmp/usr/share/doc/cdialog/examples debian/cdialog/usr/share/doc/cdialog/ |
| 62 |
|
| 63 |
override_dh_installchangelogs: |
| 64 |
dh_installchangelogs CHANGES |
| 65 |
|
| 66 |
override_dh_installman: |
| 67 |
# dh_install does this |
| 68 |
|
| 69 |
override_dh_missing: |
| 70 |
# it really gets confused by the way cdialog is split up... |
| 71 |
|
| 72 |
override_dh_shlibdeps: |
| 73 |
dh_shlibdeps -- \ |
| 74 |
-ldebian/cdialog/usr/lib/${DEB_HOST_MULTIARCH} \ |
| 75 |
--ignore-missing-info |