~ubuntu-branches/ubuntu/trusty/xserver-xorg-video-qxl-lts-xenial/trusty-updates

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2016-05-03 14:02:42 UTC
  • Revision ID: package-import@ubuntu.com-20160503140242-o1zqcqv5t8pmo1w7
Tags: 0.1.4-3ubuntu3~trusty1
Backport for lts-xenial stack.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
4
VIDEODEP = $(shell cat /usr/share/xserver-xorg/videodrvdep 2>/dev/null)
 
5
 
 
6
override_dh_auto_build:
 
7
        dh_auto_build -- V=1
 
8
 
 
9
.PHONY: override_dh_strip
 
10
override_dh_strip:
 
11
        dh_strip --dbg-package=xserver-xorg-video-qxl-lts-xenial-dbg
 
12
 
 
13
# Install in debian/tmp to retain control through dh_install:
 
14
override_dh_auto_install:
 
15
        dh_auto_install --destdir=debian/tmp
 
16
 
 
17
# Kill *.la files, and forget no-one:
 
18
override_dh_install:
 
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
 
23
 
 
24
# That's a plugin, use appropriate warning level:
 
25
override_dh_shlibdeps:
 
26
        dh_shlibdeps -- --warnings=6
 
27
 
 
28
override_dh_xsf_substvars:
 
29
        echo "xviddriver:Depends=$(VIDEODEP)" >> debian/xserver-xspice-lts-xenial.substvars
 
30
        dh_xsf_substvars
 
31
 
 
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
 
36
else
 
37
        dh_auto_configure -- --libdir=/usr/lib
 
38
endif
 
39
 
 
40
%:
 
41
        dh $@ --with quilt,autoreconf,xsf,python2 --builddirectory=build/