2014-02-19 15:09:32 +00:00
|
|
|
# Maintainer: CruX <crux@project-insanity.org>
|
|
|
|
# Contributor: pepedog at archlinuxarm dot com
|
2016-03-25 08:41:42 +00:00
|
|
|
# Contributor: Oleg Rakhmanov <oleg [at] archlinuxarm [dot] org>
|
2014-02-19 15:09:32 +00:00
|
|
|
|
|
|
|
buildarch=4
|
2016-03-26 05:09:26 +00:00
|
|
|
epoch=1
|
2014-02-19 15:09:32 +00:00
|
|
|
pkgname=libfslvpuwrap
|
2016-03-25 08:41:42 +00:00
|
|
|
pkgver=1.0.62
|
2016-03-26 05:09:26 +00:00
|
|
|
pkgrel=2
|
2014-02-19 15:09:32 +00:00
|
|
|
pkgdesc="Wrapper library for the freescale proprietary VPU extensions"
|
|
|
|
url="https://community.freescale.com/docs/DOC-95560"
|
|
|
|
arch=('armv7h')
|
|
|
|
license=('proprietary')
|
2016-03-25 08:41:42 +00:00
|
|
|
depends=("imx-vpu")
|
|
|
|
source=("http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/${pkgname}-${pkgver}.bin")
|
|
|
|
md5sums=('6497758e27f72992a86ac918ce12db56')
|
2014-02-19 15:09:32 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}"
|
2015-04-24 11:28:32 +00:00
|
|
|
#extract the sources
|
2016-03-25 08:41:42 +00:00
|
|
|
sh ${pkgname}-${pkgver}.bin --force --auto-accept
|
2014-02-19 15:09:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2016-03-25 08:41:42 +00:00
|
|
|
cd "${pkgname}-${pkgver}"
|
2014-02-19 15:09:32 +00:00
|
|
|
export CFLAGS="$CFLAGS -O2 -I/opt/fsl/include"
|
|
|
|
export CPPFLAGS="$CPPFLAGS -O2 -I/opt/fsl/include"
|
|
|
|
export LDFLAGS="$LDFLAGS -L/opt/fsl/lib"
|
|
|
|
./autogen.sh --prefix=/opt/fsl
|
|
|
|
make all
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2016-03-25 08:41:42 +00:00
|
|
|
cd "${pkgname}-${pkgver}"
|
2014-02-19 15:09:32 +00:00
|
|
|
make DESTDIR=${pkgdir} install
|
2015-04-24 11:28:32 +00:00
|
|
|
|
2016-03-25 08:41:42 +00:00
|
|
|
install -D -m0644 "${srcdir}/${pkgname}-${pkgver}/COPYING" "$pkgdir/opt/fsl/licenses/LICENSE.${pkgname}"
|
2014-02-19 15:09:32 +00:00
|
|
|
mkdir -p "${pkgdir}/etc/ld.so.conf.d"
|
|
|
|
echo "/opt/fsl/lib" > "${pkgdir}/etc/ld.so.conf.d/$pkgname.conf"
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|