1 DESCRIPTION = "X driver"
2 HOMEPAGE = "http://www.x.org"
3 SECTION = "x11/drivers"
7 DEPENDS = "randrproto xorg-server xproto"
10 SRC_URI = "${XORG_MIRROR}/individual/driver/${XORG_PN}-${PV}.tar.bz2;name=archive"
12 S = "${WORKDIR}/${XORG_PN}-${PV}"
14 FILES_${PN} += " ${libdir}/xorg/modules"
15 FILES_${PN}-dbg += "${libdir}/xorg/modules/*/.debug"
17 inherit autotools pkgconfig
19 TARGET_CPPFLAGS += "-I${STAGING_DIR_HOST}/usr/include/xorg"
26 # Another sucky behavor from Xorg configure scripts.
27 # They use AC_CHECK_FILE to check for DRI headers. Yuck!
28 # Of course this will blow up when cross compiling.
30 do_configure_prepend() {
31 incdir=${layout_includedir}/xorg
32 for f in dri.h sarea.h dristruct.h exa.h damage.h xf86Module.h; do
34 if [ -f "${STAGING_DIR_HOST}/$path" ]; then
35 p=`echo "$path" | sed 'y%*+%pp%;s%[^_[:alnum:]]%_%g'`
36 eval "export ac_cv_file_$p=yes"
41 # FIXME: We don't want to include the libtool archives (*.la) from modules
42 # directory, as they serve no useful purpose. Upstream should fix Makefile.am
44 find ${D}${libdir}/xorg/modules -regex ".*\.la$" | xargs rm -f --