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
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Yes, this package uses deprecated APIs, we don't need individual warnings
export DEB_CFLAGS_MAINT_APPEND = -Wno-deprecated-declarations
# Vala is not const- (or volatile-)correct
DEB_CFLAGS_MAINT_APPEND += -Wno-discarded-qualifiers
binaries := $(shell dh_listpackages)
ifneq ($(filter gmpc-data,$(binaries)),)
configure_flags += --with-help
else
configure_flags += --without-help
endif
%:
dh $@
override_dh_auto_configure:
find src -name '*.vala' | sed -s 's/vala$$/c/' | xargs rm -f
find src -name '*.vala' | sed -s 's/vala$$/h/' | xargs rm -f
rm -f src/*_vala.stamp
dh_auto_configure \
-- \
--disable-appindicator \
--disable-unique \
$(configure_flags) \
${NULL}
[ ! -d .pc ] || find .pc -type f -name '*.c' -exec echo '{}' >> po/POTFILES.skip \;
override_dh_auto_build:
dh_auto_build -- -C src gmpc_vala.stamp
dh_auto_build
override_dh_clean:
dh_clean
rm -f intltool-extract intltool-merge intltool-update config.log
override_dh_auto_clean:
grep -v '^.pc' po/POTFILES.skip > po/POTFILES.skip.tmp
mv po/POTFILES.skip.tmp po/POTFILES.skip
dh_auto_clean
override_dh_missing:
dh_missing --fail-missing
override_dh_installchangelogs:
dh_installchangelogs -XChangeLog
|