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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
#!/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
rm $(CURDIR)/debian/libodin-dev/usr/include/tjutils/config.h
|