void-packages/srcpkgs/swi-prolog/template

29 lines
999 B
Bash

# Template file for 'swi-prolog'
pkgname=swi-prolog
version=6.6.6
revision=5
wrksrc="pl-${version}"
build_style=gnu-configure
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_extract() {
case "$XBPS_TARGET_MACHINE" in
*-musl) sed -i 's/unsigned int line/int line/' src/pl-thread.c
esac
}
do_configure() {
COFLAGS="${CFLAGS}" ./configure ${configure_args} \
--with-world --enable-custom-flags
}
post_install() {
chmod +x "${DESTDIR}/usr/lib/swipl-${version}/library/dialect/sicstus/swipl-lfr.pl"
}