# Template file for 'swi-prolog'
pkgname=swi-prolog
version=6.6.6
revision=1
wrksrc="pl-${version}"
build_style=gnu-configure
configure_args="--with-world"
hostmakedepends="pkg-config"
makedepends="gmp-devel readline-devel libressl-devel zlib-devel libarchive-devel libXft-devel libjpeg-turbo-devel libXpm-devel libXinerama-devel unixodbc-devel  libXt-devel"
short_desc="A comprehensive free Prolog environment"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="LGPL-2.1"
homepage="http://www.swi-prolog.org/"
distfiles="http://www.swi-prolog.org/download/stable/src/pl-${version}.tar.gz"
checksum=9f80bb274e2f31fd68b0acbe35982c012d5f8311dbe44ec1d8d04351a776996d
nocross=yes

post_install() {
	chmod +x "${DESTDIR}/usr/lib/swipl-${version}/library/dialect/sicstus/swipl-lfr.pl"
}
