2016-09-04 13:43:06 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
|
|
# output every command that modifies files on the build system.
|
|
|
|
#export DH_VERBOSE = 1
|
|
|
|
|
2019-03-04 15:46:21 +00:00
|
|
|
DEB_PACKAGE_VERSION ?= $(shell dpkg-parsechangelog -SVersion | cut -f2 -d":" | cut -f1 -d"~")
|
|
|
|
|
2016-09-04 13:43:06 +00:00
|
|
|
%:
|
2016-10-20 19:33:28 +00:00
|
|
|
dh $@ --buildsystem=cmake --parallel
|
2016-09-04 13:43:06 +00:00
|
|
|
|
|
|
|
override_dh_auto_configure:
|
|
|
|
dh_auto_configure -- \
|
2016-10-19 20:59:11 +00:00
|
|
|
-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
|
2019-03-04 15:46:21 +00:00
|
|
|
-DBUILD_TESTS:BOOL=ON \
|
2019-04-20 21:36:46 +00:00
|
|
|
-DCURA_ENGINE_VERSION=${DEB_PACKAGE_VERSION}
|
2016-09-04 13:43:06 +00:00
|
|
|
|
|
|
|
override_dh_install:
|
|
|
|
dh_install --fail-missing
|
2017-08-21 07:14:35 +00:00
|
|
|
|
|
|
|
override_dh_auto_test:
|
2018-12-23 13:50:59 +00:00
|
|
|
dh_auto_test || true
|