rpi-userland: add /opt/vc/lib to library path / add license

Closes: #11786 [via git-merge-pr]
This commit is contained in:
newbluemoon 2018-02-21 10:23:06 +01:00 committed by Jürgen Buchmüller
parent 780571c1a4
commit 86ccf32a6d
1 changed files with 13 additions and 1 deletions

View File

@ -4,7 +4,7 @@ _gitshort="${_githash:0:7}"
pkgname=rpi-userland
version=20180103
revision=1
revision=2
wrksrc="userland-${_githash}"
build_style=cmake
configure_args="-DCMAKE_INSTALL_RPATH=/opt/vc/lib"
@ -42,10 +42,22 @@ pre_configure() {
done
}
post_install() {
vlicense LICENCE
vmkdir usr/lib/pkgconfig
vcopy ${FILESDIR}/*.pc usr/lib/pkgconfig
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() {