diff options
author | Joshua Lock <josh@linux.intel.com> | 2009-12-11 14:18:40 +0000 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2009-12-11 15:03:36 +0000 |
commit | 0b02870404c5e9b6ca8c3992f97f0995fb63d0f5 (patch) | |
tree | 27139b987713af0b1b155a1f21540731ce5a35fc | |
parent | 7ed5c2cebcdd52e71096bcfe7896fe8a805c7b4b (diff) | |
download | poky-0b02870404c5e9b6ca8c3992f97f0995fb63d0f5.tar.gz |
qemugl-nativesdk: Add a nativesdk package
-rw-r--r-- | meta/packages/mesa/qemugl-nativesdk_git.bb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/packages/mesa/qemugl-nativesdk_git.bb b/meta/packages/mesa/qemugl-nativesdk_git.bb new file mode 100644 index 0000000000..a0396ee3e2 --- /dev/null +++ b/meta/packages/mesa/qemugl-nativesdk_git.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | DESCRIPTION = "QEMU i386 OpenGL passtrough" | ||
2 | HOMEPAGE = "http://savannah.nongnu.org/projects/qemugl" | ||
3 | SECTION = "x11/drivers" | ||
4 | LICENSE = "GPL" | ||
5 | |||
6 | DEPENDS = "virtual/libx11 xproto glproto libxfixes" | ||
7 | |||
8 | SRC_URI = "git://git.o-hand.com/qemugl.git;protocol=git \ | ||
9 | file://versionfix.patch;patch=1" | ||
10 | S = "${WORKDIR}/git" | ||
11 | |||
12 | PV = "0.0+git${SRCREV}" | ||
13 | PR = "r0" | ||
14 | |||
15 | inherit nativesdk | ||
16 | |||
17 | DEFAULT_PREFERENCE = "-1" | ||
18 | |||
19 | do_install () { | ||
20 | install -d ${D}${libdir}/ | ||
21 | install -m 0755 ${S}/libGL.so.1.2 ${D}${libdir}/libGL-qemu.so.1.2 | ||
22 | } | ||
23 | |||
24 | do_stage () { | ||
25 | install -d ${STAGING_LIBDIR} | ||
26 | install -m 0755 ${S}/libGL.so.1.2 ${STAGING_LIBDIR}/libGL.so.1.2 | ||
27 | ln -s libGL.so.1.2 ${STAGING_LIBDIR}/libGL.so.1 | ||
28 | ln -s libGL.so.1 ${STAGING_LIBDIR}/libGL.so | ||
29 | } | ||
30 | |||
31 | pkg_postinst_${PN} () { | ||
32 | rm -f $D${libdir}/libGL.so.1.2 | ||
33 | ln -s libGL-qemu.so.1.2 $D${libdir}/libGL.so.1.2 | ||
34 | } | ||
35 | |||