diff options
Diffstat (limited to 'meta-oe/recipes-benchmark/glmark2/glmark2_git.bb')
| -rw-r--r-- | meta-oe/recipes-benchmark/glmark2/glmark2_git.bb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-oe/recipes-benchmark/glmark2/glmark2_git.bb b/meta-oe/recipes-benchmark/glmark2/glmark2_git.bb new file mode 100644 index 0000000000..57acad5754 --- /dev/null +++ b/meta-oe/recipes-benchmark/glmark2/glmark2_git.bb | |||
| @@ -0,0 +1,39 @@ | |||
| 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 | |||
| 11 | DEPENDS = "libpng12 jpeg virtual/libx11" | ||
| 12 | |||
| 13 | # depends on virtual/libx11 | ||
| 14 | REQUIRED_DISTRO_FEATURES = "x11" | ||
| 15 | |||
| 16 | PV = "2014.03+${SRCPV}" | ||
| 17 | |||
| 18 | SRC_URI = "git://github.com/glmark2/glmark2.git;protocol=https" | ||
| 19 | SRCREV = "fa71af2dfab711fac87b9504b6fc9862f44bf72a" | ||
| 20 | |||
| 21 | S = "${WORKDIR}/git" | ||
| 22 | |||
| 23 | inherit waf pkgconfig distro_features_check | ||
| 24 | |||
| 25 | PACKAGECONFIG ?= "gl gles2" | ||
| 26 | |||
| 27 | PACKAGECONFIG[gl] = ",,virtual/libgl" | ||
| 28 | PACKAGECONFIG[gles2] = ",,virtual/libgles2" | ||
| 29 | |||
| 30 | python __anonymous() { | ||
| 31 | packageconfig = (d.getVar("PACKAGECONFIG", True) or "").split() | ||
| 32 | flavors = [] | ||
| 33 | if "gles2" in packageconfig: | ||
| 34 | flavors.append("x11-glesv2") | ||
| 35 | if "gl" in packageconfig: | ||
| 36 | flavors.append("x11-gl") | ||
| 37 | if flavors: | ||
| 38 | d.appendVar("EXTRA_OECONF", " --with-flavors=%s" % ",".join(flavors)) | ||
| 39 | } | ||
