PKGBUILDs/alarm/gst-imx/PKGBUILD

45 lines
1.2 KiB
Bash
Raw Normal View History

2014-04-29 03:04:48 +00:00
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=4
pkgname=gst-imx
2017-11-02 00:27:21 +00:00
pkgver=0.13.0.r0.g048d596
2015-02-11 18:27:16 +00:00
pkgrel=1
2014-04-29 03:04:48 +00:00
pkgdesc="GStreamer plugins for i.MX platforms"
arch=('armv7h')
license=('LGPL')
url="https://github.com/Freescale/gstreamer-imx"
2017-11-02 00:27:21 +00:00
depends=('gst-plugins-base-libs' 'gst-plugins-bad' 'libimxvpuapi' 'imx-gpu-viv-fb' 'imx-gpu-viv-g2d' 'pango' 'cairo')
2016-04-06 00:11:47 +00:00
makedepends=('python2' 'linux-imx6-headers' 'git')
2015-02-11 18:27:16 +00:00
source=('git+https://github.com/Freescale/gstreamer-imx.git')
md5sums=('SKIP')
2014-04-29 03:04:48 +00:00
LDFLAGS+=' -L/opt/fsl/lib'
CPPFLAGS+=' -I/opt/fsl/include'
2015-02-11 18:27:16 +00:00
pkgver() {
cd gstreamer-imx
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
)
}
2014-04-29 03:04:48 +00:00
build() {
2015-02-11 18:27:16 +00:00
cd gstreamer-imx
2014-04-29 03:04:48 +00:00
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" \
2014-09-22 13:56:07 +00:00
--egl-platform=fb \
2016-04-06 00:11:47 +00:00
--kernel-headers=/usr/src/linux-$(pacman -Q linux-imx6-headers | grep -Eo "[^\ ]+$")-ARCH/include
2014-04-29 03:04:48 +00:00
python2 waf build $MAKEFLAGS
}
package() {
2015-02-11 18:27:16 +00:00
cd gstreamer-imx
2014-04-29 03:04:48 +00:00
python2 waf install --destdir="$pkgdir"
}