libcec: enable rpi support on armv7l.

This commit is contained in:
Enno Boland 2015-05-24 00:35:55 +02:00
parent 78f5ee9799
commit add9dbae7c

View file

@ -1,7 +1,7 @@
# Template file for 'libcec'
pkgname=libcec
version=2.2.0
revision=1
revision=2
wrksrc="${pkgname}-${pkgname}-${version}"
build_style=gnu-configure
hostmakedepends="automake pkg-config libtool"
@ -13,13 +13,15 @@ license="GPL-2"
distfiles="https://github.com/Pulse-Eight/libcec/archive/libcec-${version}.tar.gz"
checksum=fd4f47a18d6e0f4b9e6f5831280207ee2b2a5fc2741ae32ae09ad12a8aa52917
if [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
configure_args+=" --enable-rpi"
configure_args+=" --with-rpi-include-path=${XBPS_CROSS_BASE}/opt/vc/include"
configure_args+=" --with-rpi-lib-path=${XBPS_CROSS_BASE}/opt/vc/lib"
configure_args+=" LDFLAGS="
makedepends+=" rpi-firmware"
fi
case "$XBPS_TARGET_MACHINE" in
armv6l|armv7l)
configure_args+=" --enable-rpi"
configure_args+=" --with-rpi-include-path=${XBPS_CROSS_BASE}/opt/vc/include"
configure_args+=" --with-rpi-lib-path=${XBPS_CROSS_BASE}/opt/vc/lib"
configure_args+=" LDFLAGS="
makedepends+=" rpi-firmware"
;;
esac
pre_configure() {
autoreconf -fi