# Template file for 'ocaml'
pkgname=ocaml
version=5.1.1
revision=1
build_style="gnu-configure"
configure_args="--with-pic --libdir=/usr/lib/ocaml"
makedepends="libzstd-devel"
depends="${makedepends}"
short_desc="Main implementation of the OCaml language"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="QPL-1.0, LGPL-2.1-only"
homepage="http://ocaml.org/"
distfiles="https://github.com/ocaml/ocaml/archive/${version}.tar.gz"
checksum=57f7b382b3d71198413ede405d95ef3506f1cdc480cda1dca1e26b37cb090e17
nocross=yes

case "$XBPS_TARGET_MACHINE" in
	# native code platforms
	x86_64*|aarch64*|riscv64*) make_build_target="world.opt";;
	*) make_build_target="world";;
esac

export ASPP="cc -c"

post_install() {
	vlicense LICENSE
}
