summaryrefslogtreecommitdiffstats
path: root/meta/packages/mesa/qemugl_git.bb
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-12-11 15:27:01 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-12-11 15:27:01 +0000
commit7d937f0f4ab590d0aff75be895251e430c052ebc (patch)
treed2eff6138f75b709d1b0eecc6fc444ab5e966bfa /meta/packages/mesa/qemugl_git.bb
parentbf69b8b737ec7e1e4cf335d81fe97bbbc4ecbb9f (diff)
downloadpoky-7d937f0f4ab590d0aff75be895251e430c052ebc.tar.gz
qemugl: Only directly install for -nativesdk version
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/mesa/qemugl_git.bb')
-rw-r--r--meta/packages/mesa/qemugl_git.bb19
1 files changed, 15 insertions, 4 deletions
diff --git a/meta/packages/mesa/qemugl_git.bb b/meta/packages/mesa/qemugl_git.bb
index b69103c7a8..086553fecc 100644
--- a/meta/packages/mesa/qemugl_git.bb
+++ b/meta/packages/mesa/qemugl_git.bb
@@ -12,16 +12,27 @@ SRC_URI = "git://git.o-hand.com/qemugl.git;protocol=git \
12S = "${WORKDIR}/git" 12S = "${WORKDIR}/git"
13 13
14PV = "0.0+git${SRCREV}" 14PV = "0.0+git${SRCREV}"
15PR = "r5" 15PR = "r6"
16 16
17DEFAULT_PREFERENCE = "-1" 17DEFAULT_PREFERENCE = "-1"
18 18
19NATIVE_INSTALL_WORKS = "1" 19NATIVE_INSTALL_WORKS = "1"
20do_install () { 20do_install () {
21 install -d ${D}${libdir}/ 21 install -d ${D}${libdir}/
22 install -m 0755 ${S}/libGL.so.1.2 ${D}${libdir}/libGL.so.1.2 22 if [ "${PN}" != "qemugl-nativesdk" ]; then
23 ln -s libGL.so.1.2 ${D}${libdir}/libGL.so.1 23 install -m 0755 ${S}/libGL.so.1.2 ${D}${libdir}/libGL-qemu.so.1.2
24 ln -s libGL.so.1 ${D}${libdir}/libGL.so 24 else
25 install -m 0755 ${S}/libGL.so.1.2 ${D}${libdir}/libGL.so.1.2
26 ln -s libGL.so.1.2 ${D}${libdir}/libGL.so.1
27 ln -s libGL.so.1 ${D}${libdir}/libGL.so
28 fi
29}
30
31pkg_postinst_${PN} () {
32 if [ "${PN}" != "qemugl-nativesdk" ]; then
33 rm -f $D${libdir}/libGL.so.1.2
34 ln -s libGL-qemu.so.1.2 $D${libdir}/libGL.so.1.2
35 fi
25} 36}
26 37
27BBCLASSEXTEND = "nativesdk" 38BBCLASSEXTEND = "nativesdk"