From 7047b873e471fba454e70f4365f9b7f5247c2f3c Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Fri, 30 Sep 2011 09:27:18 +0200 Subject: xorg-driver: rename .inc files and merge some changes from meta-oe * use INC_PR * use BPN directly instead of XORG_PN (From OE-Core rev: 7920cc4b43f139d023b52a71c2407f5295347618) Signed-off-by: Martin Jansa Signed-off-by: Richard Purdie --- .../xorg-driver/xorg-driver-common.inc | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 meta/recipes-graphics/xorg-driver/xorg-driver-common.inc (limited to 'meta/recipes-graphics/xorg-driver/xorg-driver-common.inc') diff --git a/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc b/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc new file mode 100644 index 0000000000..801d8d3a92 --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc @@ -0,0 +1,33 @@ +DESCRIPTION = "X driver" +HOMEPAGE = "http://www.x.org" +BUGTRACKER = "https://bugs.freedesktop.org" +SECTION = "x11/drivers" +LICENSE = "MIT-X" + +PE = "1" +INC_PR = "r15" + +DEPENDS = "virtual/xserver-xf86 xproto randrproto util-macros" + +SRC_URI = "${XORG_MIRROR}/individual/driver/${BPN}-${PV}.tar.bz2" + +S = "${WORKDIR}/${BPN}-${PV}" + +FILES_${PN} += " ${libdir}/xorg/modules/drivers/*.so" +FILES_${PN}-dbg += " ${libdir}/xorg/modules/drivers/.debug" + +inherit autotools pkgconfig + +# AC_CHECK_FILE doesn't work when cross compiling, so we create a replacement +# macro that simply assumes the test succeeds. +do_configure_prepend () { + echo 'AC_DEFUN(CC_AC_CHECK_FILE, $2)' > configure.ac.new + sed 's/AC_CHECK_FILE/CC_AC_CHECK_FILE/g' configure.ac >> configure.ac.new + mv configure.ac.new configure.ac +} + +# FIXME: We don't want to include the libtool archives (*.la) from modules +# directory, as they serve no useful purpose. Upstream should fix Makefile.am +do_install_append() { + find ${D}${libdir}/xorg/modules -regex ".*\.la$" | xargs rm -f -- +} -- cgit v1.2.3-54-g00ecf