void-packages/srcpkgs/libva-intel-driver/template
2018-10-19 13:11:41 -03:00

29 lines
1 KiB
Bash

# Template file for 'libva-intel-driver'
pkgname=libva-intel-driver
version=2.2.0
revision=1
wrksrc="intel-vaapi-driver-${version}"
build_style=meson
configure_args="-Dwith_wayland=yes -Dwith_x11=yes"
hostmakedepends="pkg-config"
makedepends="libX11-devel libva-glx-devel libdrm-devel wayland-devel MesaLib-devel"
short_desc="Video Acceleration (VA) API - Intel Graphics backend"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT"
homepage="https://01.org/linuxmedia"
changelog="https://raw.githubusercontent.com/intel/intel-vaapi-driver/master/NEWS"
distfiles="https://github.com/intel/intel-vaapi-driver/archive/${version}.tar.gz"
checksum=13eb518bd168106a64d8e1c0f0a72e9b9937e6fd9a4c713a10f51e52508ea9b2
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
pre_configure() {
# Only relevant if intel-gpu-tools is installed,
# since then the shaders will be recompiled
sed -i '1s/python$/&2/' src/shaders/gpp.py
# Fix undefined variable in src/meson.build
sed -i 's/2.2.0/2.2.0.0/' meson.build
}
post_install() {
vlicense COPYING
}