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>
# vim: ft=sh:
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - RPi support, no Exynos
# 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
buildarch=28
pkgname=libcec-rpi
_pkgname=libcec
pkgver=6.0.2
pkgrel=2
pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter (Raspberry Pi)"
pkgrel=3
pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter (Raspberry Pi using kms)"
arch=('armv6h' 'armv7h' 'aarch64')
url="http://libcec.pulse-eight.com/"
license=('GPL')
@ -26,22 +29,18 @@ sha256sums=('090696d7a4fb772d7acebbb06f91ab92e025531c7c91824046b9e4e71ecb3377')
build() {
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_RPI_API=1 \
-DRPI_INCLUDE_DIR=/opt/vc/include \
-DRPI_LIB_DIR=/opt/vc/lib
_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[@]}" ..
make
}
package() {