56 lines
1.5 KiB
Bash
56 lines
1.5 KiB
Bash
# Template file for 'libcec'
|
|
pkgname=libcec
|
|
version=6.0.2
|
|
revision=4
|
|
build_style=cmake
|
|
configure_args="Python_ADDITIONAL_VERSIONS=${py3_ver}"
|
|
hostmakedepends="pkg-config libtool swig"
|
|
makedepends="eudev-libudev-devel lockdev-devel p8-platform-devel
|
|
libXrandr-devel python3-devel"
|
|
short_desc="USB CEC Adapter communication Library"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
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=090696d7a4fb772d7acebbb06f91ab92e025531c7c91824046b9e4e71ecb3377
|
|
|
|
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"
|
|
LDFLAGS="-Wl,-rpath=/opt/vc/lib"
|
|
fi
|
|
|
|
post_install() {
|
|
vmkdir usr/lib
|
|
mv "$DESTDIR"/$wrksrc/build/lib*/* "$DESTDIR"/usr/lib
|
|
vsed -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
|
|
}
|
|
}
|
|
python3-libcec_package() {
|
|
short_desc+=" - python bindings"
|
|
depends="python3 libcec>=${version}"
|
|
|
|
pkg_install() {
|
|
vmove "${py3_lib}"
|
|
}
|
|
}
|
|
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
|
|
}
|
|
}
|