# Template file for 'glmark2' pkgname=glmark2 version=2023.01 revision=2 build_style=meson configure_args="-Dflavors=$(vopt_if wayland 'wayland-gl,wayland-glesv2,')$(vopt_if x11 'x11-gl,x11-glesv2,')drm-gl,drm-glesv2" hostmakedepends="pkg-config $(vopt_if wayland wayland-devel)" makedepends="libjpeg-turbo-devel libpng-devel MesaLib-devel $(vopt_if wayland 'wayland-devel wayland-protocols') $(vopt_if x11 libX11-devel)" short_desc="OpenGL 2.0 and ES 2.0 benchmark" maintainer="Piotr Wójcik " license="GPL-3.0-or-later" homepage="https://github.com/glmark2/glmark2" changelog="https://raw.githubusercontent.com/glmark2/glmark2/master/NEWS" distfiles="https://github.com/glmark2/glmark2/archive/${version}.tar.gz" checksum=8fece3fc323b643644a525be163dc4931a4189971eda1de8ad4c1712c5db3d67 build_options="wayland x11" build_options_default="wayland x11" pre_build() { # this file is racey, so pre-generate it ahead of time if [ "$build_option_wayland" ]; then ninja -C build src/xdg-shell-client-protocol.h fi }