2011-02-02 14:43:42 +00:00
|
|
|
SUMMARY = "Mesa demo applications"
|
|
|
|
DESCRIPTION = "This package includes the demonstration application, such as glxgears. \
|
|
|
|
These applications can be used for Mesa validation and benchmarking."
|
2010-11-27 11:45:12 +00:00
|
|
|
HOMEPAGE = "http://mesa3d.org"
|
|
|
|
BUGTRACKER = "https://bugs.freedesktop.org"
|
|
|
|
SECTION = "x11"
|
|
|
|
|
|
|
|
LICENSE = "MIT & PD"
|
|
|
|
LIC_FILES_CHKSUM = "file://src/xdemos/glxgears.c;beginline=1;endline=20;md5=914225785450eff644a86c871d3ae00e \
|
|
|
|
file://src/xdemos/glxdemo.c;beginline=1;endline=8;md5=b01d5ab1aee94d35b7efaa2ef48e1a06"
|
|
|
|
|
2011-03-14 22:33:13 +00:00
|
|
|
SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/demos/${PV}/${BPN}-${PV}.tar.bz2 \
|
2016-05-23 12:44:07 +00:00
|
|
|
file://0001-mesa-demos-Add-missing-data-files.patch \
|
|
|
|
file://0003-configure-Allow-to-disable-demos-which-require-GLEW-.patch \
|
|
|
|
file://0004-Use-DEMOS_DATA_DIR-to-locate-data-files.patch \
|
|
|
|
file://0007-Install-few-more-test-programs.patch \
|
|
|
|
file://0008-glsl-perf-Add-few-missing-.glsl-.vert-.frag-files-to.patch \
|
|
|
|
file://0009-glsl-perf-Install-.glsl-.vert-.frag-files.patch \
|
|
|
|
file://0012-mesa-demos-OpenVG-demos-with-single-frame-need-eglSw.patch \
|
|
|
|
file://0013-only-build-GLX-demos-if-needed.patch \
|
|
|
|
"
|
|
|
|
SRC_URI[md5sum] = "628e75c23c17394f11a316c36f8e4164"
|
|
|
|
SRC_URI[sha256sum] = "c173154bbd0d5fb53d732471984def42fb1b14ac85fcb834138fb9518b3e0bef"
|
2010-11-27 11:45:12 +00:00
|
|
|
|
2015-10-21 08:23:55 +00:00
|
|
|
inherit autotools pkgconfig distro_features_check
|
|
|
|
# depends on virtual/egl, virtual/libgl ...
|
2016-07-18 11:54:48 +00:00
|
|
|
REQUIRED_DISTRO_FEATURES = "opengl x11"
|
2010-11-27 11:45:12 +00:00
|
|
|
|
2015-05-06 09:17:08 +00:00
|
|
|
PACKAGECONFIG ?= "drm osmesa freetype2 gbm egl gles1 gles2 \
|
2016-07-18 11:54:48 +00:00
|
|
|
x11 glew glu glx"
|
mesa-demos: Use PACKAGECONFIG to enable/disable features
This allow selection of following features:
drm, egl, freetype2, gbm, gles1, gles2, glut, osmesa, vg, wayland, x11
The x11 features is enabled depending on distro features but the
wayland has not been enabled as it does not work with Wayland
1.0. Rest were enabled for a sane default.
(From OE-Core rev: dc2de313febfc817640e4e55c75d0cb21c70c0ba)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-05-02 15:28:04 +00:00
|
|
|
|
|
|
|
# The Wayland code doesn't work with Wayland 1.0, so disable it for now
|
2017-02-27 13:02:50 +00:00
|
|
|
#${@bb.utils.filter('DISTRO_FEATURES', 'wayland', d)}"
|
mesa-demos: Use PACKAGECONFIG to enable/disable features
This allow selection of following features:
drm, egl, freetype2, gbm, gles1, gles2, glut, osmesa, vg, wayland, x11
The x11 features is enabled depending on distro features but the
wayland has not been enabled as it does not work with Wayland
1.0. Rest were enabled for a sane default.
(From OE-Core rev: dc2de313febfc817640e4e55c75d0cb21c70c0ba)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-05-02 15:28:04 +00:00
|
|
|
|
2014-06-03 00:23:36 +00:00
|
|
|
EXTRA_OECONF = "--with-system-data-files"
|
|
|
|
|
mesa-demos: Use PACKAGECONFIG to enable/disable features
This allow selection of following features:
drm, egl, freetype2, gbm, gles1, gles2, glut, osmesa, vg, wayland, x11
The x11 features is enabled depending on distro features but the
wayland has not been enabled as it does not work with Wayland
1.0. Rest were enabled for a sane default.
(From OE-Core rev: dc2de313febfc817640e4e55c75d0cb21c70c0ba)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-05-02 15:28:04 +00:00
|
|
|
PACKAGECONFIG[drm] = "--enable-libdrm,--disable-libdrm,libdrm"
|
|
|
|
PACKAGECONFIG[egl] = "--enable-egl,--disable-egl,virtual/egl"
|
|
|
|
PACKAGECONFIG[freetype2] = "--enable-freetype2,--disable-freetype2,freetype"
|
|
|
|
PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm,virtual/libgl"
|
|
|
|
PACKAGECONFIG[gles1] = "--enable-gles1,--disable-gles1,virtual/libgles1"
|
|
|
|
PACKAGECONFIG[gles2] = "--enable-gles2,--disable-gles2,virtual/libgles2"
|
2014-05-12 20:10:46 +00:00
|
|
|
PACKAGECONFIG[glut] = "--with-glut=${STAGING_EXECPREFIXDIR},--without-glut,"
|
2013-12-29 03:50:46 +00:00
|
|
|
PACKAGECONFIG[osmesa] = "--enable-osmesa,--disable-osmesa,"
|
2015-08-10 19:47:46 +00:00
|
|
|
PACKAGECONFIG[vg] = "--enable-vg,--disable-vg,virtual/libopenvg"
|
mesa-demos: Use PACKAGECONFIG to enable/disable features
This allow selection of following features:
drm, egl, freetype2, gbm, gles1, gles2, glut, osmesa, vg, wayland, x11
The x11 features is enabled depending on distro features but the
wayland has not been enabled as it does not work with Wayland
1.0. Rest were enabled for a sane default.
(From OE-Core rev: dc2de313febfc817640e4e55c75d0cb21c70c0ba)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-05-02 15:28:04 +00:00
|
|
|
PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,virtual/libgl wayland"
|
2013-12-29 03:50:46 +00:00
|
|
|
PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11"
|
2014-07-31 16:16:17 +00:00
|
|
|
PACKAGECONFIG[glew] = "--enable-glew,--disable-glew,glew"
|
|
|
|
PACKAGECONFIG[glu] = "--enable-glu,--disable-glu,virtual/libgl"
|
2016-05-19 11:26:59 +00:00
|
|
|
PACKAGECONFIG[glx] = "--enable-glx-demos,--disable-glx-demos"
|
2014-06-03 00:23:36 +00:00
|
|
|
|
2014-07-31 16:16:17 +00:00
|
|
|
do_install_append() {
|
2015-07-03 09:53:42 +00:00
|
|
|
# it can be completely empty when all PACKAGECONFIG options are disabled
|
|
|
|
rmdir --ignore-fail-on-non-empty ${D}${bindir}
|
|
|
|
|
|
|
|
if [ -f ${D}${bindir}/clear ]; then
|
|
|
|
mv ${D}${bindir}/clear ${D}${bindir}/clear.mesa-demos
|
|
|
|
fi
|
2014-06-03 00:23:36 +00:00
|
|
|
}
|