| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
|
| 5 |
include /usr/share/dpkg/architecture.mk |
| 6 |
|
| 7 |
%: |
| 8 |
dh $@ --without autoreconf |
| 9 |
|
| 10 |
override_dh_auto_configure: |
| 11 |
./configure --prefix=/usr --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \ |
| 12 |
--build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \ |
| 13 |
--enable-static --enable-dot --enable-dependency-linking |
| 14 |
|
| 15 |
override_dh_auto_build-indep: |
| 16 |
make doxydoc |
| 17 |
$(RM) doxydoc/html/*.md5 doxydoc/html/*.dot doxydoc/html/*.map |
| 18 |
|
| 19 |
# No tests for the doc package. |
| 20 |
override_dh_auto_test-indep: |
| 21 |
|
| 22 |
execute_before_dh_installdocs-indep: |
| 23 |
# Removing the build directory from documentation files to enhance build |
| 24 |
# reproducibility. |
| 25 |
for F in $$(find doxydoc/html -name "*.html"); do\ |
| 26 |
sed -i "s,$(CURDIR)/,," $$F;\ |
| 27 |
done |
| 28 |
|
| 29 |
execute_before_dh_installexamples: |
| 30 |
# Remove full build path from example Makefile |
| 31 |
sed -i -e "s,prefix-map=$(CURDIR),prefix-map=BUILDPATH,g" Cgl/examples/Makefile |