1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
ifeq ($(DEB_HOST_ARCH_CPU),i386)
# Fixes test suite failures on i386 which rely on float precision
export DEB_CXXFLAGS_MAINT_APPEND = -fexcess-precision=standard
endif
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- \
-DLIB_SUFFIX=/$(DEB_HOST_MULTIARCH) \
-DCSFML_BUILD_DOC=$(if $(findstring libcsfml-doc,$(shell dh_listpackages)),ON,OFF) \
-DCSFML_BUILD_EXAMPLES=ON \
-DCSFML_BUILD_TEST_SUITE=ON
execute_after_dh_auto_build-indep:
dh_auto_build -- doc
override_dh_auto_test-indep:
|