void-packages/srcpkgs/glmark2/template
2022-01-07 23:58:54 +01:00

26 lines
1 KiB
Bash

# Template file for 'glmark2'
pkgname=glmark2
version=2021.12
revision=1
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 <chocimier@tlen.pl>"
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=9f111284b2ef1d3fce91928e249e6ca00796a036831b063a549a0f3b03557a95
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
}