From 7ae6aef9a2615ee36dfe55b429024a7a4a301f50 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 16 Sep 2023 15:52:06 +0200 Subject: [PATCH] ocaml-findlib: support bytecode-only. --- srcpkgs/ocaml-findlib/template | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/srcpkgs/ocaml-findlib/template b/srcpkgs/ocaml-findlib/template index 25fbecf81cc..b1bf955df66 100644 --- a/srcpkgs/ocaml-findlib/template +++ b/srcpkgs/ocaml-findlib/template @@ -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 " @@ -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 - vbin src/findlib/ocamlfind_opt + if [ -f src/findlib/ocamlfind_opt ]; then + vbin src/findlib/ocamlfind_opt + fi vlicense LICENSE rm -rf ${DESTDIR}/usr/lib/ocaml/ocamlbuild