alarm/libcec-rpi to 6.0.2-3

Kodi Matrix highly recommends using vc4-kms-v3d so we can no longer
build libcec-rpi with RPi support due to the following:
* vc4-kms-v3d exposes CEC through the kernel CEC API (/dev/cec0 and /dev/cec1)
* vc4-fkms-v3d uses the Pi specific VCHIQ service

Reference: https://github.com/raspberrypi/linux/issues/4103
This commit is contained in:
graysky 2021-02-20 09:21:48 -05:00
parent 384468ee07
commit 34489de78c

View file

@ -3,16 +3,19 @@
# Contributor: Philippe Cherel <philippe.cherel@mayenne.org> # Contributor: Philippe Cherel <philippe.cherel@mayenne.org>
# vim: ft=sh: # vim: ft=sh:
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org> # For this to work with kodi using kms which is the expected driver, we can no
# - RPi support, no Exynos # 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
buildarch=28 buildarch=28
pkgname=libcec-rpi pkgname=libcec-rpi
_pkgname=libcec _pkgname=libcec
pkgver=6.0.2 pkgver=6.0.2
pkgrel=2 pkgrel=3
pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter (Raspberry Pi)" pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter (Raspberry Pi using kms)"
arch=('armv6h' 'armv7h' 'aarch64') arch=('armv6h' 'armv7h' 'aarch64')
url="http://libcec.pulse-eight.com/" url="http://libcec.pulse-eight.com/"
license=('GPL') license=('GPL')
@ -26,22 +29,18 @@ sha256sums=('090696d7a4fb772d7acebbb06f91ab92e025531c7c91824046b9e4e71ecb3377')
build() { build() {
cd "$_pkgname-$_pkgname-$pkgver" cd "$_pkgname-$_pkgname-$pkgver"
unset LDFLAGS
mkdir build mkdir build
cd build cd build
cmake .. \ _args=(
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release
-DBUILD_SHARED_LIBS=1 \ -DBUILD_SHARED_LIBS=1
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_INSTALL_LIBDIR=/usr/lib \ -DCMAKE_INSTALL_LIBDIR=/usr/lib
-DCMAKE_INSTALL_LIBDIR_NOARCH=/usr/lib \ -DCMAKE_INSTALL_LIBDIR_NOARCH=/usr/lib
-DHAVE_EXYNOS_API=0 \ -DHAVE_LINUX_API=1
-DHAVE_RPI_API=1 \ )
-DRPI_INCLUDE_DIR=/opt/vc/include \ cmake "${_args[@]}" ..
-DRPI_LIB_DIR=/opt/vc/lib
make make
} }
package() { package() {