# Template file for 'ol'
pkgname=ol
version=2.3.6
revision=1
build_style=gnu-makefile
hostmakedepends="xxd"
short_desc="Purely functional dialect of Lisp"
maintainer="rc-05 <rc23@email.it>"
license="LGPL-3.0-or-later, MIT"
homepage="https://yuriy-chumak.github.io/ol/"
changelog="https://raw.githubusercontent.com/yuriy-chumak/ol/master/doc/CHANGELOG.md"
distfiles="https://github.com/yuriy-chumak/ol/archive/${version}.tar.gz"
checksum=5a7b8ff5eeba2db63ba8d409c6ebc3af5f9cb21d14a2ec1a279d8137298360ef

case "$XBPS_TARGET_MACHINE" in
	i686*|x86_64*) makedepends+=" gcc-multilib";;
esac

CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/} -lm -DOLVM_FFI -DHAS_SOCKETS -DHAS_DLOPEN"

post_install() {
	vlicense LICENSE
}
