| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
export DH_OPTIONS |
| 7 |
|
| 8 |
|
| 9 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 10 |
DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 11 |
export DEB_BUILD_MAINT_OPTIONS |
| 12 |
|
| 13 |
include /usr/share/dpkg/buildflags.mk |
| 14 |
include /usr/share/dpkg/pkg-info.mk |
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
EXTRA_CONFIG_FLAGS = |
| 39 |
ifneq (,$(filter arm armel mips mipsel, $(DEB_HOST_ARCH))) |
| 40 |
EXTRA_CONFIG_FLAGS += --enable-fixed-point |
| 41 |
endif |
| 42 |
|
| 43 |
|
| 44 |
%: |
| 45 |
dh $@ |
| 46 |
|
| 47 |
|
| 48 |
override_dh_auto_configure: |
| 49 |
dh_auto_configure -- \ |
| 50 |
$(EXTRA_CONFIG_FLAGS) |
| 51 |
|
| 52 |
override_dh_installdocs: |
| 53 |
dh_installdocs -A \ |
| 54 |
AUTHORS README.md |
| 55 |
|
| 56 |
override_dh_strip: |
| 57 |
dh_strip --dbgsym-migration="libopusfile-dbg (<< 0.12-1~)" |
| 58 |
|
| 59 |
DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \ |
| 60 |
debian/.* |
| 61 |
|
| 62 |
.PHONY: licensecheck |
| 63 |
licensecheck: |
| 64 |
LANG=C.UTF-8 licensecheck \ |
| 65 |
-i "^($(DEB_COPYRIGHT_CHECK_IGNORE_REGEX))$$" \ |
| 66 |
--check '.*' --recursive --deb-machine --lines 0 * \ |
| 67 |
> debian/copyright_newhints |
| 68 |
cmp debian/copyright_hints debian/copyright_newhints \ |
| 69 |
&& rm debian/copyright_newhints |