diff options
Diffstat (limited to 'meta/packages/mesa/qemugl_git.bb')
-rw-r--r-- | meta/packages/mesa/qemugl_git.bb | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/meta/packages/mesa/qemugl_git.bb b/meta/packages/mesa/qemugl_git.bb index 272f47b898..bfc447392f 100644 --- a/meta/packages/mesa/qemugl_git.bb +++ b/meta/packages/mesa/qemugl_git.bb | |||
@@ -8,36 +8,20 @@ DEPENDS = "virtual/libx11 xproto glproto libxfixes" | |||
8 | COMPATIBLE_HOST = '(x86_64|i.86.*)-(linux|freebsd.*)' | 8 | COMPATIBLE_HOST = '(x86_64|i.86.*)-(linux|freebsd.*)' |
9 | 9 | ||
10 | SRC_URI = "git://git.o-hand.com/qemugl.git;protocol=git \ | 10 | SRC_URI = "git://git.o-hand.com/qemugl.git;protocol=git \ |
11 | file://headers.tgz \ | 11 | file://versionfix.patch;patch=1" |
12 | file://gl.pc" | ||
13 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
14 | 13 | ||
15 | PV = "0.0+git${SRCREV}" | 14 | PV = "0.0+git${SRCREV}" |
16 | PR = "r1" | 15 | PR = "r5" |
17 | |||
18 | PROVIDES = "virtual/libgl" | ||
19 | 16 | ||
20 | DEFAULT_PREFERENCE = "-1" | 17 | DEFAULT_PREFERENCE = "-1" |
21 | 18 | ||
22 | # Multiple virtual/gl providers being built breaks staging | ||
23 | EXCLUDE_FROM_WORLD = "1" | ||
24 | |||
25 | do_install () { | 19 | do_install () { |
26 | install -d ${D}${libdir} | 20 | install -d ${D}${libdir}/ |
27 | install -m 0755 ${S}/libGL.so ${D}${libdir}/ | 21 | install -m 0755 ${S}/libGL.so.1.2 ${D}${libdir}/libGL-qemu.so.1.2 |
28 | ln -s libGL.so ${D}${libdir}/libGL.so.1 | ||
29 | install -d ${D}{includedir}/GL/ | ||
30 | cp -pPR ${WORKDIR}/headers/* ${D}{includedir}/GL/ | ||
31 | install -d ${D}${libdir}/pkgconfig/ | ||
32 | cp ${WORKDIR}/gl.pc ${D}${libdir}/pkgconfig/ | ||
33 | } | 22 | } |
34 | 23 | ||
35 | do_stage () { | 24 | pkg_postinst_${PN} () { |
36 | install -d ${STAGING_LIBDIR}/ | 25 | rm -f $D${libdir}/libGL.so.1.2 |
37 | install -m 0755 ${S}/libGL.so ${STAGING_LIBDIR}/ | 26 | ln -s libGL-qemu.so.1.2 $D${libdir}/libGL.so.1.2 |
38 | ln -s libGL.so ${STAGING_LIBDIR}/libGL.so.1 | 27 | } \ No newline at end of file |
39 | install -d ${STAGING_INCDIR}/GL/ | ||
40 | cp -pPR ${WORKDIR}/headers/* ${STAGING_INCDIR}/GL/ | ||
41 | install -d ${STAGING_LIBDIR}/pkgconfig/ | ||
42 | cp ${WORKDIR}/gl.pc ${STAGING_LIBDIR}/pkgconfig/ | ||
43 | } | ||