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
|
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@
override_dh_auto_clean:
[ ! -f Makefile ] || $(MAKE) maintainer-clean
override_dh_auto_configure:
dh_auto_configure -- --host=$(DEB_HOST_GNU_TYPE) --htmldir=\$${prefix}/share/doc/libcgicc-doc/html --disable-demos
override_dh_auto_install:
dh_auto_install
# work around doxygen bug - embeds copy of jquery unnecessarily
rm -f $(CURDIR)/debian/tmp/usr/share/doc/libcgicc-doc/html/jquery.js
# Remove unwanted libtool .la file
$(RM) debian/tmp/usr/lib/*/libcgicc.la
# Remove the debug-prefix-map and file-prefix-map compiler
# options, as they conflict with mutli-arch and breaks
# reproducible builds
sed -i -e 's/ *-fdebug-prefix-map=[^ "]*//' -e 's/ *-ffile-prefix-map=[^ "]*//' $(CURDIR)/debian/tmp/usr/bin/cgicc-config
override_dh_installexamples:
dh_installexamples -XMakefile
override_dh_fixperms:
dh_fixperms
find $(CURDIR)/debian/libcgicc-doc -name '*.png' -o -name '*.svg' | xargs --no-run-if-empty chmod 644
find $(CURDIR)/debian/libcgicc-doc -name .deps | xargs --no-run-if-empty rm -r
|