2013-03-25 19:15:43 +00:00
|
|
|
# Template file for 'libcec'
|
|
|
|
pkgname=libcec
|
|
|
|
version=2.1.1
|
|
|
|
revision=1
|
|
|
|
wrksrc="${pkgname}-${pkgname}-${version}"
|
|
|
|
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
|
|
|
|
|
2013-05-26 08:41:55 +00:00
|
|
|
hostmakedepends="automake pkg-config libtool"
|
2013-03-25 19:15:43 +00:00
|
|
|
makedepends="libudev-devel lockdev-devel"
|
|
|
|
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
|
2013-04-13 08:15:49 +00:00
|
|
|
makedepends+=" rpi-firmware"
|
2013-03-25 19:15:43 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
|
2013-05-26 08:41:55 +00:00
|
|
|
configure_args+=" --enable-rpi "
|
2013-03-25 19:15:43 +00:00
|
|
|
if [ "$XBPS_CROSS_BASE" ]; then
|
2013-05-26 08:41:55 +00:00
|
|
|
configure_args+=" --with-rpi-include-path=${XBPS_CROSS_BASE}/opt/vc/include "
|
|
|
|
configure_args+=" --with-rpi-lib-path=${XBPS_CROSS_BASE}/opt/vc/lib "
|
2013-03-25 19:15:43 +00:00
|
|
|
else
|
2013-05-26 08:41:55 +00:00
|
|
|
configure_args+=" --with-rpi-include-path=/opt/vc/include "
|
|
|
|
configure_args+=" --with-rpi-lib-path=/opt/vc/lib "
|
2013-03-25 19:15:43 +00:00
|
|
|
fi
|
|
|
|
fi
|
2013-05-26 08:41:55 +00:00
|
|
|
./configure ${configure_args} LDFLAGS=
|
2013-03-25 19:15:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
2013-05-26 08:41:55 +00:00
|
|
|
make ${make_build_args}
|
2013-03-25 19:15:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
}
|
2013-04-13 08:15:49 +00:00
|
|
|
|
|
|
|
cec-client_package() {
|
|
|
|
depends="libcec>=${version}"
|
|
|
|
short_desc="${short_desc} -- client tool"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libcec_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|