# Template file for 'ecl'
pkgname=ecl
version=16.1.3
revision=1
build_style=gnu-configure
configure_args="--enable-gmp=system --enable-boehm=system --enable-libatomic=system"
hostmakedepends="pkg-config"
makedepends="gc-devel libatomic_ops-devel gmp-devel"
depends=$makedepends
short_desc="A Common-Lisp interpreter as described in the X3J13 Ansi specification"
maintainer="Kyle Nusbaum <knusbaum+void@sdf.org>"
license="LGPL-2.1-or-later"
homepage="https://common-lisp.net/project/ecl/"
distfiles="https://common-lisp.net/project/ecl/static/files/release/ecl-${version}.tgz"
checksum=76a585c616e8fa83a6b7209325a309da5bc0ca68e0658f396f49955638111254

if [ "$CROSS_BUILD" ]; then
	# Depend on system ecl
	hostmakedepends+=" ecl"
	configure_args+=" --with-cross-config=${XBPS_SRCPKGDIR}/ecl/files/${XBPS_TARGET_MACHINE}.conf"
fi

post_install() {
	vlicense COPYING
}
