ports: Allow build scripts install to custom path

This will maybe allow packaging ports :)
This commit is contained in:
2026-05-25 15:52:22 +03:00
parent c79e412215
commit bb170ba613
50 changed files with 92 additions and 82 deletions

View File

@@ -74,8 +74,9 @@ build() {
}
install() {
meson install --destdir="$BANAN_SYSROOT" -C build || exit 1
meson install --destdir="$DESTDIR" -C build || exit 1
ln -sf osmesa.pc $BANAN_SYSROOT/usr/lib/pkgconfig/opengl.pc
ln -sf libOSMesa.so $BANAN_SYSROOT/usr/lib/libGL.so
mkdir -p "$DESTDIR/usr/lib/pkgconfig"
ln -sf osmesa.pc $DESTDIR/usr/lib/pkgconfig/opengl.pc
ln -sf libOSMesa.so $DESTDIR/usr/lib/libGL.so
}