mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
ocaml-findlib: support bytecode-only.
This commit is contained in:
parent
14e3498543
commit
7ae6aef9a2
1 changed files with 10 additions and 2 deletions
|
@ -4,7 +4,6 @@ version=1.9.6
|
||||||
revision=1
|
revision=1
|
||||||
build_style=configure
|
build_style=configure
|
||||||
configure_args="-config /etc/findlib.conf -sitelib /usr/lib/ocaml -mandir /usr/share/man"
|
configure_args="-config /etc/findlib.conf -sitelib /usr/lib/ocaml -mandir /usr/share/man"
|
||||||
make_build_args="all opt"
|
|
||||||
makedepends="ocaml ocamlbuild"
|
makedepends="ocaml ocamlbuild"
|
||||||
short_desc="OCaml package manager"
|
short_desc="OCaml package manager"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
|
@ -16,9 +15,18 @@ nocross=yes
|
||||||
nopie=yes
|
nopie=yes
|
||||||
disable_parallel_build=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() {
|
do_install() {
|
||||||
make prefix="$DESTDIR" 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
|
vlicense LICENSE
|
||||||
|
|
||||||
rm -rf ${DESTDIR}/usr/lib/ocaml/ocamlbuild
|
rm -rf ${DESTDIR}/usr/lib/ocaml/ocamlbuild
|
||||||
|
|
Loading…
Add table
Reference in a new issue