rpi-userland: add /opt/vc/lib to library path / add license
Closes: #11786 [via git-merge-pr]
This commit is contained in:
parent
780571c1a4
commit
86ccf32a6d
1 changed files with 13 additions and 1 deletions
|
@ -4,7 +4,7 @@ _gitshort="${_githash:0:7}"
|
||||||
|
|
||||||
pkgname=rpi-userland
|
pkgname=rpi-userland
|
||||||
version=20180103
|
version=20180103
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="userland-${_githash}"
|
wrksrc="userland-${_githash}"
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="-DCMAKE_INSTALL_RPATH=/opt/vc/lib"
|
configure_args="-DCMAKE_INSTALL_RPATH=/opt/vc/lib"
|
||||||
|
@ -42,10 +42,22 @@ pre_configure() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
post_install() {
|
post_install() {
|
||||||
|
vlicense LICENCE
|
||||||
vmkdir usr/lib/pkgconfig
|
vmkdir usr/lib/pkgconfig
|
||||||
vcopy ${FILESDIR}/*.pc usr/lib/pkgconfig
|
vcopy ${FILESDIR}/*.pc usr/lib/pkgconfig
|
||||||
rm -rf ${DESTDIR}/etc
|
rm -rf ${DESTDIR}/etc
|
||||||
rm -rf ${DESTDIR}/opt/vc/share
|
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() {
|
rpi-userland-devel_package() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue