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
|
include /usr/share/dpkg/pkg-info.mk
export UPSTREAM_VERSION := $(shell echo "$(DEB_VERSION)" | cut -d '+' -f 1)
export TARGET := libOrthancDicomWeb.so
export DEB_BUILD_MAINT_OPTIONS := hardening=+all
export DEB_CFLAGS_MAINT_APPEND=-DNDEBUG
export DEB_CXXFLAGS_MAINT_APPEND=-DNDEBUG
%:
dh $@ --parallel --builddirectory=Build
CMAKE_EXTRA_FLAGS += \
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DSTATIC_BUILD:BOOL=OFF \
-DUSE_GOOGLE_TEST_DEBIAN_PACKAGE:BOOL=ON \
-DCMAKE_BUILD_TYPE=None
override_dh_auto_configure:
mkdir -p ThirdPartyDownloads
( cd ThirdPartyDownloads; cp ../debian/ThirdPartyDownloads/Orthanc-1.5.5.tar.gz . )
cp /usr/share/javascript/jquery/jquery.min.js Resources/Samples/JavaScript/jquery.min.js
dh_auto_configure -- $(CMAKE_EXTRA_FLAGS)
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
( cd Build; ./UnitTests )
endif
override_dh_clean:
rm -rf ThirdPartyDownloads
dh_clean
override_dh_auto_install:
dh_install Build/${TARGET}.${UPSTREAM_VERSION} usr/lib/orthanc
override_dh_link:
dh_link usr/lib/orthanc/${TARGET}.${UPSTREAM_VERSION} usr/share/orthanc/plugins/${TARGET}
override_dh_installchangelogs:
dh_installchangelogs -k NEWS
|