49 lines
1.4 KiB
Bash
49 lines
1.4 KiB
Bash
# Template file for 'libcec'
|
|
pkgname=libcec
|
|
version=4.0.4
|
|
revision=1
|
|
wrksrc="${pkgname}-${pkgname}-${version}"
|
|
build_style=cmake
|
|
hostmakedepends="pkg-config libtool swig"
|
|
makedepends="eudev-libudev-devel lockdev-devel p8-platform-devel libXrandr-devel
|
|
python-devel"
|
|
short_desc="USB CEC Adapter communication Library"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/Pulse-Eight/libcec"
|
|
distfiles="https://github.com/Pulse-Eight/libcec/archive/libcec-${version}.tar.gz"
|
|
checksum=4382a964bf8c511c22c03cdab5ba2d81c241536e6479072a61516966804f400a
|
|
|
|
build_options="rpi"
|
|
|
|
if [ "$build_option_rpi" ]; then
|
|
configure_args+=" -DRPI_INCLUDE_DIR=${XBPS_CROSS_BASE}/opt/vc/include"
|
|
configure_args+=" -DRPI_LIB_DIR=${XBPS_CROSS_BASE}/opt/vc/lib"
|
|
makedepends+=" rpi-userland-devel"
|
|
fi
|
|
|
|
post_install() {
|
|
vmkdir usr/lib
|
|
if [ -d $DESTDIR/usr/lib64 ]; then
|
|
mv $DESTDIR/usr/lib64/* $DESTDIR/usr/lib
|
|
fi
|
|
mv $DESTDIR/$wrksrc/build/lib*/* $DESTDIR/usr/lib
|
|
sed -i "s#$wrksrc/build/##" $DESTDIR/usr/lib/pkgconfig/libcec.pc
|
|
}
|
|
|
|
cec-client_package() {
|
|
depends="libcec>=${version}"
|
|
short_desc+=" - client tool"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
}
|
|
}
|
|
libcec-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="eudev-libudev-devel p8-platform-devel libcec>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|