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
|
#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk
ifeq (${DEB_HOST_ARCH_CPU},i386)
export DEB_CFLAGS_MAINT_APPEND=-fexcess-precision=fast -ffloat-store
export DEB_CXXFLAGS_MAINT_APPEND=-fexcess-precision=fast -ffloat-store
endif
ifeq (${DEB_HOST_ARCH_CPU},ppc64el)
export DEB_CFLAGS_MAINT_STRIP=-O3
export DEB_CXXFLAGS_MAINT_STRIP=-O3
export DEB_CFLAGS_MAINT_APPEND=-O2
export DEB_CXXFLAGS_MAINT_APPEND=-O2
endif
%:
dh $@ --buildsystem cmake+ninja
override_dh_auto_configure:
dh_auto_configure -- \
-D2GEOM_BUILD_SHARED=ON \
-DCMAKE_SKIP_RPATH:BOOL=ON \
execute_before_dh_auto_build:
# If ragel is present then this file will be rebuilt at build time.
# Restore the original file on clean if that's the case.
# https://bugs.debian.org/1048245
set -e; [ ! -e $(shell command -v ragel) ] || \
perl -MDebian::Debhelper::Dh_Lib=restore_file_on_clean \
-e 'restore_file_on_clean("src/2geom/svg-path-parser.cpp")'
# needed to pass the tests, as without rpath somhow the tests can't find the library anymore
override_dh_auto_test:
LD_LIBRARY_PATH=$(CURDIR)/obj-$(DEB_HOST_GNU_TYPE)/src/2geom dh_auto_test
|