2015-07-25 08:20:27 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
|
|
|
|
# Contributor: Philippe Cherel <philippe.cherel@mayenne.org>
|
|
|
|
# vim: ft=sh:
|
2014-02-19 15:09:32 +00:00
|
|
|
|
2015-07-25 08:20:27 +00:00
|
|
|
# ALARM: Oleg Rakhmanov <oleg@archlinuxarm.org>
|
|
|
|
# - IMX support, no Exynos
|
|
|
|
# - IMX patches are a courtesy of openbricks:
|
|
|
|
# https://github.com/OpenBricks/openbricks/tree/master/packages/libs/libcec3/patches
|
2015-09-18 18:41:19 +00:00
|
|
|
buildarch=4
|
2014-02-19 15:09:32 +00:00
|
|
|
|
|
|
|
pkgname=libcec-imx6
|
2015-07-25 08:20:27 +00:00
|
|
|
_pkgname=libcec
|
|
|
|
pkgver=3.0.1
|
2015-09-18 18:16:59 +00:00
|
|
|
pkgrel=2
|
2015-07-25 08:20:27 +00:00
|
|
|
pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter (IMX6)"
|
2014-02-19 15:09:32 +00:00
|
|
|
arch=('armv7h')
|
2015-07-25 08:20:27 +00:00
|
|
|
url="http://libcec.pulse-eight.com/"
|
2014-02-19 15:09:32 +00:00
|
|
|
license=('GPL')
|
2015-07-25 08:20:27 +00:00
|
|
|
makedepends=('cmake')
|
|
|
|
depends=('udev' 'lockdev' 'libplatform' 'libxrandr')
|
2014-02-19 15:09:32 +00:00
|
|
|
provides=('libcec')
|
2015-07-25 08:20:27 +00:00
|
|
|
conflicts=('libcec')
|
|
|
|
source=("$_pkgname-$pkgver.tar.gz::https://github.com/Pulse-Eight/$_pkgname/archive/$_pkgname-$pkgver.tar.gz"
|
|
|
|
'0001-add-imx-support-1.patch'
|
|
|
|
'0002-add-imx-support-2.patch')
|
2014-02-19 15:09:32 +00:00
|
|
|
|
2015-07-25 08:23:53 +00:00
|
|
|
sha256sums=('7e3670c8949a1964d6e5481f56dfff838857da10bdc60b506f6e9b7f117e253e'
|
|
|
|
'1105f457f49c4caa0791de11a321dde11df086c06017c6a4a23c8a17502f01ef'
|
|
|
|
'5faf57652d8c0c83ca37fecc961c50b268f0f2b4092da31c56cc6874040593d9')
|
2014-02-19 15:09:32 +00:00
|
|
|
|
|
|
|
prepare() {
|
2015-07-25 08:20:27 +00:00
|
|
|
cd "$_pkgname-$_pkgname-$pkgver"
|
|
|
|
|
|
|
|
patch -Np1 -i ../0001-add-imx-support-1.patch
|
|
|
|
patch -Np1 -i ../0002-add-imx-support-2.patch
|
2014-02-19 15:09:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2015-07-25 08:20:27 +00:00
|
|
|
cd "$_pkgname-$_pkgname-$pkgver"
|
|
|
|
|
|
|
|
unset LDFLAGS
|
|
|
|
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake .. \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DBUILD_SHARED_LIBS=1 \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR_NOARCH=/usr/lib \
|
|
|
|
-DHAVE_EXYNOS_API=0 \
|
|
|
|
-DHAVE_IMX6_API=1 \
|
|
|
|
-DRPI_INCLUDE_DIR=/opt/vc/include \
|
|
|
|
-DRPI_LIB_DIR=/opt/vc/lib
|
|
|
|
make
|
2014-02-19 15:09:32 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2015-07-25 08:20:27 +00:00
|
|
|
cd "$_pkgname-$_pkgname-$pkgver/build"
|
|
|
|
make DESTDIR="$pkgdir" install
|
2014-02-19 15:09:32 +00:00
|
|
|
}
|