PKGBUILDs/alarm/gst-imx/PKGBUILD
2014-11-03 02:38:51 +00:00

38 lines
1 KiB
Bash

# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=4
pkgname=gst-imx
_commit=23cc8c93db4454d962ed610000b39ce20c3bcc50
pkgver=0.9.9
pkgrel=6
pkgdesc="GStreamer plugins for i.MX platforms"
arch=('armv7h')
license=('LGPL')
url="https://github.com/Freescale/gstreamer-imx"
depends=('gst-plugins-base-libs' 'libfslvpuwrap' 'gpu-viv-bin-mx6q-fb')
makedepends=('python2' 'linux-headers-imx6-fsl')
source=("https://github.com/Freescale/gstreamer-imx/archive/${_commit}.tar.gz")
md5sums=('7b1a569d900fd687c1c2aaf5b7e2adb1')
LDFLAGS+=' -L/opt/fsl/lib'
CPPFLAGS+=' -I/opt/fsl/include'
build() {
cd gstreamer-imx-${_commit}
export PKG_CONFIG_PATH='/opt/fsl/lib/pkgconfig'
python2 waf configure --prefix=/usr \
--with-package-name="GStreamer plugins for i.MX platforms" \
--with-package-origin="https://github.com/archlinuxarm/PKGBUILDs/tree/master/alarm/gst-imx" \
--egl-platform=fb \
--kernel-headers=/usr/include
python2 waf build $MAKEFLAGS
}
package() {
cd gstreamer-imx-${_commit}
python2 waf install --destdir="$pkgdir"
}