void-packages/srcpkgs/gstreamer-vaapi/template

81 lines
2.3 KiB
Text
Raw Normal View History

2012-08-16 09:13:47 +00:00
# Template file for 'gstreamer-vaapi'
pkgname=gstreamer-vaapi
2014-01-30 00:08:52 +00:00
version=0.5.8
revision=1
hostmakedepends="pkg-config"
2013-08-30 09:39:06 +00:00
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)"
2012-08-16 09:13:47 +00:00
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3"
homepage="http://www.freedesktop.org/software/vaapi/releases/gstreamer-vaapi/"
2012-10-09 17:53:25 +00:00
distfiles="http://www.freedesktop.org/software/vaapi/releases/${pkgname}/${pkgname}-${version}.tar.bz2"
2014-01-30 00:08:52 +00:00
checksum=24fee8a1ca4cb99ed7739d876b17a4085e81b28550350867dee5105300d343c6
2013-11-27 06:11:00 +00:00
only_for_archs="i686 x86_64"
2014-01-30 00:17:24 +00:00
pre_configure() {
url1=https://gitorious.org/vaapi/gstreamer-videoutils/raw/f56f0ca70eaa39dc8f66f61e991094b385ed71ff:gst-libs/gst/video/gstvideoencoder.c
url2=https://gitorious.org/vaapi/gstreamer-videoutils/raw/f56f0ca70eaa39dc8f66f61e991094b385ed71ff:gst-libs/gst/video/gstvideoencoder.h
for f in ${url1} ${url2}; do
$XBPS_FETCH_CMD ${f}
cp $(basename ${f}) ext/videoutils/gst-libs/gst/video/
done
}
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}"
2013-11-27 06:18:02 +00:00
short_desc="VA-API plugins for GStreamer (1.x) - development files"
pkg_install() {
2013-11-27 06:18:02 +00:00
vmove usr/include/gstreamer-1.2
vmove "usr/lib/pkgconfig/*-1.2*"
vmove "usr/lib/*-1.2*.so"
}
}
gstreamer1-vaapi_package() {
2013-11-27 06:18:02 +00:00
short_desc="VA-API plugins for GStreamer (1.x)"
depends="gst-plugins-base1>=1:1.2 gst-plugins-bad1>=1:1.2"
pkg_install() {
vmove usr/lib/gstreamer-1.0
2013-11-27 06:18:02 +00:00
vmove "usr/lib/*-1.2*.so.*"
}
}
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*"
2013-11-27 06:18:02 +00:00
vmove "usr/lib/*-0.10*.so"
}
}