#!/usr/bin/make -f #export DH_VERBOSE = 1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all ifneq (,$(filter $(DEB_HOST_ARCH),armel mipsel powerpc sh4)) EXTRA=-DCMAKE_CXX_STANDARD_LIBRARIES=-latomic endif include /usr/share/dpkg/default.mk pkgtestdata=$(DEB_SOURCE)-testdata %: dh $@ --sourcedirectory=gatb-core override_dh_auto_configure: dh_auto_configure -- $(EXTRA) override_dh_auto_build-arch: dh_auto_build -a override_dh_auto_build-indep: echo "Save time of autobuilders and do nothing ... unfortunately this does not seem to work" override_dh_install-arch: d-shlibmove --commit \ --multiarch \ --devunversioned \ --exclude-la \ --movedev debian/tmp/usr/include usr \ --movedev gatb-core/cmake usr/lib \ debian/tmp/usr/lib/*/*.so mkdir -p debian/$(DEB_SOURCE)/usr/lib/$(DEB_SOURCE) dh_install -a override_dh_auto_install-indep: echo "Nothing to do here" override_dh_missing: # test data are installed manually from main source to enable Architecture all builds rm -rf debian/tmp/usr/test/db dh_missing override_dh_makeshlibs: dh_makeshlibs # For whatever reason some symbol version has added Debian revision which leads to # E: libgatbcore3: symbols-file-contains-current-version-with-debian-revision on symbol _ZNSt6vectorImSaImEE9push_backERKm@Base (libgatbcore.so.3) [symbols] # This override is cleaning up the symbols file find debian -name "*symbols*" -exec sed -i 's/+dfsg-[0-9]\+$$//' \{\} \;