diff options
Diffstat (limited to 'meta/packages/mesa/mesa-dri_7.2.bb')
-rw-r--r-- | meta/packages/mesa/mesa-dri_7.2.bb | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/meta/packages/mesa/mesa-dri_7.2.bb b/meta/packages/mesa/mesa-dri_7.2.bb index 77b68c4558..43e4cb5527 100644 --- a/meta/packages/mesa/mesa-dri_7.2.bb +++ b/meta/packages/mesa/mesa-dri_7.2.bb | |||
@@ -5,7 +5,7 @@ LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes expat" | |||
5 | 5 | ||
6 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}" | 6 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}" |
7 | 7 | ||
8 | PR = "r5" | 8 | PR = "r6" |
9 | 9 | ||
10 | # most of our targets do not have DRI so will use mesa-xlib | 10 | # most of our targets do not have DRI so will use mesa-xlib |
11 | DEFAULT_PREFERENCE = "-1" | 11 | DEFAULT_PREFERENCE = "-1" |
@@ -14,16 +14,24 @@ DEFAULT_PREFERENCE = "-1" | |||
14 | DEFAULT_PREFERENCE_netbook = "1" | 14 | DEFAULT_PREFERENCE_netbook = "1" |
15 | 15 | ||
16 | PACKAGES =+ "${PN}-xprogs" | 16 | PACKAGES =+ "${PN}-xprogs" |
17 | PACKAGES_DYNAMIC = "mesa-dri-driver-*" | ||
17 | 18 | ||
18 | FILES_${PN} += "${libdir}/dri/*.so" | ||
19 | FILES_${PN}-dbg += "${libdir}/dri/.debug/*" | 19 | FILES_${PN}-dbg += "${libdir}/dri/.debug/*" |
20 | FILES_${PN}-xprogs = "${bindir}/glxdemo ${bindir}/glxgears ${bindir}/glxheads ${bindir}/glxinfo" | 20 | FILES_${PN}-xprogs = "${bindir}/glxdemo ${bindir}/glxgears ${bindir}/glxheads ${bindir}/glxinfo" |
21 | 21 | ||
22 | EXTRA_OECONF += "--with-driver=dri --with-dri-drivers=${MACHINE_DRI_MODULES}" | 22 | EXTRA_OECONF += "--with-driver=dri" |
23 | 23 | ||
24 | do_install_append () { | 24 | do_install_append () { |
25 | install -d ${D}/usr/bin | 25 | install -d ${D}/usr/bin |
26 | install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/usr/bin/ | 26 | install -m 0755 ${S}/progs/xdemos/{glxdemo,glxgears,glxheads,glxinfo} ${D}/usr/bin/ |
27 | } | 27 | } |
28 | 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 | |||
29 | COMPATIBLE_HOST = '(i.86.*-linux)' | 37 | COMPATIBLE_HOST = '(i.86.*-linux)' |