blob: 2e727a01c8e53fa405dc7d82097cceb08823e5c4 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "OpenGL (ES) 2.0 benchmark"
2DESCRIPTION = "glmark2 is a benchmark for OpenGL (ES) 2.0. \
3It uses only the subset of the OpenGL 2.0 API that is compatible with OpenGL ES 2.0."
4HOMEPAGE = "https://launchpad.net/glmark2"
5BUGTRACKER = "https://bugs.launchpad.net/glmark2"
6
7LICENSE = "GPLv3+ & SGIv1"
8LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
9 file://COPYING.SGI;beginline=5;md5=269cdab4af6748677acce51d9aa13552"
10
Brad Bishopd7bf8c12018-02-25 22:55:05 -050011DEPENDS = "libpng jpeg udev"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050012
Andrew Geissler82c905d2020-04-13 13:39:40 -050013PV = "20191226+${SRCPV}"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050014
Brad Bishopd7bf8c12018-02-25 22:55:05 -050015COMPATIBLE_HOST_rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '.*-linux*', 'null', d)}"
16
Andrew Geisslerbbbd5f42020-10-30 15:42:48 -050017SRC_URI = "git://github.com/glmark2/glmark2.git;protocol=https"
Andrew Geissler82c905d2020-04-13 13:39:40 -050018SRCREV = "72dabc5d72b49c6d45badeb8a941ba4d829b0bd6"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050019
20S = "${WORKDIR}/git"
21
Brad Bishop8410d612019-11-25 09:40:59 -050022inherit waf pkgconfig features_check
Brad Bishopd7bf8c12018-02-25 22:55:05 -050023
24REQUIRED_DISTRO_FEATURES += "opengl"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050025
Andrew Geissler748a4832020-07-24 16:24:21 -050026PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11-gles2', '', d)} \
27 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland opengl', 'wayland-gles2', '', d)} \
28 drm-gles2"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050029
30PACKAGECONFIG[x11-gl] = ",,virtual/libgl virtual/libx11"
31PACKAGECONFIG[x11-gles2] = ",,virtual/libgles2 virtual/libx11"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080032PACKAGECONFIG[drm-gl] = ",,virtual/libgl libdrm virtual/libgbm"
33PACKAGECONFIG[drm-gles2] = ",,virtual/libgles2 libdrm virtual/libgbm"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050034PACKAGECONFIG[wayland-gl] = ",,virtual/libgl wayland"
35PACKAGECONFIG[wayland-gles2] = ",,virtual/libgles2 wayland"
36
37python __anonymous() {
Brad Bishop6e60e8b2018-02-01 10:27:11 -050038 packageconfig = (d.getVar("PACKAGECONFIG") or "").split()
Patrick Williamsb48b7b42016-08-17 15:04:38 -050039 flavors = []
40 if "x11-gles2" in packageconfig:
41 flavors.append("x11-glesv2")
42 if "x11-gl" in packageconfig:
43 flavors.append("x11-gl")
44 if "wayland-gles2" in packageconfig:
45 flavors.append("wayland-glesv2")
46 if "wayland-gl" in packageconfig:
47 flavors.append("wayland-gl")
48 if "drm-gles2" in packageconfig:
49 flavors.append("drm-glesv2")
50 if "drm-gl" in packageconfig:
51 flavors.append("drm-gl")
52 if flavors:
53 d.appendVar("EXTRA_OECONF", " --with-flavors=%s" % ",".join(flavors))
54}
Patrick Williamsddad1a12017-02-23 20:36:32 -060055