File: rules

package info (click to toggle)
clutter-1.0 1.26.2+dfsg-10
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 33,916 kB
  • sloc: ansic: 128,518; sh: 5,542; makefile: 1,595; xml: 1,248; ruby: 149; perl: 142; sed: 16
file content (59 lines) | stat: -rwxr-xr-x 1,501 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,--as-needed

ifeq ($(DEB_HOST_ARCH_OS),linux)
	CONFFLAGS += \
		--enable-wayland-backend=yes \
		--enable-wayland-compositor=yes \
		--enable-evdev-input=yes
endif

%:
	dh $@ --with gir,gnome

override_dh_autoreconf:
	dh_autoreconf --as-needed

override_dh_auto_configure:
	dh_auto_configure -- \
		--enable-x11-backend=yes \
		--enable-gdk-backend=yes \
		--enable-egl-backend=yes \
		--enable-gtk-doc \
		--disable-docs \
		--enable-installed-tests \
		--enable-introspection=yes \
		$(CONFFLAGS)

override_dh_install:
	find debian -name '*.la' -delete
	dh_install

override_dh_missing:
	dh_missing --fail-missing

override_dh_compress:
	dh_compress -X.c

override_dh_gnome:
	dh_gnome --no-gnome-versions

override_dh_makeshlibs:
	dh_makeshlibs -V -- -c4

override_dh_auto_test:
# Don't run the tests on s390x since it hangs the build on Launchpad
# Don't run on armel since it hung with
# https://buildd.debian.org/status/logs.php?pkg=clutter-1.0&ver=1.26.2%2Bdfsg-5
ifneq (,$(filter armel s390x,$(DEB_HOST_ARCH)))
# Ignore test failures on architectures where they fail
else ifneq (,$(filter hppa hurd-i386 kfreebsd-i386 kfreebsd-amd64 mips mipsel powerpc ppc64 sparc64,$(DEB_HOST_ARCH)))
	-dbus-run-session -- xvfb-run -a dh_auto_test
else
	dbus-run-session -- xvfb-run -a dh_auto_test
endif

override_dh_strip:
	dh_strip --dbgsym-migration='libclutter-1.0-dbg (<< 1.26.2+dfsg-2~)'