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
|
#!/usr/bin/make -f
export DEBIAN_VERSION := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
export UPSTREAM_VERSION := $(shell echo "$(DEBIAN_VERSION)" | cut -d '+' -f 1)
export TARGET := libOrthancDicomWeb.so
export DEB_BUILD_MAINT_OPTIONS := hardening=+all
%:
dh $@ --parallel --builddirectory=Build
CMAKE_EXTRA_FLAGS += \
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DSTATIC_BUILD:BOOL=OFF \
-DSTANDALONE_BUILD:BOOL=ON \
-DUSE_GTEST_DEBIAN_SOURCE_PACKAGE:BOOL=ON \
-DCMAKE_BUILD_TYPE="" # The build type must be left empty, see #711515
override_dh_auto_configure:
# Place back the jquery library from Debian
cp /usr/share/javascript/jquery/jquery.min.js Resources/Samples/JavaScript/jquery.min.js
# Launch the original CMake script
dh_auto_configure -- $(CMAKE_EXTRA_FLAGS)
override_dh_auto_test:
( cd Build; ./UnitTests )
override_dh_auto_install:
cp Build/${TARGET} Build/${TARGET}.${UPSTREAM_VERSION}
dh_install Build/${TARGET}.${UPSTREAM_VERSION} usr/lib
override_dh_link:
dh_link usr/lib/${TARGET}.${UPSTREAM_VERSION} usr/share/orthanc/plugins/${TARGET}
override_dh_installchangelogs:
dh_installchangelogs -k NEWS
get-orig-source:
uscan --verbose --force-download --repack --compression xz
|