xorg-driver: Update for X11R7.0 and X11R7.1.
[vuplus_openembedded] / packages / xorg-driver / xorg-driver-common.inc
1 DESCRIPTION = "X driver"
2 HOMEPAGE = "http://www.x.org"
3 SECTION = "x11/drivers"
4 #MAINTAINER = ""
5 LICENSE = "MIT-X"
6
7 DEPENDS = "randrproto xorg-server xproto"
8
9 XORG_PN = "${PN}"
10 SRC_URI = "${XORG_MIRROR}/${@bb.data.getVar('PV', d, 1)[0:7]}/src/driver/${XORG_PN}-${PV}.tar.gz"
11
12 S = "${WORKDIR}/${XORG_PN}-${PV}"
13
14 FILES_${PN} += " ${libdir}/xorg/modules"
15
16 inherit autotools pkgconfig
17
18 do_stage() {
19         autotools_stage_all
20 }
21
22 # Another sucky behavor from Xorg configure scripts.
23 # They use AC_CHECK_FILE to check for DRI headers. Yuck!
24 # Of course this will blow up when cross compiling.
25
26 do_configure_prepend() {
27         incdir=${STAGING_INCDIR}/xorg
28         for f in dri.h sarea.h dristruct.h exa.h; do
29                 path="$incdir/$f"
30                 if [ -f "$path" ]; then
31                         p=`echo "$path" | sed 'y%*+%pp%;s%[^_[:alnum:]]%_%g'`
32                         eval "export ac_cv_file_$p=yes"
33                 fi
34         done
35 }
36
37 # FIXME: We don't want to include the libtool archives (*.la) from modules
38 # directory, as they serve no useful purpose. Upstream should fix Makefile.am
39 do_install_append() {
40         find ${D}${libdir}/xorg/modules -regex ".*\.la$" | xargs rm -f --
41 }
42