| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
# Uncomment this to turn on verbose mode. |
| 5 |
#export DH_VERBOSE=1 |
| 6 |
|
| 7 |
# Enable all hardening options. |
| 8 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 9 |
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic -D_REENTRANT |
| 10 |
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed |
| 11 |
|
| 12 |
# Variables used by cdbs |
| 13 |
DEB_COMPRESS_EXCLUDE = html |
| 14 |
|
| 15 |
override_dh_auto_configure: |
| 16 |
cp $(CURDIR)/debian/custom_dir_EXIF_GPS.tiff \ |
| 17 |
$(CURDIR)/test/images/ |
| 18 |
dh_auto_configure -- \ |
| 19 |
--with-docdir="\$${prefix}/share/doc/libtiff-doc" \ |
| 20 |
--libdir="\$${prefix}/lib/$(DEB_HOST_MULTIARCH)" \ |
| 21 |
--includedir="\$${prefix}/include/$(DEB_HOST_MULTIARCH)" \ |
| 22 |
--enable-ld-version-script \ |
| 23 |
--enable-docs |
| 24 |
|
| 25 |
override_dh_auto_test: |
| 26 |
dh_auto_test --max-parallel=1 |
| 27 |
|
| 28 |
override_dh_install: |
| 29 |
dh_install -X.la |
| 30 |
# tiffgt is in libtiff-opengl so libtiff-tools doesn't have to have |
| 31 |
# all the X and opengl dependencies. |
| 32 |
$(RM) debian/libtiff-tools/usr/bin/tiffgt |
| 33 |
$(RM) debian/libtiff-tools/usr/share/man/man1/tiffgt.1* |
| 34 |
|
| 35 |
override_dh_missing: |
| 36 |
dh_missing --list-missing |
| 37 |
|
| 38 |
%: |
| 39 |
dh $@ --with autoreconf |
| 40 |
|
| 41 |
.PHONY: override_dh_auto_configure override_dh_auto_test \ |
| 42 |
override_dh_install override_dh_missing |