From 319d8403f87025ff2b0caf644f1f53be2d0a44bc Mon Sep 17 00:00:00 2001 From: Kiril Zyapkov Date: Sat, 13 Jul 2013 20:05:38 +0300 Subject: [PATCH] add extra/gst-omx-rpi --- alarm/gst-omx-rpi/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 alarm/gst-omx-rpi/PKGBUILD diff --git a/alarm/gst-omx-rpi/PKGBUILD b/alarm/gst-omx-rpi/PKGBUILD new file mode 100644 index 000000000..d1a6e3c27 --- /dev/null +++ b/alarm/gst-omx-rpi/PKGBUILD @@ -0,0 +1,35 @@ +# Contributor: Kiril Zyapkov + +buildarch=16 + +_pkgname=gst-omx +pkgname=${_pkgname}-rpi +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Gstreamer OpenMAX IL wrapper Plugin for Raspberry Pi" +arch=('armv6h') +license=('LGPL') +url="http://gstreamer.freedesktop.org/" +depends=('gst-plugins-base-libs') +makedepends=('raspberrypi-firmware-tools') +options=(!libtool) +source=(${url}/src/$_pkgname/$_pkgname-$pkgver.tar.xz) +md5sums=('bb34b5742223267298bcffc209104a92') + +LDFLAGS='-L/opt/vc/lib' +CPPFLAGS='-I/opt/vc/include -I/opt/vc/include/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux' + +build() { + cd $srcdir/$_pkgname-$pkgver + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --with-package-name="GStreamer OpenMAX IL wrapper Plugin (ArchlinuxARM/RPi)" \ + --with-package-origin="http://www.archlinuxarm.org/" \ + --with-omx-target=rpi + + make +} + +package() { + cd $_pkgname-$pkgver + make DESTDIR="${pkgdir}" install +}