void-packages/srcpkgs/libcec/template

46 lines
1.2 KiB
Bash

# Template file for 'libcec'
pkgname=libcec
version=2.2.0
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@voidlinux.eu>"
homepage="https://github.com/Pulse-Eight/libcec"
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
pre_configure() {
autoreconf -fi
}
cec-client_package() {
depends="libcec>=${version}"
short_desc+=" - client tool"
pkg_install() {
vmove usr/bin
}
}
libcec-devel_package() {
short_desc+=" - development files"
depends="libudev-devel libcec>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}