| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
include /usr/share/dpkg/default.mk |
| 9 |
|
| 10 |
export DEB_CFLAGS_MAINT_APPEND = -Wall -g |
| 11 |
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs |
| 12 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 13 |
|
| 14 |
%: |
| 15 |
dh $@ |
| 16 |
|
| 17 |
override_dh_auto_configure: |
| 18 |
mkdir -p debian/build debian/build-ncurses |
| 19 |
tar -cf - --exclude=debian/build* --exclude=.pc . | tar -xf - -C debian/build |
| 20 |
cd debian/build && dh_auto_configure -- --disable-curses |
| 21 |
tar -cf - --exclude=debian/build* --exclude=.pc . | tar -xf - -C debian/build-ncurses |
| 22 |
cd debian/build-ncurses && dh_auto_configure -- --enable-curses LIBS="-lncurses" |
| 23 |
|
| 24 |
override_dh_auto_build: |
| 25 |
cd debian/build && dh_auto_build |
| 26 |
cd debian/build-ncurses && dh_auto_build |
| 27 |
|
| 28 |
override_dh_auto_test: |
| 29 |
cd debian/build && dh_auto_test |
| 30 |
cd debian/build-ncurses && dh_auto_test |
| 31 |
|
| 32 |
override_dh_install-arch: |
| 33 |
${MAKE} -C debian/build \ |
| 34 |
DESTDIR=$(shell pwd)/debian/tmp install |
| 35 |
${MAKE} -C debian/build-ncurses \ |
| 36 |
DESTDIR=$(shell pwd)/debian/tmp-ncurses install |
| 37 |
dh_install -plibcunit1 -plibcunit1-dev \ |
| 38 |
--sourcedir=debian/tmp |
| 39 |
dh_install -plibcunit1-ncurses -plibcunit1-ncurses-dev \ |
| 40 |
--sourcedir=debian/tmp-ncurses |
| 41 |
|
| 42 |
override_dh_install-indep: |
| 43 |
${MAKE} -C debian/build-ncurses \ |
| 44 |
DESTDIR=$(shell pwd)/debian/tmp-ncurses install |
| 45 |
dh_install -plibcunit1-doc \ |
| 46 |
--sourcedir=debian/tmp-ncurses |
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
override_dh_missing-indep: |
| 52 |
dh_missing --list-missing |
| 53 |
|
| 54 |
override_dh_installman-arch: |
| 55 |
dh_installman -plibcunit1-dev |
| 56 |
dh_installman -plibcunit1-ncurses-dev |
| 57 |
|
| 58 |
|
| 59 |
override_dh_installman-indep: |
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
override_dh_installexamples-indep: |
| 66 |
dh_installexamples -plibcunit1-doc --doc-main-package=libcunit1-doc |
| 67 |
find debian/libcunit1-doc/usr/share/doc/libcunit1-doc/examples -type f | xargs -r chmod u=rw,g=r,o=r |
| 68 |
|
| 69 |
override_dh_installexamples-arch: |
| 70 |
dh_installexamples |
| 71 |
|
| 72 |
override_dh_strip: |
| 73 |
dh_strip -plibcunit1 -plibcunit1-ncurses |
| 74 |
dh_strip --remaining-packages |
| 75 |
|
| 76 |
override_dh_clean: |
| 77 |
dh_clean debian/build/ debian/build-ncurses/ debian/tmp/ debian/tmp-ncurses/ |