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
|
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
include /usr/share/dpkg/default.mk
export DEB_BUILD_MAINT_OPTIONS := qa=+bug hardening=+all reproducible=+all
export DPKG_GENSYMBOLS_CHECK_LEVEL := 4
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -B build-shared -- -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)),OFF,ON) \
$(empty)
DEB_BUILD_MAINT_OPTIONS="$(DEB_BUILD_MAINT_OPTIONS) optimize=-lto" \
dh_auto_configure -B build-static --reload-all-buildenv-variables -- \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TESTING=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)),OFF,ON) \
$(empty)
override_dh_auto_build:
dh_auto_build -B build-shared
dh_auto_build -B build-static
override_dh_auto_test:
dh_auto_test -B build-shared
dh_auto_test -B build-static
override_dh_auto_install:
dh_auto_install -B build-static
# Delete static library's cmake files, so only the shared library versions
# are installed
rm -r debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/cmake
dh_auto_install -B build-shared
override_dh_installdocs:
dh_installdocs -plibtsm-dev --link-doc=libtsm4
dh_installdocs --remaining-packages
override_dh_auto_clean:
dh_auto_clean -B build-shared
dh_auto_clean -B build-static
|