2013-03-25 19:15:43 +00:00
|
|
|
# Template file for 'libcec'
|
|
|
|
pkgname=libcec
|
2013-12-28 14:50:52 +00:00
|
|
|
version=2.1.4
|
2014-08-23 14:03:56 +00:00
|
|
|
revision=2
|
2013-03-25 19:15:43 +00:00
|
|
|
wrksrc="${pkgname}-${pkgname}-${version}"
|
2013-12-28 14:50:52 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
hostmakedepends="automake pkg-config libtool"
|
|
|
|
makedepends="libudev-devel lockdev-devel"
|
2013-03-25 19:15:43 +00:00
|
|
|
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"
|
2013-12-28 14:50:52 +00:00
|
|
|
checksum=79bef5232a5c9ab987ca3a2d4bfcaeb80480fd26f502dc1a996fe845d90fe147
|
2013-03-25 19:15:43 +00:00
|
|
|
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
|
2013-12-28 14:50:52 +00:00
|
|
|
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="
|
2013-04-13 08:15:49 +00:00
|
|
|
makedepends+=" rpi-firmware"
|
2013-03-25 19:15:43 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
|
2013-04-13 08:15:49 +00:00
|
|
|
cec-client_package() {
|
|
|
|
depends="libcec>=${version}"
|
2013-12-28 14:50:52 +00:00
|
|
|
short_desc+=" - client tool"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-12-28 14:50:52 +00:00
|
|
|
libcec-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
2014-08-23 13:22:30 +00:00
|
|
|
depends="libudev-devel libcec>=${version}_${revision}"
|
2013-12-28 14:50:52 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|