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 | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 13 | PV = "2017.07+${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 | |
| 17 | SRC_URI = "git://github.com/glmark2/glmark2.git;protocol=https \ |
| 18 | file://build-Check-packages-to-be-used-by-the-enabled-flavo.patch \ |
| 19 | file://Fix-configure-for-sqrt-check.patch \ |
| 20 | file://0001-Fix-clang-warnings.patch \ |
| 21 | " |
| 22 | SRCREV = "ed20c633f1926d1dd78e3e89043c85a81302cbe6" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 23 | |
| 24 | S = "${WORKDIR}/git" |
| 25 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 26 | inherit waf pkgconfig distro_features_check |
| 27 | |
| 28 | REQUIRED_DISTRO_FEATURES += "opengl" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 29 | |
| 30 | PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11-gl x11-gles2', '', d)} \ |
| 31 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland opengl', 'wayland-gl wayland-gles2', '', d)} \ |
| 32 | drm-gl drm-gles2" |
| 33 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 34 | # Enable C++11 features |
| 35 | CXXFLAGS += "-std=c++11" |
| 36 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 37 | PACKAGECONFIG[x11-gl] = ",,virtual/libgl virtual/libx11" |
| 38 | PACKAGECONFIG[x11-gles2] = ",,virtual/libgles2 virtual/libx11" |
| 39 | PACKAGECONFIG[drm-gl] = ",,virtual/libgl libdrm" |
| 40 | PACKAGECONFIG[drm-gles2] = ",,virtual/libgles2 libdrm" |
| 41 | PACKAGECONFIG[wayland-gl] = ",,virtual/libgl wayland" |
| 42 | PACKAGECONFIG[wayland-gles2] = ",,virtual/libgles2 wayland" |
| 43 | |
| 44 | python __anonymous() { |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 45 | packageconfig = (d.getVar("PACKAGECONFIG") or "").split() |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 46 | flavors = [] |
| 47 | if "x11-gles2" in packageconfig: |
| 48 | flavors.append("x11-glesv2") |
| 49 | if "x11-gl" in packageconfig: |
| 50 | flavors.append("x11-gl") |
| 51 | if "wayland-gles2" in packageconfig: |
| 52 | flavors.append("wayland-glesv2") |
| 53 | if "wayland-gl" in packageconfig: |
| 54 | flavors.append("wayland-gl") |
| 55 | if "drm-gles2" in packageconfig: |
| 56 | flavors.append("drm-glesv2") |
| 57 | if "drm-gl" in packageconfig: |
| 58 | flavors.append("drm-gl") |
| 59 | if flavors: |
| 60 | d.appendVar("EXTRA_OECONF", " --with-flavors=%s" % ",".join(flavors)) |
| 61 | } |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 62 | |