44 lines
1.2 KiB
Makefile
Executable file
44 lines
1.2 KiB
Makefile
Executable file
#!/usr/bin/make -f
|
|
|
|
include /usr/share/dpkg/architecture.mk
|
|
|
|
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
|
|
|
|
PARALLEL_OPTION = $(filter parallel=%,$(DEB_BUILD_OPTIONS))
|
|
ifneq (,$(PARALLEL_OPTION))
|
|
NUMJOBS = $(patsubst parallel=%,%,$(PARALLEL_OPTION))
|
|
else
|
|
NUMJOBS = 1
|
|
endif
|
|
|
|
ifeq (${DEB_HOST_ARCH},i386)
|
|
export DEB_CFLAGS_MAINT_APPEND=-fexcess-precision=fast -ffloat-store
|
|
export DEB_CXXFLAGS_MAINT_APPEND=-fexcess-precision=fast -ffloat-store
|
|
endif
|
|
|
|
%:
|
|
dh $@ --buildsystem cmake+ninja
|
|
|
|
override_dh_auto_configure-arch:
|
|
dh_auto_configure -- \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DWITH_DBUS=ON \
|
|
$(if $(embed_2geom),-D2GEOM_BUILD_SHARED=OFF)
|
|
|
|
override_dh_auto_test-arch:
|
|
cd obj-$(DEB_HOST_GNU_TYPE) && LC_ALL=C.UTF-8 ninja -j$(NUMJOBS) -v tests
|
|
# some tests are not parallel-safe, since they try to look at the same file
|
|
dh_auto_test -a --no-parallel
|
|
|
|
override_dh_auto_install-arch:
|
|
# The tutorials are manually installed, the rest goes here
|
|
dh_auto_install --destdir=debian/inkscape
|
|
rm -rv debian/inkscape/usr/share/inkscape/tutorials
|
|
|
|
override_dh_auto_configure-indep: nothing
|
|
override_dh_auto_build-indep: nothing
|
|
override_dh_auto_install-indep: nothing
|
|
override_dh_auto_test-indep: nothing
|
|
.PHONY: nothing
|
|
nothing:
|
|
: Do nothing for the -indep build
|