void-packages/srcpkgs/glmark2/template

27 lines
1.0 KiB
Bash

# Template file for 'glmark2'
pkgname=glmark2
version=2023.01
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=5479ce8f90fabcfee3b3e8d929f2a68e9669ac223bb4df723963534b47d32dc3
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
}