| 1 |
|
| 2 |
|
| 3 |
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) |
| 4 |
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) |
| 5 |
DEB_BUILD_OPTIONS += nocheck |
| 6 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow |
| 7 |
|
| 8 |
CMAKE_FLAGS = \ |
| 9 |
-DCOIN_BUILD_DOCUMENTATION=ON \ |
| 10 |
-DCMAKE_INSTALL_PREFIX=/usr \ |
| 11 |
-DCMAKE_INSTALL_LIBDIR="/usr/lib/$(DEB_HOST_MULTIARCH)" \ |
| 12 |
-DCMAKE_VERBOSE_MAKEFILE=ON \ |
| 13 |
-DUSE_EXTERNAL_EXPAT=ON |
| 14 |
|
| 15 |
%: |
| 16 |
dh $@ --buildsystem=cmake --without autoreconf |
| 17 |
|
| 18 |
override_dh_auto_configure: |
| 19 |
dh_auto_configure -- $(CMAKE_FLAGS) $(CMAKE_ARCH_FLAGS) |
| 20 |
|
| 21 |
override_dh_installdocs: |
| 22 |
cp -r $(CURDIR)/examples $(CURDIR)/debian/tmp/usr/share/doc/Coin/ |
| 23 |
dh_installdocs |
| 24 |
-find $(CURDIR)/debian/libcoin-doc/ -type f -print0 | xargs --no-run-if-empty -0 sed -i 's/http:\/\/www\.web3d\.org//g' |
| 25 |
-find $(CURDIR)/debian/libcoin-doc/ -name .gitignore -delete |