2015-02-10 04:51:11 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
|
|
|
|
# Contributor: Philippe Cherel <philippe.cherel@mayenne.org>
|
2015-07-24 15:02:32 +00:00
|
|
|
# vim: ft=sh:
|
2015-02-10 04:51:11 +00:00
|
|
|
|
2021-02-20 14:21:48 +00:00
|
|
|
# For this to work with kodi using kms which is the expected driver, we can no
|
|
|
|
# longer build with RPI support.
|
|
|
|
# vc4-kms-v3d exposes CEC through the kernel CEC API (/dev/cec0 and /dev/cec1)
|
|
|
|
# vc4-fkms-v3d uses the Pi specific VCHIQ service
|
|
|
|
# see https://github.com/raspberrypi/linux/issues/4103
|
2015-02-10 04:51:11 +00:00
|
|
|
|
|
|
|
pkgname=libcec-rpi
|
|
|
|
_pkgname=libcec
|
2020-10-31 14:21:52 +00:00
|
|
|
pkgver=6.0.2
|
2021-02-20 14:21:48 +00:00
|
|
|
pkgrel=3
|
|
|
|
pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter (Raspberry Pi using kms)"
|
2021-01-26 08:32:06 +00:00
|
|
|
arch=('armv6h' 'armv7h' 'aarch64')
|
2015-02-10 04:51:11 +00:00
|
|
|
url="http://libcec.pulse-eight.com/"
|
|
|
|
license=('GPL')
|
2015-07-24 15:02:32 +00:00
|
|
|
makedepends=('cmake')
|
2016-03-28 23:45:26 +00:00
|
|
|
depends=('udev' 'lockdev' 'p8-platform' 'libxrandr' 'raspberrypi-firmware')
|
2015-02-10 04:51:11 +00:00
|
|
|
provides=('libcec')
|
2015-02-10 13:11:40 +00:00
|
|
|
conflicts=('libcec')
|
2016-02-03 00:42:38 +00:00
|
|
|
source=("$_pkgname-$pkgver.tar.gz::https://github.com/Pulse-Eight/$_pkgname/archive/$_pkgname-$pkgver.tar.gz")
|
2020-10-31 14:21:52 +00:00
|
|
|
sha256sums=('090696d7a4fb772d7acebbb06f91ab92e025531c7c91824046b9e4e71ecb3377')
|
2015-02-10 04:51:11 +00:00
|
|
|
|
|
|
|
build() {
|
2015-07-24 15:02:32 +00:00
|
|
|
cd "$_pkgname-$_pkgname-$pkgver"
|
2015-02-10 04:51:11 +00:00
|
|
|
|
2015-07-24 15:02:32 +00:00
|
|
|
mkdir build
|
|
|
|
cd build
|
2021-02-20 14:21:48 +00:00
|
|
|
_args=(
|
|
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
-DBUILD_SHARED_LIBS=1
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib
|
|
|
|
-DCMAKE_INSTALL_LIBDIR_NOARCH=/usr/lib
|
|
|
|
-DHAVE_LINUX_API=1
|
|
|
|
)
|
|
|
|
cmake "${_args[@]}" ..
|
2015-07-24 15:02:32 +00:00
|
|
|
make
|
2015-02-10 04:51:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2015-07-24 15:22:38 +00:00
|
|
|
cd "$_pkgname-$_pkgname-$pkgver/build"
|
2015-07-24 15:02:32 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
2015-02-10 04:51:11 +00:00
|
|
|
}
|