76 lines
1.7 KiB
Bash
76 lines
1.7 KiB
Bash
# Template file for 'rpi-userland'
|
|
pkgname=rpi-userland
|
|
version=20230920
|
|
revision=1
|
|
_githash="44a3953fd13d5f0b9b0cd120b904aa7db370244e"
|
|
build_style=cmake
|
|
configure_args="-DCMAKE_INSTALL_RPATH=\$ORIGIN/../lib"
|
|
hostmakedepends="pkg-config"
|
|
short_desc="Raspberry Pi GPU userland libraries and utilities"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://github.com/raspberrypi/userland"
|
|
distfiles="https://github.com/raspberrypi/userland/archive/${_githash}.tar.gz"
|
|
checksum=981c376a110f78fe579a72e218888646ccd5d71ab82d04bb1a8d7be1487b45f0
|
|
|
|
LDFLAGS="-Wl,--no-as-needed"
|
|
archs="armv6l* armv7l* aarch64*"
|
|
|
|
shlib_provides="
|
|
libEGL.so
|
|
libGLESv2.so
|
|
libOpenVG.so
|
|
libWFC.so
|
|
libbcm_host.so
|
|
libbrcmEGL.so
|
|
libbrcmGLESv2.so
|
|
libbrcmOpenVG.so
|
|
libbrcmWFC.so
|
|
libcontainers.so
|
|
libdebug_sym.so
|
|
libdtovl.so
|
|
libmmal.so
|
|
libmmal_components.so
|
|
libmmal_core.so
|
|
libmmal_util.so
|
|
libmmal_vc_client.so
|
|
libopenmaxil.so
|
|
libvchiq_arm.so
|
|
libvcos.so
|
|
libvcsm.so"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
aarch64*) configure_args+=" -DARM64=on" ;;
|
|
esac
|
|
|
|
pre_configure() {
|
|
for f in $(find ${wrksrc} -type f -name CMakeLists.txt); do
|
|
sed -i 's,-Werror,,g' $f
|
|
done
|
|
}
|
|
post_install() {
|
|
vlicense LICENCE
|
|
rm -rf ${DESTDIR}/etc
|
|
rm -rf ${DESTDIR}/opt/vc/share
|
|
|
|
vmkdir usr/share
|
|
mv ${DESTDIR}/opt/vc/man ${DESTDIR}/usr/share
|
|
|
|
vmkdir usr/bin
|
|
ln -sfr ${DESTDIR}/opt/vc/bin/tvservice ${DESTDIR}/usr/bin
|
|
ln -sfr ${DESTDIR}/opt/vc/bin/vcgencmd ${DESTDIR}/usr/bin
|
|
}
|
|
|
|
rpi-userland-devel_package() {
|
|
provides="rpi-firmware-pcfiles-1_1"
|
|
replaces="rpi-firmware-pcfiles>=0"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove opt/vc/include
|
|
vmove opt/vc/src
|
|
vmove opt/vc/lib/*.a
|
|
vmove opt/vc/lib/pkgconfig
|
|
}
|
|
}
|