diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-12-11 15:27:01 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-12-11 15:27:01 +0000 |
commit | 7d937f0f4ab590d0aff75be895251e430c052ebc (patch) | |
tree | d2eff6138f75b709d1b0eecc6fc444ab5e966bfa /meta/packages/mesa | |
parent | bf69b8b737ec7e1e4cf335d81fe97bbbc4ecbb9f (diff) | |
download | poky-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')
-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 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 \ | |||
12 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
13 | 13 | ||
14 | PV = "0.0+git${SRCREV}" | 14 | PV = "0.0+git${SRCREV}" |
15 | PR = "r5" | 15 | PR = "r6" |
16 | 16 | ||
17 | DEFAULT_PREFERENCE = "-1" | 17 | DEFAULT_PREFERENCE = "-1" |
18 | 18 | ||
19 | NATIVE_INSTALL_WORKS = "1" | 19 | NATIVE_INSTALL_WORKS = "1" |
20 | do_install () { | 20 | do_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 | |||
31 | pkg_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 | ||
27 | BBCLASSEXTEND = "nativesdk" | 38 | BBCLASSEXTEND = "nativesdk" |