diff options
| author | Martin Jansa <martin.jansa@gmail.com> | 2011-09-30 09:27:18 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-10-04 13:46:22 +0100 |
| commit | 7047b873e471fba454e70f4365f9b7f5247c2f3c (patch) | |
| tree | 7c07c614c371f85732e2217e74ede62aa2401c93 /meta/recipes-graphics/xorg-driver/xorg-driver-common.inc | |
| parent | b887e7fd3f25a8a5d675cbd4470c5bc6c780e0b5 (diff) | |
| download | poky-7047b873e471fba454e70f4365f9b7f5247c2f3c.tar.gz | |
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 <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/xorg-driver/xorg-driver-common.inc')
| -rw-r--r-- | meta/recipes-graphics/xorg-driver/xorg-driver-common.inc | 33 |
1 files changed, 33 insertions, 0 deletions
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 @@ | |||
| 1 | DESCRIPTION = "X driver" | ||
| 2 | HOMEPAGE = "http://www.x.org" | ||
| 3 | BUGTRACKER = "https://bugs.freedesktop.org" | ||
| 4 | SECTION = "x11/drivers" | ||
| 5 | LICENSE = "MIT-X" | ||
| 6 | |||
| 7 | PE = "1" | ||
| 8 | INC_PR = "r15" | ||
| 9 | |||
| 10 | DEPENDS = "virtual/xserver-xf86 xproto randrproto util-macros" | ||
| 11 | |||
| 12 | SRC_URI = "${XORG_MIRROR}/individual/driver/${BPN}-${PV}.tar.bz2" | ||
| 13 | |||
| 14 | S = "${WORKDIR}/${BPN}-${PV}" | ||
| 15 | |||
| 16 | FILES_${PN} += " ${libdir}/xorg/modules/drivers/*.so" | ||
| 17 | FILES_${PN}-dbg += " ${libdir}/xorg/modules/drivers/.debug" | ||
| 18 | |||
| 19 | inherit autotools pkgconfig | ||
| 20 | |||
| 21 | # AC_CHECK_FILE doesn't work when cross compiling, so we create a replacement | ||
| 22 | # macro that simply assumes the test succeeds. | ||
| 23 | do_configure_prepend () { | ||
| 24 | echo 'AC_DEFUN(CC_AC_CHECK_FILE, $2)' > configure.ac.new | ||
| 25 | sed 's/AC_CHECK_FILE/CC_AC_CHECK_FILE/g' configure.ac >> configure.ac.new | ||
| 26 | mv configure.ac.new configure.ac | ||
| 27 | } | ||
| 28 | |||
| 29 | # FIXME: We don't want to include the libtool archives (*.la) from modules | ||
| 30 | # directory, as they serve no useful purpose. Upstream should fix Makefile.am | ||
| 31 | do_install_append() { | ||
| 32 | find ${D}${libdir}/xorg/modules -regex ".*\.la$" | xargs rm -f -- | ||
| 33 | } | ||
