diff options
Diffstat (limited to 'meta/recipes-graphics/mesa/mesa-dri_7.10.2.bb')
-rw-r--r-- | meta/recipes-graphics/mesa/mesa-dri_7.10.2.bb | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/mesa-dri_7.10.2.bb b/meta/recipes-graphics/mesa/mesa-dri_7.10.2.bb new file mode 100644 index 0000000000..99d60664b9 --- /dev/null +++ b/meta/recipes-graphics/mesa/mesa-dri_7.10.2.bb | |||
@@ -0,0 +1,41 @@ | |||
1 | include mesa-common.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://docs/license.html;md5=7a3373c039b6b925c427755a4f779c1d" | ||
4 | |||
5 | PROTO_DEPS = "xf86driproto glproto dri2proto" | ||
6 | LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes expat \ | ||
7 | libxml2-native" | ||
8 | |||
9 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS} makedepend-native" | ||
10 | |||
11 | PR = "r0" | ||
12 | |||
13 | SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2 \ | ||
14 | file://crossfix.patch" | ||
15 | |||
16 | SRC_URI[md5sum] = "f5de82852f1243f42cc004039e10b771" | ||
17 | SRC_URI[sha256sum] = "8ced2678ce11cf30804694a92ea3ca6b82f158ae8995bdc626c7e85aac71c7c1" | ||
18 | |||
19 | # most of our targets do not have DRI so will use mesa-xlib | ||
20 | DEFAULT_PREFERENCE = "-1" | ||
21 | |||
22 | # Atom PCs have DRI support so use mesa-dri by default | ||
23 | DEFAULT_PREFERENCE_atom-pc = "1" | ||
24 | |||
25 | LEAD_SONAME = "libGL.so.1" | ||
26 | |||
27 | EXTRA_OECONF += "--with-driver=dri --disable-egl --disable-gallium" | ||
28 | |||
29 | python populate_packages_prepend() { | ||
30 | import os.path | ||
31 | |||
32 | dri_drivers_root = os.path.join(bb.data.getVar('libdir', d, 1), "dri") | ||
33 | |||
34 | do_split_packages(d, dri_drivers_root, '^(.*)_dri\.so$', 'mesa-dri-driver-%s', 'Mesa %s DRI driver', extra_depends='') | ||
35 | } | ||
36 | |||
37 | COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)' | ||
38 | |||
39 | PACKAGES_DYNAMIC = "mesa-dri-driver-*" | ||
40 | |||
41 | FILES_${PN}-dbg += "${libdir}/dri/.debug/*" | ||