diff options
Diffstat (limited to 'meta/packages/mesa')
-rw-r--r-- | meta/packages/mesa/qemugl_git.bb | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/meta/packages/mesa/qemugl_git.bb b/meta/packages/mesa/qemugl_git.bb index b69103c7a..086553fec 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" |