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." |
Andrew Geissler | 8fc454f | 2020-12-11 16:27:59 -0600 | [diff] [blame] | 4 | HOMEPAGE = "https://github.com/glmark2/glmark2" |
| 5 | BUGTRACKER = "https://github.com/glmark2/glmark2/issues" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 6 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 7 | LICENSE = "GPL-3.0-or-later & SGI-1" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 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 | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 12 | DEPENDS:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland-native wayland-protocols', '', d)}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 13 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 14 | PV = "2021.12" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 15 | |
Andrew Geissler | 8fc454f | 2020-12-11 16:27:59 -0600 | [diff] [blame] | 16 | SRC_URI = " \ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 17 | git://github.com/glmark2/glmark2.git;protocol=https;branch=master \ |
Andrew Geissler | 8fc454f | 2020-12-11 16:27:59 -0600 | [diff] [blame] | 18 | file://0001-fix-dispmanx-build.patch \ |
| 19 | file://0002-run-dispmanx-fullscreen.patch \ |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 20 | file://0001-libmatrix-Include-missing-utility-header.patch \ |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 21 | " |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 22 | SRCREV = "0858b450cd88c84a15b99dda9698d44e7f7e8c70" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 23 | |
| 24 | S = "${WORKDIR}/git" |
| 25 | |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 26 | inherit meson pkgconfig features_check |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 27 | |
Andrew Geissler | 8fc454f | 2020-12-11 16:27:59 -0600 | [diff] [blame] | 28 | ANY_OF_DISTRO_FEATURES = "opengl dispmanx" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 29 | |
Andrew Geissler | 748a483 | 2020-07-24 16:24:21 -0500 | [diff] [blame] | 30 | PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11-gles2', '', d)} \ |
| 31 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland opengl', 'wayland-gles2', '', d)} \ |
Andrew Geissler | 8fc454f | 2020-12-11 16:27:59 -0600 | [diff] [blame] | 32 | ${@bb.utils.contains('DISTRO_FEATURES', 'dispmanx', 'dispmanx', '', d)} \ |
| 33 | drm-gles2 \ |
| 34 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 35 | |
| 36 | PACKAGECONFIG[x11-gl] = ",,virtual/libgl virtual/libx11" |
| 37 | PACKAGECONFIG[x11-gles2] = ",,virtual/libgles2 virtual/libx11" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 38 | PACKAGECONFIG[drm-gl] = ",,virtual/libgl libdrm virtual/libgbm" |
| 39 | PACKAGECONFIG[drm-gles2] = ",,virtual/libgles2 libdrm virtual/libgbm" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 40 | PACKAGECONFIG[wayland-gl] = ",,virtual/libgl wayland" |
| 41 | PACKAGECONFIG[wayland-gles2] = ",,virtual/libgles2 wayland" |
Andrew Geissler | 8fc454f | 2020-12-11 16:27:59 -0600 | [diff] [blame] | 42 | PACKAGECONFIG[dispmanx] = ",,virtual/libgles2 virtual/libx11" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 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") |
Andrew Geissler | 8fc454f | 2020-12-11 16:27:59 -0600 | [diff] [blame] | 59 | if "dispmanx" in packageconfig: |
| 60 | flavors = ["dispmanx-glesv2"] |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 61 | if flavors: |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 62 | d.appendVar("EXTRA_OEMESON", " -Dflavors=%s" % ",".join(flavors)) |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 63 | } |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 64 | |