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
|
#!/usr/bin/make -f
%:
dh $@ --with python3
# Upgrade optimisation flags:
export DEB_CFLAGS_MAINT_STRIP = -O2
export DEB_CXXFLAGS_MAINT_STRIP = -O2
export DEB_CFLAGS_MAINT_APPEND = -O3 -DNDEBUG
export DEB_CXXFLAGS_MAINT_APPEND = -O3 -DNDEBUG
# Find the default python version so we can pass it to cmake. This
# keeps things sane when multiple python*-dev packages are installed.
pyver = $(subst python,,$(shell /usr/bin/py3versions --default))
DEB_HOST_MULTIARCH ?=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
override_dh_auto_configure:
dh_auto_configure -- \
-DPACKAGE_NAME=regina-normal -DPACKAGING_MODE=1 \
-DPython_EXECUTABLE=/usr/bin/python${pyver} \
-DBUILD_INFO="Debian package build" \
-DDISABLE_RPATH=1
override_dh_auto_build:
dh_auto_build -- VERBOSE=1
override_dh_auto_test:
dh_auto_test -- ARGS=-V
override_dh_missing:
dh_missing --fail-missing
override_dh_installchangelogs:
dh_installchangelogs CHANGES.txt
override_dh_compress:
dh_compress -X.bz2 -X.css -X.docbook -X.rga
override_dh_strip_nondeterminism:
# PNGs are not compiled during the build, so do not touch them now.
dh_strip_nondeterminism -X.png
|