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