| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs |
| 5 |
|
| 6 |
built_binaries := $(shell dh_listpackages) |
| 7 |
configure_options := |
| 8 |
|
| 9 |
ifneq ($(filter libpango1.0-doc,$(built_binaries)),) |
| 10 |
with_docs = true |
| 11 |
else |
| 12 |
with_docs = false |
| 13 |
endif |
| 14 |
|
| 15 |
ifneq ($(filter pango1.0-tools,$(built_binaries)),) |
| 16 |
configure_options += -Dman-pages=true |
| 17 |
endif |
| 18 |
|
| 19 |
ifeq ($(DEB_HOST_ARCH_OS),linux) |
| 20 |
configure_options += -Dsysprof=enabled |
| 21 |
else |
| 22 |
configure_options += -Dsysprof=disabled |
| 23 |
endif |
| 24 |
|
| 25 |
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) |
| 26 |
configure_options += --cross-file=$(DEB_HOST_GNU_TYPE)-gobject-introspection.ini |
| 27 |
endif |
| 28 |
|
| 29 |
%: |
| 30 |
dh $@ |
| 31 |
|
| 32 |
override_dh_auto_configure: |
| 33 |
dh_auto_configure -- \ |
| 34 |
-Dauto_features=enabled \ |
| 35 |
-Dgtk_doc=$(with_docs) \ |
| 36 |
-Dinstall-tests=true \ |
| 37 |
$(configure_options) |
| 38 |
|
| 39 |
override_dh_auto_test-arch: |
| 40 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 41 |
debian/tests/run-with-locales \ |
| 42 |
--generate en_US.utf8 \ |
| 43 |
-- \ |
| 44 |
env \ |
| 45 |
LC_ALL=en_US.utf8 \ |
| 46 |
dh_auto_test |
| 47 |
endif |
| 48 |
|
| 49 |
# Skip build-time tests if all we are building is documentation; running |
| 50 |
# them once per architecture is plenty |
| 51 |
override_dh_auto_test-indep: |
| 52 |
@: |
| 53 |
|
| 54 |
# debhelper >= 13.4 makes all of /usr/libexec executable, which is not |
| 55 |
# quite right for installed-tests |
| 56 |
override_dh_fixperms: |
| 57 |
dh_fixperms -Xusr/libexec/installed-tests |
| 58 |
ifneq ($(filter %-tests,$(binaries)),) |
| 59 |
chmod --recursive --changes a+rX,u+w,og-w debian/*-tests/usr/libexec/installed-tests |
| 60 |
endif |
| 61 |
|
| 62 |
override_dh_makeshlibs: |
| 63 |
dh_makeshlibs --add-udeb=libpango1.0-udeb -- -c4 |