| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/architecture.mk |
| 4 |
|
| 5 |
# Disable fixfilepath, as it triggers build failures. |
| 6 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all reproducible=-fixfilepath |
| 7 |
|
| 8 |
ifeq ($(DEB_HOST_ARCH_CPU),i386) |
| 9 |
export DEB_CXXFLAGS_MAINT_APPEND = -ffloat-store |
| 10 |
endif |
| 11 |
|
| 12 |
testsuite_failing_archs := sparc64 |
| 13 |
ifneq (,$(filter $(DEB_HOST_ARCH),$(testsuite_failing_archs))) |
| 14 |
fail_param := || true |
| 15 |
endif |
| 16 |
|
| 17 |
%: |
| 18 |
dh $@ --with pkgkde_symbolshelper |
| 19 |
|
| 20 |
override_dh_auto_configure: |
| 21 |
dh_auto_configure -- -DBUILD_TESTS=ON -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" |
| 22 |
|
| 23 |
execute_after_dh_auto_build-arch: |
| 24 |
pod2man debian/dh/dh_grantlee > dh_grantlee.1 |
| 25 |
|
| 26 |
override_dh_auto_test: |
| 27 |
xvfb-run -a dh_auto_test $(fail_param) |