2
# debian/rules for the Debian xserver-xorg-driver-i810 package.
3
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>
4
# Copyright © 2005 Daniel Stone <daniel@fooishbar.org>
5
# Copyright © 2005 David Nusinow <dnusinow@debian.org>
7
# Uncomment this to turn on verbose mode.
10
include debian/xsfbs/xsfbs.mk
13
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
18
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
19
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
20
MAKEFLAGS += -j$(NUMJOBS)
23
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
24
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
25
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
26
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
27
confflags += --build=$(DEB_HOST_GNU_TYPE)
29
confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
32
# kbd_drv.a isn't phenomenally useful; kbd_drv.so more so
33
confflags += --disable-static
35
configure: $(STAMP_DIR)/patch
39
build/config.status: configure
41
test -d build || mkdir build
43
../configure --prefix=/usr --mandir=\$${prefix}/share/man \
44
--infodir=\$${prefix}/share/info $(confflags) \
49
build-stamp: build/config.status
59
rm -f config.cache config.log config.status
60
rm -f */config.cache */config.log */config.status
61
rm -f conftest* */conftest*
62
rm -rf autom4te.cache */autom4te.cache
64
rm -f $$(find -name Makefile.in)
65
rm -f compile config.guess config.sub configure depcomp install-sh
66
rm -f ltmain.sh missing INSTALL aclocal.m4 config.h.in mkinstalldirs
67
rm -f m4/lt* m4/libtool.m4
75
dh_installdirs usr/share/apport
77
cd build && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
3
# Install in debian/tmp to retain control through dh_install:
4
override_dh_auto_install:
5
dh_auto_install --destdir=debian/tmp
78
6
install -d $(CURDIR)/debian/tmp/usr/share/apport
79
7
install -m 755 debian/apport-gpu-error-intel.py $(CURDIR)/debian/tmp/usr/share/apport
81
# Build architecture-dependent files here.
82
binary-arch: DH_OPTIONS=-s
83
binary-arch: build install serverabi
9
# Kill *.la files, and forget no-one:
11
find debian/tmp -name '*.la' -delete
12
dh_install --fail-missing
87
dh_installdocs README NEWS
89
dh_install --sourcedir=debian/tmp --list-missing --exclude=.la --exclude=usr/share/man/man4
93
16
dh_strip --dbg-package=xserver-xorg-video-intel-dbg
18
# That's a plugin, use appropriate warning level:
19
override_dh_shlibdeps:
97
20
dh_shlibdeps -- --warnings=6
103
# Build architecture-independent files here.
107
binary: binary-indep binary-arch
108
.PHONY: build clean binary-indep binary-arch binary install
23
dh $@ --with quilt,autoreconf,xsf --builddirectory=build/