mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
63 lines
1.8 KiB
Bash
63 lines
1.8 KiB
Bash
# $Id$
|
|
# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
|
|
# Contributor: Philippe Cherel <philippe.cherel@mayenne.org>
|
|
# vim: ft=sh:
|
|
|
|
# ALARM: Oleg Rakhmanov <oleg@archlinuxarm.org>
|
|
# - IMX support, no Exynos
|
|
# - IMX patches are a courtesy of openbricks:
|
|
# https://github.com/OpenBricks/openbricks/tree/master/packages/libs/libcec3/patches
|
|
buildarch=4
|
|
|
|
pkgname=libcec-imx6
|
|
_pkgname=libcec
|
|
pkgver=3.1.0
|
|
pkgrel=2
|
|
pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter (IMX6)"
|
|
arch=('armv7h')
|
|
url="http://libcec.pulse-eight.com/"
|
|
license=('GPL')
|
|
makedepends=('cmake')
|
|
depends=('udev' 'lockdev' 'p8-platform' 'libxrandr')
|
|
provides=('libcec')
|
|
conflicts=('libcec')
|
|
source=("$_pkgname-$pkgver.tar.gz::https://github.com/Pulse-Eight/$_pkgname/archive/$_pkgname-$pkgver.tar.gz"
|
|
'0001-add-imx-support-1.patch'
|
|
'0002-add-imx-support-2.patch')
|
|
|
|
sha256sums=('09109d21a1b03f42c9e341d12600f2e4c41038d640269fa75408e2d36126f921'
|
|
'21d061ddeebd29bd1478e8fd2add19221964dbc0211bfd4df4538adab968c426'
|
|
'202312c72171a8198eac3e328cc17473d0fd40b51eff99162b004139b188a1d4')
|
|
|
|
prepare() {
|
|
cd "$_pkgname-$_pkgname-$pkgver"
|
|
|
|
patch -Np1 -i ../0001-add-imx-support-1.patch
|
|
patch -Np1 -i ../0002-add-imx-support-2.patch
|
|
}
|
|
|
|
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_IMX6_API=1 \
|
|
-DRPI_INCLUDE_DIR=/opt/vc/include \
|
|
-DRPI_LIB_DIR=/opt/vc/lib
|
|
make
|
|
|
|
}
|
|
|
|
package() {
|
|
cd "$_pkgname-$_pkgname-$pkgver/build"
|
|
make DESTDIR="$pkgdir" install
|
|
}
|