PKGBUILDs/alarm/libcec-imx6/PKGBUILD

61 lines
1.6 KiB
Bash
Raw Normal View History

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
2016-12-05 04:20:51 +00:00
# - IMX patches are a courtesy of OpenELEC:
# https://github.com/OpenELEC/OpenELEC.tv/blob/master/packages/devel/libcec/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
2017-02-01 01:35:44 +00:00
pkgver=4.0.2
pkgrel=1
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')
2016-03-28 23:44:27 +00:00
depends=('udev' 'lockdev' 'p8-platform' '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"
2016-12-05 04:20:51 +00:00
'libcec-00-imx6-support.patch')
2014-02-19 15:09:32 +00:00
2017-02-01 01:35:44 +00:00
sha256sums=('b8b8dd31f3ebdd5472f03ab7d401600ea0d959b1288b9ca24bf457ef60e2ba27'
'2f4ab0c1fb2b004ec4c797339451b9b145270de61c16b4d0dac882871e58390f')
2014-02-19 15:09:32 +00:00
prepare() {
2015-07-25 08:20:27 +00:00
cd "$_pkgname-$_pkgname-$pkgver"
2016-12-05 04:20:51 +00:00
patch -Np1 -i ../libcec-00-imx6-support.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 \
2016-12-10 06:35:17 +00:00
-DHAVE_IMX_API=1 \
2015-07-25 08:20:27 +00:00
-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
}