| 1 |
#!/usr/bin/make -f |
| 2 |
#export DH_VERBOSE = 1 |
| 3 |
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic |
| 4 |
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed |
| 5 |
|
| 6 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow |
| 7 |
|
| 8 |
include /usr/share/dpkg/default.mk |
| 9 |
|
| 10 |
lib = libdecor-0-0 |
| 11 |
|
| 12 |
%: |
| 13 |
dh $@ |
| 14 |
|
| 15 |
debian/$(lib).symbols: debian/$(lib).symbols.in |
| 16 |
sed -e 's/[$$]{DEB_VERSION}/${DEB_VERSION}/g' \ |
| 17 |
< $< > $@ |
| 18 |
|
| 19 |
built_binaries := $(shell dh_listpackages) |
| 20 |
configure_options = |
| 21 |
|
| 22 |
ifneq ($(filter libdecor-tests,$(built_binaries)),) |
| 23 |
configure_options += -Ddemo=true |
| 24 |
configure_options += -Dinstall_demo=true |
| 25 |
else |
| 26 |
configure_options += -Ddemo=false |
| 27 |
endif |
| 28 |
|
| 29 |
override_dh_auto_configure: |
| 30 |
dh_auto_configure -- $(configure_options) |
| 31 |
|
| 32 |
ifeq ($(DEB_DISTRIBUTION),UNRELEASED) |
| 33 |
# We can't expect the symbols file to be fully up to date for a snapshot, |
| 34 |
# so only fail if we broke ABI. This overrides the -c4 below. |
| 35 |
export DPKG_GENSYMBOLS_CHECK_LEVEL = 1 |
| 36 |
endif |
| 37 |
|
| 38 |
override_dh_makeshlibs: debian/$(lib).symbols |
| 39 |
dh_makeshlibs -- -c4 |