| 1 |
#! /usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/architecture.mk |
| 4 |
|
| 5 |
ifneq (,$(filter $(DEB_HOST_ARCH_OS),hurd)) |
| 6 |
DEB_CPPFLAGS_MAINT_APPEND = -DPATH_MAX=4096 |
| 7 |
|
| 8 |
override_dh_auto_test: |
| 9 |
: tests fail on Hurd due to a kyua crash |
| 10 |
-dh_auto_test || cat debian/.debhelper/generated/_source/home/.kyua/logs/kyua.*.log |
| 11 |
endif |
| 12 |
|
| 13 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 14 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 15 |
include /usr/share/dpkg/buildflags.mk |
| 16 |
|
| 17 |
ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) |
| 18 |
SET_PKG_CONFIG = PKG_CONFIG=$(DEB_HOST_GNU_TYPE)-pkg-config |
| 19 |
GCC = $(DEB_HOST_GNU_TYPE)-gcc |
| 20 |
else |
| 21 |
GCC = gcc |
| 22 |
endif |
| 23 |
|
| 24 |
SYSTEM_LIBDIRS := $(shell sh debian/system-libdirs.sh $(GCC)) |
| 25 |
|
| 26 |
%: |
| 27 |
dh $@ |
| 28 |
|
| 29 |
override_dh_auto_configure: |
| 30 |
ifneq "$(wildcard /usr/share/misc/config.sub)" "" |
| 31 |
cp -f /usr/share/misc/config.sub config.sub |
| 32 |
endif |
| 33 |
ifneq "$(wildcard /usr/share/misc/config.guess)" "" |
| 34 |
cp -f /usr/share/misc/config.guess config.guess |
| 35 |
endif |
| 36 |
$(SET_PKG_CONFIG) dh_auto_configure -- --prefix=/usr \ |
| 37 |
--mandir=\$${prefix}/share/man \ |
| 38 |
--infodir=\$${prefix}/share/info \ |
| 39 |
--with-pkg-config-dir=/usr/local/lib/$(DEB_HOST_MULTIARCH)/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig \ |
| 40 |
--with-system-libdir=$(SYSTEM_LIBDIRS) |
| 41 |
|
| 42 |
override_dh_auto_install: |
| 43 |
dh_auto_install |
| 44 |
rm debian/tmp/usr/lib/*/*.la |
| 45 |
sed \ |
| 46 |
-e "s^@GNU_TYPE@^$(DEB_HOST_GNU_TYPE)^g" \ |
| 47 |
-e "s^@MULTIARCH@^$(DEB_HOST_MULTIARCH)^g" \ |
| 48 |
-e "s^@SYSTEM_LIBDIRS@^$(SYSTEM_LIBDIRS)^g" \ |
| 49 |
debian/personality.in > debian/pkgconf/usr/share/pkgconfig/personality.d/$(DEB_HOST_GNU_TYPE).personality |
| 50 |
ifneq ($(DEB_HOST_MULTIARCH),$(DEB_HOST_GNU_TYPE)) |
| 51 |
ln -s ${DEB_HOST_GNU_TYPE}.personality debian/pkgconf/usr/share/pkgconfig/personality.d/${DEB_HOST_MULTIARCH}.personality |
| 52 |
endif |
| 53 |
|
| 54 |
override_dh_installchangelogs: |
| 55 |
dh_installchangelogs NEWS |
| 56 |
|
| 57 |
.PHONY: override_dh_auto_configure override_dh_auto_install |