libcec: update to 2.1.4.

This commit is contained in:
Juan RP 2013-12-28 15:50:52 +01:00
parent e528ae1031
commit 4ed253b4e8
2 changed files with 24 additions and 30 deletions

1
srcpkgs/libcec-devel Symbolic link
View File

@ -0,0 +1 @@
libcec

View File

@ -1,19 +1,23 @@
# Template file for 'libcec'
pkgname=libcec
version=2.1.1
version=2.1.4
revision=1
wrksrc="${pkgname}-${pkgname}-${version}"
build_style=gnu-configure
hostmakedepends="automake pkg-config libtool"
makedepends="libudev-devel lockdev-devel"
short_desc="USB CEC Adapter communication Library"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="https://github.com/Pulse-Eight/libcec"
license="GPL-2"
distfiles="https://github.com/Pulse-Eight/libcec/archive/libcec-${version}.tar.gz"
checksum=f61378798d900d496ed3a5ff7747b0bb35bdfec9b5c4168dcea38396e3569bf1
hostmakedepends="automake pkg-config libtool"
makedepends="libudev-devel lockdev-devel"
checksum=79bef5232a5c9ab987ca3a2d4bfcaeb80480fd26f502dc1a996fe845d90fe147
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
@ -21,38 +25,27 @@ pre_configure() {
autoreconf -fi
}
do_configure() {
if [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
configure_args+=" --enable-rpi "
if [ "$XBPS_CROSS_BASE" ]; then
configure_args+=" --with-rpi-include-path=${XBPS_CROSS_BASE}/opt/vc/include "
configure_args+=" --with-rpi-lib-path=${XBPS_CROSS_BASE}/opt/vc/lib "
else
configure_args+=" --with-rpi-include-path=/opt/vc/include "
configure_args+=" --with-rpi-lib-path=/opt/vc/lib "
fi
fi
./configure ${configure_args} LDFLAGS=
}
do_build() {
make ${make_build_args}
}
do_install() {
make DESTDIR=${DESTDIR} install
}
cec-client_package() {
depends="libcec>=${version}"
short_desc="${short_desc} -- client tool"
short_desc+=" - client tool"
pkg_install() {
vmove usr/bin
}
}
libcec_package() {
libcec-devel_package() {
short_desc+=" - development files"
depends="libcec>=${version}_${revision}"
pkg_install() {
vmove usr
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}
libcec_package() {
pkg_install() {
vmove all
}
}