| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
# See debhelper(7) (uncomment to enable) |
| 4 |
# output every command that modifies files on the build system. |
| 5 |
# DH_VERBOSE = 1 |
| 6 |
|
| 7 |
# see FEATURE AREAS in dpkg-buildflags(1) |
| 8 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 9 |
|
| 10 |
# see ENVIRONMENT in dpkg-buildflags(1) |
| 11 |
# package maintainers to append CFLAGS |
| 12 |
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic |
| 13 |
# package maintainers to append LDFLAGS |
| 14 |
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed |
| 15 |
|
| 16 |
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* |
| 17 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 18 |
include /usr/share/dpkg/default.mk |
| 19 |
|
| 20 |
export DPKG_GENSYMBOLS_CHECK_LEVEL=4 |
| 21 |
|
| 22 |
DEB_CODENAME := $(shell sh -c '. /etc/os-release; echo "$${VERSION_CODENAME}"') |
| 23 |
ifeq ($(DEB_CODENAME),$(filter $(DEB_CODENAME),buster bionic focal)) |
| 24 |
CONFIGURE_AVIF := --without-avif |
| 25 |
CONFIGURE_HEIF := --without-heif |
| 26 |
else |
| 27 |
CONFIGURE_AVIF := --with-avif=/usr |
| 28 |
CONFIGURE_HEIF := --with-heif=/usr |
| 29 |
endif |
| 30 |
|
| 31 |
%: |
| 32 |
dh $@ --with autoreconf |
| 33 |
|
| 34 |
override_dh_autoreconf: |
| 35 |
dh_autoreconf --as-needed |
| 36 |
|
| 37 |
override_dh_auto_configure: |
| 38 |
dh_auto_configure -- \ |
| 39 |
--disable-rpath \ |
| 40 |
--with-tiff=/usr \ |
| 41 |
--without-raqm \ |
| 42 |
$(CONFIGURE_AVIF) \ |
| 43 |
$(CONFIGURE_HEIF) \ |
| 44 |
--libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) |
| 45 |
|
| 46 |
override_dh_install: |
| 47 |
dh_install --fail-missing -Xlibgd.la -Xgdlib-config |
| 48 |
|
| 49 |
override_dh_strip: |
| 50 |
dh_strip -O--dbgsym-migration='libgd-dbg (<< 2.2.3-87-gd0fec80-1)' |
| 51 |
|
| 52 |
override_dh_auto_test: |