summaryrefslogtreecommitdiff
path: root/extra/gstreamer-vaapi/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gstreamer-vaapi/PKGBUILD')
-rw-r--r--extra/gstreamer-vaapi/PKGBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/extra/gstreamer-vaapi/PKGBUILD b/extra/gstreamer-vaapi/PKGBUILD
new file mode 100644
index 000000000..6cd486b41
--- /dev/null
+++ b/extra/gstreamer-vaapi/PKGBUILD
@@ -0,0 +1,54 @@
+# $Id: PKGBUILD 183264 2013-04-19 23:02:28Z heftig $
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
+
+pkgbase=gstreamer-vaapi
+pkgname=(gst-vaapi gstreamer0.10-vaapi)
+pkgver=0.5.3
+pkgrel=1
+pkgdesc="GStreamer Multimedia Framework VA Plugins"
+arch=(i686 x86_64)
+license=(LGPL)
+url="http://www.freedesktop.org/software/vaapi/releases/gstreamer-vaapi/"
+makedepends=(gst-plugins-base gst-plugins-bad gstreamer0.10-base-plugins gstreamer0.10-bad-plugins libva)
+options=(!libtool !emptydirs)
+
+source=($url/$pkgbase-${pkgver}.tar.bz2)
+sha1sums=('f99f657c8c19dd008a8066d8b2237aff4a05810d')
+
+prepare() {
+ cd $pkgbase-$pkgver
+ mkdir build-1.0 build-0.10
+}
+
+
+build() {
+ cd $pkgbase-$pkgver/build-1.0
+ ../configure --prefix=/usr --disable-static --with-gstreamer-api=1.0
+ make
+
+ cd ../build-0.10
+ ../configure --prefix=/usr --disable-static --with-gstreamer-api=0.10
+ make
+}
+
+check() {
+ cd $pkgbase-$pkgver/build-1.0
+ make check
+
+ cd ../build-0.10
+ make check
+}
+
+package_gst-vaapi() {
+ depends=(gst-plugins-base gst-plugins-bad libva)
+
+ cd $pkgbase-$pkgver/build-1.0
+ make DESTDIR="$pkgdir" install
+}
+
+package_gstreamer0.10-vaapi() {
+ depends=(gstreamer0.10-base-plugins gstreamer0.10-bad-plugins libva)
+
+ cd $pkgbase-$pkgver/build-0.10
+ make DESTDIR="$pkgdir" install
+}