summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/qemugl_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/mesa/qemugl_git.bb')
-rw-r--r--meta/recipes-graphics/mesa/qemugl_git.bb37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/qemugl_git.bb b/meta/recipes-graphics/mesa/qemugl_git.bb
new file mode 100644
index 0000000000..184c782722
--- /dev/null
+++ b/meta/recipes-graphics/mesa/qemugl_git.bb
@@ -0,0 +1,37 @@
1DESCRIPTION = "QEMU i386 OpenGL passtrough"
2HOMEPAGE = "http://savannah.nongnu.org/projects/qemugl"
3SECTION = "x11/drivers"
4LICENSE = "GPL"
5
6DEPENDS = "virtual/libx11 xproto glproto libxfixes"
7
8COMPATIBLE_HOST = '(x86_64.*|i.86.*)-(linux|freebsd.*)'
9
10SRC_URI = "git://git.o-hand.com/qemugl.git;protocol=git \
11 file://versionfix.patch"
12S = "${WORKDIR}/git"
13
14PV = "0.0+git${SRCPV}"
15PR = "r6"
16
17DEFAULT_PREFERENCE = "-1"
18
19do_install () {
20 install -d ${D}${libdir}/
21 if [ "${PN}" != "qemugl-nativesdk" ]; then
22 install -m 0755 ${S}/libGL.so.1.2 ${D}${libdir}/libGL-qemu.so.1.2
23 else
24 install -m 0755 ${S}/libGL.so.1.2 ${D}${libdir}/libGL.so.1.2
25 ln -s libGL.so.1.2 ${D}${libdir}/libGL.so.1
26 ln -s libGL.so.1 ${D}${libdir}/libGL.so
27 fi
28}
29
30pkg_postinst_${PN} () {
31 if [ "${PN}" != "qemugl-nativesdk" ]; then
32 rm -f $D${libdir}/libGL.so.1.2
33 ln -s libGL-qemu.so.1.2 $D${libdir}/libGL.so.1.2
34 fi
35}
36
37BBCLASSEXTEND = "nativesdk"