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 43
|
#! /usr/bin/make -f
export DH_OPTIONS
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
INSTDIR = debian/tmp
%:
dh $@ -Bbuild -Scmake --with python3
ifeq "" "$(filter %-doc,$(shell dh_listpackages))"
WEBSITE = OFF
else
WEBSITE = ON
endif
override_dh_auto_configure:
dh_auto_configure -- \
-DBUILD_WEBSITE=$(WEBSITE) \
-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON \
-DPYTHON=ON
override_dh_auto_build-indep:
dh_auto_build -- website
override_dh_auto_install-indep:
dh_auto_install -- -C website
override_dh_auto_test:
override_dh_install-arch:
dh_numpy3 --package=python3-imath
dh_install
override_dh_install-indep:
rm -f $(INSTDIR)/usr/share/doc/Imath/sphinx/_static/doctools.js
rm -f $(INSTDIR)/usr/share/doc/Imath/sphinx/_static/jquery.js
rm -f $(INSTDIR)/usr/share/doc/Imath/sphinx/_static/language_data.js
rm -f $(INSTDIR)/usr/share/doc/Imath/sphinx/_static/searchtools.js
rm -f $(INSTDIR)/usr/share/doc/Imath/sphinx/_static/underscore.js
rm -f $(INSTDIR)/usr/share/doc/Imath/sphinx/.buildinfo
rm -rf $(INSTDIR)/usr/share/doc/Imath/sphinx/.doctrees
dh_install
|