File: rules

package info (click to toggle)
magpie 0.9.4-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 28,684 kB
  • sloc: ansic: 333,939; xml: 2,084; python: 1,403; sh: 181; ruby: 167; perl: 120; makefile: 40; javascript: 11
file content (55 lines) | stat: -rwxr-xr-x 1,217 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
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4

# Specifically define the API/SONAME here to be used as part of
# dh_shlibdeps definition as well as the dev/gir install files
MAGPIE_API_VERSION = 0
MAGPIE_SONAME = 0

export MAGPIE_API_VERSION
export MAGPIE_SONAME

%:
	dh $@

ifeq ($(DEB_HOST_ARCH_OS),linux)
CONFFLAGS = \
	-Degl_device=true \
	-Dremote_desktop=false
else
CONFFLAGS = \
	-Dsystemd=false \
	-Dudev=false \
	-Dlibwacom=false \
	-Dnative_backend=false \
	-Dprofiler=false \
	-Dremote_desktop=false
endif

ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),armel armhf))
CONFFLAGS += \
	-Ddefault_driver=gles2
endif

ifneq ($(filter i386,$(DEB_HOST_ARCH)),)
CONFFLAGS +=-Dprofiler=false
endif

override_dh_auto_configure:
	dh_auto_configure -- \
		$(CONFFLAGS)

override_dh_girepository:
	dh_girepository /usr/lib/$(DEB_HOST_MULTIARCH)/magpies-$(MAGPIE_API_VERSION)

override_dh_makeshlibs:
	dh_makeshlibs -V

override_dh_shlibdeps:
	dh_shlibdeps -Llibmagpie-$(MAGPIE_API_VERSION)-$(MAGPIE_SONAME) \
		-l/usr/lib/$(DEB_HOST_MULTIARCH)/magpie-$(MAGPIE_API_VERSION)