summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2009-12-11 14:18:40 +0000
committerJoshua Lock <josh@linux.intel.com>2009-12-11 15:03:36 +0000
commit0b02870404c5e9b6ca8c3992f97f0995fb63d0f5 (patch)
tree27139b987713af0b1b155a1f21540731ce5a35fc
parent7ed5c2cebcdd52e71096bcfe7896fe8a805c7b4b (diff)
downloadpoky-0b02870404c5e9b6ca8c3992f97f0995fb63d0f5.tar.gz
poky-0b02870404c5e9b6ca8c3992f97f0995fb63d0f5.tar.bz2
poky-0b02870404c5e9b6ca8c3992f97f0995fb63d0f5.zip
qemugl-nativesdk: Add a nativesdk package
-rw-r--r--meta/packages/mesa/qemugl-nativesdk_git.bb35
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 @@
+DESCRIPTION = "QEMU i386 OpenGL passtrough"
+HOMEPAGE = "http://savannah.nongnu.org/projects/qemugl"
+SECTION = "x11/drivers"
+LICENSE = "GPL"
+
+DEPENDS = "virtual/libx11 xproto glproto libxfixes"
+
+SRC_URI = "git://git.o-hand.com/qemugl.git;protocol=git \
+ file://versionfix.patch;patch=1"
+S = "${WORKDIR}/git"
+
+PV = "0.0+git${SRCREV}"
+PR = "r0"
+
+inherit nativesdk
+
+DEFAULT_PREFERENCE = "-1"
+
+do_install () {
+ install -d ${D}${libdir}/
+ install -m 0755 ${S}/libGL.so.1.2 ${D}${libdir}/libGL-qemu.so.1.2
+}
+
+do_stage () {
+ install -d ${STAGING_LIBDIR}
+ install -m 0755 ${S}/libGL.so.1.2 ${STAGING_LIBDIR}/libGL.so.1.2
+ ln -s libGL.so.1.2 ${STAGING_LIBDIR}/libGL.so.1
+ ln -s libGL.so.1 ${STAGING_LIBDIR}/libGL.so
+}
+
+pkg_postinst_${PN} () {
+ rm -f $D${libdir}/libGL.so.1.2
+ ln -s libGL-qemu.so.1.2 $D${libdir}/libGL.so.1.2
+}
+