diff options
Diffstat (limited to 'meta/packages/mesa/mesa-dri_git.bb')
-rw-r--r-- | meta/packages/mesa/mesa-dri_git.bb | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/meta/packages/mesa/mesa-dri_git.bb b/meta/packages/mesa/mesa-dri_git.bb index 65a4a03656..a316d580e4 100644 --- a/meta/packages/mesa/mesa-dri_git.bb +++ b/meta/packages/mesa/mesa-dri_git.bb | |||
@@ -1,12 +1,18 @@ | |||
1 | include mesa-common.inc | 1 | include mesa-common.inc |
2 | 2 | ||
3 | SRC_URI = "git://anongit.freedesktop.org/git/mesa/mesa;protocol=git;branch=mesa_7_5_branch \ | ||
4 | file://cross2.patch;patch=1 \ | ||
5 | file://matypes.h" | ||
6 | # file://mesa-DRI2Swapbuffer.patch;patch=1 " | ||
7 | S = "${WORKDIR}/git" | ||
8 | |||
3 | PROTO_DEPS = "xf86driproto glproto dri2proto" | 9 | PROTO_DEPS = "xf86driproto glproto dri2proto" |
4 | LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes expat" | 10 | LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes expat" |
5 | 11 | ||
6 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}" | 12 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}" |
7 | 13 | ||
8 | PV = "7.4+git${SRCPV}" | 14 | PV = "7.5+git${SRCPV}" |
9 | PR = "r4" | 15 | PR = "r14" |
10 | 16 | ||
11 | # most of our targets do not have DRI so will use mesa-xlib | 17 | # most of our targets do not have DRI so will use mesa-xlib |
12 | DEFAULT_PREFERENCE = "-1" | 18 | DEFAULT_PREFERENCE = "-1" |
@@ -14,21 +20,24 @@ DEFAULT_PREFERENCE = "-1" | |||
14 | # Netbooks have DRI support so use mesa-dri by default | 20 | # Netbooks have DRI support so use mesa-dri by default |
15 | DEFAULT_PREFERENCE_netbook = "1" | 21 | DEFAULT_PREFERENCE_netbook = "1" |
16 | 22 | ||
17 | SRC_URI = "git://anongit.freedesktop.org/git/mesa/mesa;protocol=git;branch=master" | ||
18 | S = "${WORKDIR}/git" | ||
19 | |||
20 | PACKAGES =+ "${PN}-xprogs" | 23 | PACKAGES =+ "${PN}-xprogs" |
21 | PACKAGES_DYNAMIC = "mesa-dri-driver-*" | 24 | PACKAGES_DYNAMIC = "mesa-dri-driver-*" |
22 | 25 | ||
23 | FILES_${PN}-dbg += "${libdir}/dri/.debug/*" | 26 | FILES_${PN}-dbg += "${libdir}/dri/.debug/*" |
24 | FILES_${PN}-xprogs = "${bindir}/glxdemo ${bindir}/glxgears ${bindir}/glxheads ${bindir}/glxinfo" | 27 | FILES_${PN}-xprogs = "${bindir}/glxdemo ${bindir}/glxgears ${bindir}/glxheads ${bindir}/glxinfo" |
25 | 28 | ||
26 | EXTRA_OECONF += "--with-driver=dri --with-state-trackers=glx" | 29 | LEAD_SONAME = "libGL.so.1" |
30 | |||
31 | EXTRA_OECONF += "--with-driver=dri --disable-egl --disable-gallium" | ||
32 | |||
33 | do_configure_prepend () { | ||
34 | cp ${WORKDIR}/matypes.h ${S}/src/mesa/x86 | ||
35 | touch ${S}/src/mesa/x86/matypes.h | ||
36 | } | ||
27 | 37 | ||
28 | do_install_append () { | 38 | do_install_append () { |
29 | install -d ${D}/usr/bin | 39 | install -d ${D}/usr/bin |
30 | install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/usr/bin/ | 40 | install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/usr/bin/ |
31 | rm ${D}/usr/lib/libEGL* || /bin/true | ||
32 | } | 41 | } |
33 | 42 | ||
34 | python populate_packages_prepend() { | 43 | python populate_packages_prepend() { |