File: rules

package info (click to toggle)
field3d 1.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 2,500 kB
  • ctags: 3,213
  • sloc: cpp: 25,268; ansic: 2,577; python: 222; sh: 72; makefile: 25
file content (42 lines) | stat: -rwxr-xr-x 1,235 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#DH_VERBOSE = 1

DEB_HOST_ARCH_ENDIAN ?= $(shell dpkg-architecture --query DEB_HOST_ARCH_ENDIAN)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture --query DEB_HOST_MULTIARCH)

# Hardening flags.
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
export DEB_CXXFLAGS_MAINT_APPEND = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@  

override_dh_auto_configure:
	dh_auto_configure -- \
		-DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)"
		-DINSTALL_DOCS=ON

# NOTE: The Ogawa feature introduced in 1.7.x is not supported for big-endian
# architectures. Upstream has yet to adapt the testsuite, so all we can do is
# disable testing if the host architecture is big-endian for now.
# See: https://github.com/imageworks/Field3D/issues/90
override_dh_auto_test:
ifneq (big,$(DEB_HOST_ARCH_ENDIAN))
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	cd obj-* && [ -x unitTest ] && ./unitTest
endif
endif

override_dh_install-indep:
	dh_install --indep
	dh_doxygen --indep

override_dh_installexamples-indep:
	dh_installexamples --indep --exclude=SCon*

override_dh_compress-indep:
	dh_compress --indep --exclude=examples