3
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
4
VIDEODEP = $(shell cat /usr/share/xserver-xorg/videodrvdep 2>/dev/null)
6
override_dh_auto_build:
9
.PHONY: override_dh_strip
11
dh_strip --dbg-package=xserver-xorg-video-qxl-lts-xenial-dbg
13
# Install in debian/tmp to retain control through dh_install:
14
override_dh_auto_install:
15
dh_auto_install --destdir=debian/tmp
17
# Kill *.la files, and forget no-one:
19
find debian/tmp -name '*.la' -delete
20
-rm -r debian/tmp/usr/share
21
install -D -m 644 -o root -g root ./examples/spiceqxl.xorg.conf.example debian/tmp/etc/X11/spiceqxl.xorg.conf
22
dh_install --fail-missing
24
# That's a plugin, use appropriate warning level:
25
override_dh_shlibdeps:
26
dh_shlibdeps -- --warnings=6
28
override_dh_xsf_substvars:
29
echo "xviddriver:Depends=$(VIDEODEP)" >> debian/xserver-xspice-lts-xenial.substvars
32
# Enable Xspice support
33
override_dh_auto_configure:
34
ifeq ($(DEB_HOST_GNU_TYPE), x86_64-linux-gnu)
35
dh_auto_configure -- --libdir=/usr/lib --enable-xspice
37
dh_auto_configure -- --libdir=/usr/lib
41
dh $@ --with quilt,autoreconf,xsf,python2 --builddirectory=build/