summaryrefslogtreecommitdiff
path: root/meta
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
parentbf69b8b737ec7e1e4cf335d81fe97bbbc4ecbb9f (diff)
downloadopenembedded-core-7d937f0f4ab590d0aff75be895251e430c052ebc.tar.gz
openembedded-core-7d937f0f4ab590d0aff75be895251e430c052ebc.tar.bz2
openembedded-core-7d937f0f4ab590d0aff75be895251e430c052ebc.zip
qemugl: Only directly install for -nativesdk version
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta')
-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 \
S = "${WORKDIR}/git"
PV = "0.0+git${SRCREV}"
-PR = "r5"
+PR = "r6"
DEFAULT_PREFERENCE = "-1"
NATIVE_INSTALL_WORKS = "1"
do_install () {
install -d ${D}${libdir}/
- 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
+ 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"