summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrew Moseley <drew_moseley@mentor.com>2014-06-02 20:23:36 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-06-06 09:26:03 +0100
commit4a440b0c7765d816101efb519a7980b14384b6aa (patch)
tree786ea7fe931427b5d97c6e11c32d38a4c517096a
parent920642b711c3789fa9577a7c7e305fe2385ef5aa (diff)
downloadpoky-4a440b0c7765d816101efb519a7980b14384b6aa.tar.gz
mesa-demos: Build with system data files
Use the "--with-system-data-files" when configuring mesa-demos so that the data files in /usr/share/mesa-demos/ will be properly located at run time. Copy some additional data files into the target filesystem. (From OE-Core rev: d602264267f49bf72704b6c5ab1247b4027313bb) Signed-off-by: Drew Moseley <drew_moseley@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-graphics/mesa/mesa-demos_8.1.0.bb11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/mesa-demos_8.1.0.bb b/meta/recipes-graphics/mesa/mesa-demos_8.1.0.bb
index 7cda19eb6f..972ead3478 100644
--- a/meta/recipes-graphics/mesa/mesa-demos_8.1.0.bb
+++ b/meta/recipes-graphics/mesa/mesa-demos_8.1.0.bb
@@ -27,6 +27,8 @@ PACKAGECONFIG ?= "drm osmesa freetype2 gbm egl gles1 gles2 \
27# The Wayland code doesn't work with Wayland 1.0, so disable it for now 27# The Wayland code doesn't work with Wayland 1.0, so disable it for now
28#${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}" 28#${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}"
29 29
30EXTRA_OECONF = "--with-system-data-files"
31
30PACKAGECONFIG[drm] = "--enable-libdrm,--disable-libdrm,libdrm" 32PACKAGECONFIG[drm] = "--enable-libdrm,--disable-libdrm,libdrm"
31PACKAGECONFIG[egl] = "--enable-egl,--disable-egl,virtual/egl" 33PACKAGECONFIG[egl] = "--enable-egl,--disable-egl,virtual/egl"
32PACKAGECONFIG[freetype2] = "--enable-freetype2,--disable-freetype2,freetype" 34PACKAGECONFIG[freetype2] = "--enable-freetype2,--disable-freetype2,freetype"
@@ -38,3 +40,12 @@ PACKAGECONFIG[osmesa] = "--enable-osmesa,--disable-osmesa,"
38PACKAGECONFIG[vg] = "--enable-vg,--disable-vg,virtual/libvg" 40PACKAGECONFIG[vg] = "--enable-vg,--disable-vg,virtual/libvg"
39PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,virtual/libgl wayland" 41PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,virtual/libgl wayland"
40PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11" 42PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11"
43
44do_install_append () {
45 install -m 0644 ${S}/src/perf/*.frag \
46 ${S}/src/perf/*.vert \
47 ${S}/src/glsl/*.frag \
48 ${S}/src/glsl/*.vert \
49 ${S}/src/glsl/*.geom \
50 ${S}/src/glsl/*.glsl ${D}${datadir}/${BPN}
51}