Skip to content

Commit

Permalink
alarm/libcec-rpi to 6.0.2-3
Browse files Browse the repository at this point in the history
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: raspberrypi/linux#4103
  • Loading branch information
graysky2 committed Feb 20, 2021
1 parent 384468e commit 34489de
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions alarm/libcec-rpi/PKGBUILD
Expand Up @@ -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')
Expand All @@ -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() {
Expand Down

0 comments on commit 34489de

Please sign in to comment.