File: rules

package info (click to toggle)
ilmbase 2.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 45,596 kB
  • sloc: cpp: 216,969; makefile: 971; sh: 380
file content (70 lines) | stat: -rwxr-xr-x 1,650 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#! /usr/bin/make -f
#
# © 2009 Cyril Brulebois <kibi@debian.org>


##### VARIABLES
#

DEB_BUILD_ARCH      ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
#NO_MAKE_CHECK_ARCHS := arm
NO_FAIL_ON_TESTSUITE_ERROR := i386

ifeq (,$(filter $(DEB_BUILD_ARCH),alpha))
	export DEB_CFLAGS_MAINT_APPEND=-Wall
	export DEB_CXXFLAGS_MAINT_APPEND=-Wall
else
	export DEB_CFLAGS_MAINT_APPEND=-Wall -mieee
	export DEB_CXXFLAGS_MAINT_APPEND=-Wall -mieee
endif

##### OVERRIDES
#

override_dh_autoreconf:
	dh_autoreconf -- bash ./bootstrap

# Need to set an environment variable to make sure proper linking
# against libphtread happens:
override_dh_auto_configure:
	PTHREAD_LIBS=-lpthread \
		$(shell dpkg-buildflags --export=configure) \
		dh_auto_configure -v

# Need to disable the test suite on some architectures:
override_dh_auto_test:
ifeq (,$(filter $(DEB_BUILD_ARCH),$(NO_MAKE_CHECK_ARCHS)))
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
ifeq (,$(filter $(DEB_BUILD_ARCH),$(NO_FAIL_ON_TESTSUITE_ERROR)))
	dh_auto_test -v
else
	dh_auto_test -v || echo TESTSUITE FAILED, continuing anyway.
endif
endif
endif

# Need to install those in both packages:
override_dh_installdocs:
	dh_installdocs README.md

override_dh_auto_install:
	dh_auto_install
	# see #841444
	sed -i /ILMBASE_HAVE_CONTROL_REGISTER_SUPPORT/d debian/tmp/usr/include/OpenEXR/IlmBaseConfig.h

# Need to pass -V to dh_makeshlibs:
override_dh_makeshlibs:
	dh_makeshlibs -V

override_dh_clean:
	dh_clean */Makefile
	dh_clean IlmBase.pc
	dh_clean Makefile
	dh_clean config.log
	dh_clean config.status
	dh_clean config/stamp-h1
	dh_clean libtool

# Everything else:
%:
	dh $@ -Bbuild -DIlmBase -Scmake