| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# DH_VERBOSE := 1 |
| 4 |
|
| 5 |
include /usr/share/dpkg/architecture.mk |
| 6 |
|
| 7 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ |
| 11 |
|
| 12 |
override_dh_auto_configure: |
| 13 |
ifneq ($(filter $(DEB_HOST_ARCH_CPU), amd64 i386),) |
| 14 |
dh_auto_configure |
| 15 |
else |
| 16 |
dh_auto_configure -- --disable-sse --disable-avx --disable-avx2 |
| 17 |
endif |
| 18 |
|
| 19 |
override_dh_install: |
| 20 |
dh_install |
| 21 |
d-shlibmove --commit \ |
| 22 |
--multiarch \ |
| 23 |
--devunversioned \ |
| 24 |
--exclude-la \ |
| 25 |
--override s/ld64-1-dev// \ |
| 26 |
--override s/ld-kfreebsd-x86-64-1-dev// \ |
| 27 |
--movedev debian/tmp/usr/include/* usr/include \ |
| 28 |
debian/tmp/usr/lib/*/*.so |
| 29 |
|
| 30 |
override_dh_installman: |
| 31 |
sed -i 's/conjuction/conjunction/' man/libpll.3 |
| 32 |
dh_installman |
| 33 |
|
| 34 |
override_dh_missing: |
| 35 |
find debian/tmp -type f \( -name "*.la" -o -name "libpll.3" \) | xargs rm -rf |
| 36 |
find debian/tmp -name examples | xargs rm -rf |
| 37 |
find debian/libpll-dev/usr/share/doc/libpll-dev/examples/ -name .gitignore | xargs rm -rf |
| 38 |
dh_missing |