ocaml-findlib: support bytecode-only.
This commit is contained in:
parent
14e3498543
commit
7ae6aef9a2
|
@ -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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue