swi-prolog: fix for musl, respect CFLAGS.

This commit is contained in:
Christian Neukirchen 2015-05-19 18:57:49 +02:00
parent 252c79e4f7
commit d644b9253a
1 changed files with 10 additions and 2 deletions

View File

@ -1,10 +1,9 @@
# Template file for 'swi-prolog'
pkgname=swi-prolog
version=6.6.6
revision=4
revision=5
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"
@ -15,6 +14,15 @@ 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"
}