Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "OpenGL (ES) 2.0 benchmark" |
| 2 | DESCRIPTION = "glmark2 is a benchmark for OpenGL (ES) 2.0. \ |
| 3 | It uses only the subset of the OpenGL 2.0 API that is compatible with OpenGL ES 2.0." |
| 4 | HOMEPAGE = "https://launchpad.net/glmark2" |
| 5 | BUGTRACKER = "https://bugs.launchpad.net/glmark2" |
| 6 | |
| 7 | LICENSE = "GPLv3+ & SGIv1" |
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ |
| 9 | file://COPYING.SGI;beginline=5;md5=269cdab4af6748677acce51d9aa13552" |
| 10 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 11 | DEPENDS = "libpng jpeg udev" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 12 | |
Brad Bishop | 996bc45 | 2019-12-02 13:05:15 -0500 | [diff] [blame] | 13 | PV = "20190904+${SRCPV}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 14 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 15 | COMPATIBLE_HOST_rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '.*-linux*', 'null', d)}" |
| 16 | |
Brad Bishop | 996bc45 | 2019-12-02 13:05:15 -0500 | [diff] [blame] | 17 | SRC_URI = "git://github.com/glmark2/glmark2.git;protocol=https \ |
| 18 | file://python3.patch" |
| 19 | SRCREV = "24a1139dcbfd86bd02065316eaa90559e39374e1" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 20 | |
| 21 | S = "${WORKDIR}/git" |
| 22 | |
Brad Bishop | 8410d61 | 2019-11-25 09:40:59 -0500 | [diff] [blame] | 23 | inherit waf pkgconfig features_check |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 24 | |
| 25 | REQUIRED_DISTRO_FEATURES += "opengl" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 26 | |
| 27 | PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11-gl x11-gles2', '', d)} \ |
| 28 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland opengl', 'wayland-gl wayland-gles2', '', d)} \ |
| 29 | drm-gl drm-gles2" |
| 30 | |
| 31 | PACKAGECONFIG[x11-gl] = ",,virtual/libgl virtual/libx11" |
| 32 | PACKAGECONFIG[x11-gles2] = ",,virtual/libgles2 virtual/libx11" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 33 | PACKAGECONFIG[drm-gl] = ",,virtual/libgl libdrm virtual/libgbm" |
| 34 | PACKAGECONFIG[drm-gles2] = ",,virtual/libgles2 libdrm virtual/libgbm" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 35 | PACKAGECONFIG[wayland-gl] = ",,virtual/libgl wayland" |
| 36 | PACKAGECONFIG[wayland-gles2] = ",,virtual/libgles2 wayland" |
| 37 | |
| 38 | python __anonymous() { |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 39 | packageconfig = (d.getVar("PACKAGECONFIG") or "").split() |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 40 | flavors = [] |
| 41 | if "x11-gles2" in packageconfig: |
| 42 | flavors.append("x11-glesv2") |
| 43 | if "x11-gl" in packageconfig: |
| 44 | flavors.append("x11-gl") |
| 45 | if "wayland-gles2" in packageconfig: |
| 46 | flavors.append("wayland-glesv2") |
| 47 | if "wayland-gl" in packageconfig: |
| 48 | flavors.append("wayland-gl") |
| 49 | if "drm-gles2" in packageconfig: |
| 50 | flavors.append("drm-glesv2") |
| 51 | if "drm-gl" in packageconfig: |
| 52 | flavors.append("drm-gl") |
| 53 | if flavors: |
| 54 | d.appendVar("EXTRA_OECONF", " --with-flavors=%s" % ",".join(flavors)) |
| 55 | } |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 56 | |