| 1 |
|
| 2 |
|
| 3 |
include /usr/share/dpkg/architecture.mk |
| 4 |
|
| 5 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 6 |
|
| 7 |
CONFIGURE_FLAGS := --without-python --with-history --disable-static --with-crypto |
| 8 |
|
| 9 |
TARGETS := main |
| 10 |
|
| 11 |
override_dh_auto_configure: |
| 12 |
dh_auto_configure -- $(CONFIGURE_FLAGS) |
| 13 |
|
| 14 |
override_dh_auto_clean: |
| 15 |
rm -rf builddir debian/tmp-dbg config.sub config.guess autogen.sh |
| 16 |
dh_auto_clean |
| 17 |
|
| 18 |
override_dh_auto_test: |
| 19 |
: |
| 20 |
|
| 21 |
override_dh_auto_install: |
| 22 |
dh_auto_install |
| 23 |
|
| 24 |
|
| 25 |
sed -i "/dependency_libs/ s/'.*'/''/" debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la |
| 26 |
|
| 27 |
|
| 28 |
mkdir -pv debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/libxslt |
| 29 |
mv -v debian/tmp/usr/include/libxslt/xsltconfig.h debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/libxslt |
| 30 |
|
| 31 |
find debian/ -name *.la -delete |
| 32 |
|
| 33 |
override_dh_installdocs: |
| 34 |
dh_installdocs -a -A AUTHORS FEATURES NEWS README.md TODO |
| 35 |
|
| 36 |
override_dh_compress: |
| 37 |
dh_compress -a -Xexamples/ |
| 38 |
|
| 39 |
override_dh_makeshlibs: |
| 40 |
dh_makeshlibs -a -V 'libxslt1.1 (>= 1.1.26)' -- -c4 |
| 41 |
|
| 42 |
override_dh_missing: |
| 43 |
dh_missing --fail-missing |
| 44 |
|
| 45 |
%: |
| 46 |
dh $@ |