vp-build/srcpkgs/libva/template

34 lines
996 B
Bash

# Template file for 'libva'
pkgname=libva
version=1.7.3
revision=1
build_style=gnu-configure
configure_args="--disable-static --enable-x11 --disable-egl --disable-glx"
hostmakedepends="automake pkg-config libtool"
makedepends="libXfixes-devel libXext-devel libdrm-devel wayland-devel"
short_desc="Video Acceleration (VA) API"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://freedesktop.org/wiki/Software/vaapi"
license="MIT"
distfiles="${FREEDESKTOP_SITE}/vaapi/releases/libva/libva-${version}.tar.bz2"
checksum=22bc139498065a7950d966dbdb000cad04905cbd3dc8f3541f80d36c4670b9d9
pre_configure() {
# Create a symbolic link to avoid out of source tree compiling
ln -sf ../drm/va_drm_utils.c va/wayland/va_drm_utils.c
autoreconf -fi
}
post_install() {
vlicense COPYING
}
libva-devel_package() {
depends="wayland-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
}
}