diff options
Diffstat (limited to 'meta-moblin/packages/xorg-driver/xf86-driver-common.inc')
| -rw-r--r-- | meta-moblin/packages/xorg-driver/xf86-driver-common.inc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-moblin/packages/xorg-driver/xf86-driver-common.inc b/meta-moblin/packages/xorg-driver/xf86-driver-common.inc new file mode 100644 index 0000000000..308d06e0b1 --- /dev/null +++ b/meta-moblin/packages/xorg-driver/xf86-driver-common.inc | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | DESCRIPTION = "X driver" | ||
| 2 | HOMEPAGE = "http://www.x.org" | ||
| 3 | SECTION = "x11/drivers" | ||
| 4 | LICENSE = "MIT-X" | ||
| 5 | |||
| 6 | PE = "1" | ||
| 7 | PR = "r0" | ||
| 8 | |||
| 9 | DEPENDS = "virtual/xserver-xf86 xproto randrproto" | ||
| 10 | |||
| 11 | XORG_PN = "${PN}" | ||
| 12 | SRC_URI = "${XORG_MIRROR}/individual/driver/${XORG_PN}-${PV}.tar.bz2" | ||
| 13 | |||
| 14 | S = "${WORKDIR}/${XORG_PN}-${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 | do_stage() { | ||
| 22 | autotools_stage_all | ||
| 23 | } | ||
| 24 | |||
| 25 | # AC_CHECK_FILE doesn't work when cross compiling, so we create a replacement | ||
| 26 | # macro that simply assumes the test succeeds. | ||
| 27 | do_configure_prepend () { | ||
| 28 | echo 'AC_DEFUN(CC_AC_CHECK_FILE, $2)' > configure.ac.new | ||
| 29 | sed 's/AC_CHECK_FILE/CC_AC_CHECK_FILE/g' configure.ac >> configure.ac.new | ||
| 30 | mv configure.ac.new configure.ac | ||
| 31 | } | ||
| 32 | |||
