File: rules

package info (click to toggle)
anbox 0.0~git20190124-1
  • links: PTS, VCS
  • area: contrib
  • in suites: buster
  • size: 22,000 kB
  • sloc: cpp: 76,190; ansic: 7,434; sh: 1,350; xml: 818; java: 780; python: 390; makefile: 35; lisp: 7
file content (38 lines) | stat: -rwxr-xr-x 1,009 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

HEADER_PACKAGES := libproperties-cpp-dev
EXTRA_SUBSTVARS := \
	-Vmisc:Built-Using="$(shell dpkg-query -Wf '$${source:Package}(=$${Version}),' $(HEADER_PACKAGES))"
LXC_VER := $(shell dpkg-query -Wf '$${Version}' lxc)
LXC_EPOCH := $(shell echo $(LXC_VER) | sed -e 's/[^:]*$$//')
LXC_MAJOR_VER := $(shell echo $(LXC_VER) | sed -e 's/\..*$$//'|sed -e 's/^[0-9]*://')

ifeq ($(LXC_MAJOR_VER), 2)
	EXTRA_SUBSTVARS += \
		-Vmisc:LxcDepends="lxc"
else
	EXTRA_SUBSTVARS += \
		-Vmisc:LxcDepends="lxc (>= $(LXC_EPOCH)3.0.0)"
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		-DENABLE_TOUCH_INPUT=ON \
		-DENABLE_WAYLAND=OFF \
		-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
		-DANBOX_VERSION=$(DEB_VERSION) \
		-DANBOX_VERSION_SUFFIX=$(DEB_VENDOR)

override_dh_auto_install:
	dh_auto_install
	cp snap/gui/icon.png debian/anbox.png

override_dh_gencontrol:
	dh_gencontrol -- $(EXTRA_SUBSTVARS)