File: rules

package info (click to toggle)
libmypaint 1.6.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,904 kB
  • sloc: ansic: 5,953; sh: 4,418; makefile: 292; python: 210
file content (34 lines) | stat: -rwxr-xr-x 832 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs

include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/architecture.mk

ifeq ($(filter nodoc, $(DEB_BUILD_PROFILES)),)
	ENABLE_DOCS = --enable-docs
else
	ENABLE_DOCS = --disable-docs
endif

%:
	dh $@ --with gir

override_dh_auto_configure:
	dh_auto_configure -- $(ENABLE_DOCS) --enable-openmp

# Tests are known to be flaky on armel, see #1103376
override_dh_auto_test:
ifeq (,$(filter armel, $(DEB_HOST_ARCH)))
	dh_auto_test
endif

execute_before_dh_install:
	find debian/tmp -name '*.la' -print -delete
	find debian/tmp -name jquery.js -print -delete
	find debian/tmp -name underscore.js -print -delete

# Symbols need to be carefully reviewed for this library.
override_dh_makeshlibs:
	dh_makeshlibs -- -c4