diff --git a/srcpkgs/libvdpau-va-gl/template b/srcpkgs/libvdpau-va-gl/template index 6a79e6a2c1d..47404331a78 100644 --- a/srcpkgs/libvdpau-va-gl/template +++ b/srcpkgs/libvdpau-va-gl/template @@ -1,7 +1,7 @@ # Template file for 'libvdpau-va-gl' pkgname=libvdpau-va-gl version=0.4.2 -revision=1 +revision=2 build_style=cmake hostmakedepends="pkg-config" makedepends="MesaLib-devel libva-devel libvdpau-devel" @@ -9,5 +9,14 @@ short_desc="VDPAU driver with VA-API/OpenGL backend" maintainer="Juan RP " 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