File: rules

package info (click to toggle)
cairo 1.16.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 86,576 kB
  • sloc: ansic: 245,827; xml: 22,205; sh: 5,239; cpp: 2,221; cs: 1,763; makefile: 989; javascript: 347; python: 155; awk: 89
file content (74 lines) | stat: -rwxr-xr-x 2,140 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
71
72
73
74
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS  = hardening=+all
export DEB_CFLAGS_MAINT_APPEND  = -Wall
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs -Wl,--as-needed

%:
	dh $@ --with gnome

configure_flags += \
	--enable-pdf \
	--enable-ps \
	--enable-xlib \
	--enable-png \
	--enable-tee \
	--disable-silent-rules \
	--disable-maintainer-mode

deb_configure_flags += \
	$(configure_flags) \
	--enable-xlib \
	--enable-svg \
	--enable-xcb \
	--enable-perf-utils \
	--disable-gl

udeb_configure_flags += \
	$(configure_flags) \
	--disable-svg \
	--disable-xcb

override_dh_autoreconf:
	cp debian/bug-image-compositor.ref.png test/reference/
	dh_autoreconf --as-needed

override_dh_auto_configure:
	dh_auto_configure --builddirectory=debian/build/deb \
		-- $(deb_configure_flags)
	dh_auto_configure --builddirectory=debian/build/udeb \
		-- $(udeb_configure_flags)

override_dh_auto_build:
	dh_auto_build --builddirectory=debian/build/deb
	dh_auto_build --builddirectory=debian/build/udeb

override_dh_auto_install:
	dh_auto_install --builddirectory=debian/build/deb \
		--destdir=debian/install/deb
	dh_auto_install --builddirectory=debian/build/udeb \
		--destdir=debian/install/udeb

override_dh_install:
	dh_install -plibcairo2-udeb --sourcedir=debian/install/udeb
	dh_install -Nlibcairo2-udeb --sourcedir=debian/install/deb

override_dh_missing:
	dh_missing --list-missing

override_dh_auto_clean:
	rm -f test/reference/bug-image-compositor.ref.png
	rm -rf debian/install/ debian/build/

# The test suite is quite broken atm, so running it is not very useful.
# Furthermore there's just one automake test that runs a ton of sub-tests,
# that causes the single test to run for a long time without automake
# printing any output, which causes the build to fail due to inactivity
# on slow arches with no FPU, see https://bugs.debian.org/891547
#override_dh_auto_test:
#	-dh_auto_test --builddirectory=debian/build/deb

override_dh_makeshlibs:
	dh_makeshlibs -plibcairo2 --add-udeb=libcairo2-udeb -- -c4
	dh_makeshlibs -plibcairo-gobject2 --add-udeb=libcairo2-udeb -- -c4
	dh_makeshlibs -plibcairo-script-interpreter2 -- -c4