File: rules

package info (click to toggle)
libcsfml 3.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,240 kB
  • sloc: cpp: 7,741; ansic: 2,616; sh: 805; makefile: 16
file content (24 lines) | stat: -rwxr-xr-x 616 bytes parent folder | download
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: