#!/usr/bin/make -f DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk export DEB_BUILD_MAINT_OPTIONS=hardening=+all export QT_SELECT := qt5 DCMMAJOR := $(shell readlink -f /usr/lib/libdcmimgle.so | cut -f3 -d.) %: dh $@ override_dh_auto_configure: dh_auto_configure -- \ --libdir="/usr/lib/$(DEB_HOST_MULTIARCH)/odin" \ --with-pic \ --enable-only-standalone-plugin \ --enable-static \ --enable-shared \ --enable-niftisupport \ --enable-vtksupport \ --enable-dcmtksupport \ --enable-pngsupport \ # do not install unittest suite override_dh_auto_install: dh_auto_install rm $(CURDIR)/debian/tmp/usr/bin/odintestsuite # there is also a 'test' target that doesn't do the right thing override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) export DCMDICTPATH=`find /usr/share -name dicom.dic` ; \ if [ "$${DCMDICTPATH}" = "" ] ; then \ echo "No package contains dicom.dic ... test failed" ; \ exit 1 ; \ else \ $(MAKE) check ; \ fi endif # shared libs in odin package a only for private use override_dh_makeshlibs: dh_makeshlibs -n # let dh_shlibdeps find the other private libs # but it does not seem to work though... override_dh_shlibdeps: dh_shlibdeps -l $(CURDIR)/debian/mitools/usr/lib/$(DEB_HOST_MULTIARCH)/odin override_dh_clean: dh_clean find $(CURDIR) -name '*.loT' -delete override_dh_install: dh_install find debian/tmp \( -name "*.desktop" -o -name "*.la" \) -delete