blob: 086553fecc66c1f06b2e5daf2d3e21531e307051 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
DESCRIPTION = "QEMU i386 OpenGL passtrough"
HOMEPAGE = "http://savannah.nongnu.org/projects/qemugl"
SECTION = "x11/drivers"
LICENSE = "GPL"
DEPENDS = "virtual/libx11 xproto glproto libxfixes"
COMPATIBLE_HOST = '(x86_64.*|i.86.*)-(linux|freebsd.*)'
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 = "r6"
DEFAULT_PREFERENCE = "-1"
NATIVE_INSTALL_WORKS = "1"
do_install () {
install -d ${D}${libdir}/
if [ "${PN}" != "qemugl-nativesdk" ]; then
install -m 0755 ${S}/libGL.so.1.2 ${D}${libdir}/libGL-qemu.so.1.2
else
install -m 0755 ${S}/libGL.so.1.2 ${D}${libdir}/libGL.so.1.2
ln -s libGL.so.1.2 ${D}${libdir}/libGL.so.1
ln -s libGL.so.1 ${D}${libdir}/libGL.so
fi
}
pkg_postinst_${PN} () {
if [ "${PN}" != "qemugl-nativesdk" ]; then
rm -f $D${libdir}/libGL.so.1.2
ln -s libGL-qemu.so.1.2 $D${libdir}/libGL.so.1.2
fi
}
BBCLASSEXTEND = "nativesdk"
|