Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 1 | SUMMARY = "Mesa demo applications" |
| 2 | DESCRIPTION = "This package includes the demonstration application, such as glxgears. \ |
| 3 | These applications can be used for Mesa validation and benchmarking." |
| 4 | HOMEPAGE = "http://mesa3d.org" |
| 5 | BUGTRACKER = "https://bugs.freedesktop.org" |
| 6 | SECTION = "x11" |
| 7 | |
| 8 | LICENSE = "MIT & PD" |
| 9 | LIC_FILES_CHKSUM = "file://src/xdemos/glxgears.c;beginline=1;endline=20;md5=914225785450eff644a86c871d3ae00e \ |
| 10 | file://src/xdemos/glxdemo.c;beginline=1;endline=8;md5=b01d5ab1aee94d35b7efaa2ef48e1a06" |
| 11 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 12 | SRC_URI = "https://mesa.freedesktop.org/archive/demos/${PV}/${BPN}-${PV}.tar.bz2 \ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 13 | file://0001-mesa-demos-Add-missing-data-files.patch \ |
| 14 | file://0003-configure-Allow-to-disable-demos-which-require-GLEW-.patch \ |
| 15 | file://0004-Use-DEMOS_DATA_DIR-to-locate-data-files.patch \ |
| 16 | file://0007-Install-few-more-test-programs.patch \ |
| 17 | file://0008-glsl-perf-Add-few-missing-.glsl-.vert-.frag-files-to.patch \ |
| 18 | file://0009-glsl-perf-Install-.glsl-.vert-.frag-files.patch \ |
| 19 | file://0012-mesa-demos-OpenVG-demos-with-single-frame-need-eglSw.patch \ |
| 20 | file://0013-only-build-GLX-demos-if-needed.patch \ |
| 21 | " |
| 22 | SRC_URI[md5sum] = "628e75c23c17394f11a316c36f8e4164" |
| 23 | SRC_URI[sha256sum] = "c173154bbd0d5fb53d732471984def42fb1b14ac85fcb834138fb9518b3e0bef" |
| 24 | |
| 25 | inherit autotools pkgconfig distro_features_check |
| 26 | # depends on virtual/egl, virtual/libgl ... |
| 27 | REQUIRED_DISTRO_FEATURES = "opengl x11" |
| 28 | |
| 29 | PACKAGECONFIG ?= "drm osmesa freetype2 gbm egl gles1 gles2 \ |
| 30 | x11 glew glu glx" |
| 31 | |
| 32 | # The Wayland code doesn't work with Wayland 1.0, so disable it for now |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 33 | #${@bb.utils.filter('DISTRO_FEATURES', 'wayland', d)}" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 34 | |
| 35 | EXTRA_OECONF = "--with-system-data-files" |
| 36 | |
| 37 | PACKAGECONFIG[drm] = "--enable-libdrm,--disable-libdrm,libdrm" |
| 38 | PACKAGECONFIG[egl] = "--enable-egl,--disable-egl,virtual/egl" |
| 39 | PACKAGECONFIG[freetype2] = "--enable-freetype2,--disable-freetype2,freetype" |
| 40 | PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm,virtual/libgl" |
| 41 | PACKAGECONFIG[gles1] = "--enable-gles1,--disable-gles1,virtual/libgles1" |
| 42 | PACKAGECONFIG[gles2] = "--enable-gles2,--disable-gles2,virtual/libgles2" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 43 | PACKAGECONFIG[glut] = "--with-glut=${STAGING_EXECPREFIXDIR},--without-glut,freeglut" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 44 | PACKAGECONFIG[osmesa] = "--enable-osmesa,--disable-osmesa," |
| 45 | PACKAGECONFIG[vg] = "--enable-vg,--disable-vg,virtual/libopenvg" |
| 46 | PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,virtual/libgl wayland" |
| 47 | PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11" |
| 48 | PACKAGECONFIG[glew] = "--enable-glew,--disable-glew,glew" |
| 49 | PACKAGECONFIG[glu] = "--enable-glu,--disable-glu,virtual/libgl" |
| 50 | PACKAGECONFIG[glx] = "--enable-glx-demos,--disable-glx-demos" |
| 51 | |
| 52 | do_install_append() { |
| 53 | # it can be completely empty when all PACKAGECONFIG options are disabled |
| 54 | rmdir --ignore-fail-on-non-empty ${D}${bindir} |
| 55 | |
| 56 | if [ -f ${D}${bindir}/clear ]; then |
| 57 | mv ${D}${bindir}/clear ${D}${bindir}/clear.mesa-demos |
| 58 | fi |
| 59 | } |