diff options
Diffstat (limited to 'meta/recipes-graphics/mesa/qemugl_git.bb')
-rw-r--r-- | meta/recipes-graphics/mesa/qemugl_git.bb | 37 |
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 @@ | |||
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 | COMPATIBLE_HOST = '(x86_64.*|i.86.*)-(linux|freebsd.*)' | ||
9 | |||
10 | SRC_URI = "git://git.o-hand.com/qemugl.git;protocol=git \ | ||
11 | file://versionfix.patch" | ||
12 | S = "${WORKDIR}/git" | ||
13 | |||
14 | PV = "0.0+git${SRCPV}" | ||
15 | PR = "r6" | ||
16 | |||
17 | DEFAULT_PREFERENCE = "-1" | ||
18 | |||
19 | do_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 | |||
30 | pkg_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 | |||
37 | BBCLASSEXTEND = "nativesdk" | ||