void-packages/srcpkgs/libvdpau-va-gl/template

23 lines
968 B
Bash

# Template file for 'libvdpau-va-gl'
pkgname=libvdpau-va-gl
version=0.4.2
revision=2
build_style=cmake
hostmakedepends="pkg-config"
makedepends="MesaLib-devel libva-devel libvdpau-devel"
short_desc="VDPAU driver with VA-API/OpenGL backend"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="MIT"
homepage="https://github.com/i-rinat/libvdpau-va-gl"
changelog="https://raw.githubusercontent.com/i-rinat/libvdpau-va-gl/master/ChangeLog"
distfiles="${homepage}/releases/download/v${version}/libvdpau-va-gl-${version}.tar.gz"
checksum=7d9121540658eb0244859e63da171ca3869e784afbeaf202f44471275c784af4
if [ "$CROSS_BUILD" ]; then
# Compile tooling executed on the host with host CXX, otherwise cross fails
pre_build() {
${CXX_host} -O2 -pipe -c -o build/glsl/CMakeFiles/shader-bundle-tool.dir/shader-bundle-tool.cc.o glsl/shader-bundle-tool.cc
${CXX_host} -o build/glsl/shader-bundle-tool build/glsl/CMakeFiles/shader-bundle-tool.dir/shader-bundle-tool.cc.o
}
fi