libdmx: Add fso-specs to DEPENDS
[openembedded.git] / recipes / xorg-driver / xorg-driver-common.inc
blob66a378f6784de19d8bb0914744b360bb18d429b7
1 DESCRIPTION = "X driver"
2 HOMEPAGE = "http://www.x.org"
3 SECTION = "x11/drivers"
4 LICENSE = "MIT-X"
5 PR = "r11"
7 DEPENDS = "randrproto xorg-server xproto"
9 XORG_PN = "${PN}"
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"
22 do_stage() {
23         autotools_stage_all
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
33                 path="$incdir/$f"
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"
37                 fi
38         done
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
43 do_install_append() {
44         find ${D}${libdir}/xorg/modules -regex ".*\.la$" | xargs rm -f --