1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
#!/usr/bin/make -f
# © 2003-2016, Ron Lee
# © 2022, IOhannes m zmölnig
#export DH_VERBOSE=1
export DH_OPTIONS
## use hardening some flags
DPKG_EXPORT_BUILDFLAGS = 1
DEB_BUILD_MAINT_OPTIONS=hardening=+all
export DEB_BUILD_MAINT_OPTIONS
include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/pkg-info.mk
#ifneq (,$(filter-out alpha hppa arm, $(DEB_HOST_ARCH)))
# HARD_CFLAGS += -fstack-protector --param ssp-buffer-size=4
#endif
#ifneq (,$(filter-out ia64 hppa avr32, $(DEB_HOST_ARCH)))
# HARD_LDFLAGS += -Wl,-z,relro
#endif
## Keep dpkg-buildpackage the hell out of messing with our compile flags,
## we should trust upstream to know better than it what to use here.
## We explicitly re-add -g and -O2 here, since by explicitly overriding
## these variables, we otherwise disable autoconf adding them by default.
#CPPFLAGS = $(HARD_CPPFLAGS)
#CFLAGS = $(HARD_CFLAGS) -g -O2
#CXXFLAGS = $(HARD_CFLAGS) -g -O2
#LDFLAGS = $(HARD_LDFLAGS)
#ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
# CFLAGS = -g -O0
#endif
EXTRA_CONFIG_FLAGS =
ifneq (,$(filter arm armel mips mipsel, $(DEB_HOST_ARCH)))
EXTRA_CONFIG_FLAGS += --enable-fixed-point
endif
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- \
$(EXTRA_CONFIG_FLAGS)
override_dh_installdocs:
dh_installdocs -A \
AUTHORS README.md
override_dh_strip:
dh_strip --dbgsym-migration="libopusfile-dbg (<< 0.12-1~)"
DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \
debian/.*
# licensecheck v1
.PHONY: licensecheck
licensecheck:
LANG=C.UTF-8 licensecheck \
-i "^($(DEB_COPYRIGHT_CHECK_IGNORE_REGEX))$$" \
--check '.*' --recursive --deb-machine --lines 0 * \
> debian/copyright_newhints
cmp debian/copyright_hints debian/copyright_newhints \
&& rm debian/copyright_newhints
|