The conflict between rpi-userland pkgconfig files egl.pc and glesv2.pc
and the MesaLib provided files was solved upstream: they simply removed
the files from the installation.
5070cb7fc1
Closes: #18299
82 lines
1.9 KiB
Bash
82 lines
1.9 KiB
Bash
# Template file for 'rpi-userland'
|
|
_githash="06bc6daa02137ca72b7a2104afad81e82a44de17"
|
|
_gitshort="${_githash:0:7}"
|
|
|
|
pkgname=rpi-userland
|
|
version=20191218
|
|
revision=1
|
|
wrksrc="userland-${_githash}"
|
|
build_style=cmake
|
|
hostmakedepends="pkg-config"
|
|
configure_args="-DCMAKE_INSTALL_RPATH=/opt/vc/lib"
|
|
short_desc="Raspberry Pi GPU userland libraries and utilities (git ${_gitshort})"
|
|
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=cf4dff40a2f4ec38bc7e42a80b989df1bf88e12d714f7e681f83c4e5a588f5c9
|
|
|
|
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
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl)
|
|
vmkdir etc
|
|
echo /lib:/usr/local/lib:/usr/lib:/opt/vc/lib > ${DESTDIR}/etc/ld-musl-armhf.path
|
|
;;
|
|
*)
|
|
vmkdir etc/ld.so.conf.d
|
|
echo /opt/vc/lib > ${DESTDIR}/etc/ld.so.conf.d/rpi-userland.conf
|
|
;;
|
|
esac
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|