void-packages/srcpkgs/gstreamer-vaapi/template
2013-09-01 18:26:10 +02:00

75 lines
2 KiB
Text

# Template file for 'gstreamer-vaapi'
pkgname=gstreamer-vaapi
version=0.5.6
revision=1
hostmakedepends="pkg-config"
makedepends="libXrandr-devel libva-devel>=1:1.1.0 MesaLib-devel
gst-plugins-bad-devel gst-plugins-bad1-devel>=1:1.0.10_2"
short_desc="VA-API plugins for GStreamer (0.10.x)"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3"
homepage="http://www.freedesktop.org/software/vaapi/releases/gstreamer-vaapi/"
distfiles="http://www.freedesktop.org/software/vaapi/releases/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=3bef196f8e05d775f4e2b5b7111c4ba7393093bd1bc3297e781224f3bf51dea1
long_desc="
${pkgname} is a collection of GStreamer plugins and helper libraries that
allow hardware accelerated video decoding through VA-API."
do_configure() {
mkdir build-0.10 build-1.0
cd ${wrksrc}/build-0.10
../configure ${configure_args} --disable-static --with-gstreamer-api=0.10
cd ${wrksrc}/build-1.0
../configure ${configure_args} --disable-static --with-gstreamer-api=1.0
}
do_build() {
cd ${wrksrc}/build-0.10
make ${makejobs}
cd ${wrksrc}/build-1.0
make ${makejobs}
}
do_install() {
cd ${wrksrc}/build-0.10
make DESTDIR=${DESTDIR} install
cd ${wrksrc}/build-1.0
make DESTDIR=${DESTDIR} install
}
gstreamer1-vaapi-devel_package() {
depends="gstreamer1-vaapi-${version}_${revision}"
short_desc="VA-API plugins for GStreamer (1.0) - development files"
pkg_install() {
vmove usr/include/gstreamer-1.0
vmove "usr/lib/pkgconfig/*-1.0*"
}
}
gstreamer1-vaapi_package() {
short_desc="VA-API plugins for GStreamer (1.0)"
depends="gst-plugins-base1>=1:1.0.10 gst-plugins-bad1>=1:1.0.10"
pkg_install() {
vmove usr/lib/gstreamer-1.0
vmove "usr/lib/*-1.0*"
}
}
gstreamer-vaapi-devel_package() {
depends="${sourcepkg}-${version}_${revision}"
short_desc="VA-API plugins for GStreamer (0.10.x) -- development files"
pkg_install() {
vmove "usr/include/*-0.10*"
vmove "usr/lib/pkgconfig/*-0.10*"
}
}
gstreamer-vaapi_package() {
pkg_install() {
vmove all
}
}