ocaml-findlib: support bytecode-only.

This commit is contained in:
Leah Neukirchen 2023-09-16 15:52:06 +02:00
parent 14e3498543
commit 7ae6aef9a2
1 changed files with 10 additions and 2 deletions

View File

@ -4,7 +4,6 @@ version=1.9.6
revision=1
build_style=configure
configure_args="-config /etc/findlib.conf -sitelib /usr/lib/ocaml -mandir /usr/share/man"
make_build_args="all opt"
makedepends="ocaml ocamlbuild"
short_desc="OCaml package manager"
maintainer="Orphaned <orphan@voidlinux.org>"
@ -16,9 +15,18 @@ nocross=yes
nopie=yes
disable_parallel_build=yes
case "$XBPS_TARGET_MACHINE" in
# native code platforms
x86_64*|aarch64*|riscv64*) make_build_args="all opt";;
*) make_build_target="all";;
esac
do_install() {
make prefix="$DESTDIR" install
if [ -f src/findlib/ocamlfind_opt ]; then
vbin src/findlib/ocamlfind_opt
fi
vlicense LICENSE
rm -rf ${DESTDIR}/usr/lib/ocaml/ocamlbuild