# $Id: Portfile,v 1.31 2006/04/19 20:40:17 mww Exp $

PortSystem 	1.0
name		swi-prolog-lite
version		5.6.12

categories	lang
maintainers	pmoura@mac.com
platforms	darwin
description	SWI-Prolog compiler (without extra packages)

long_description	\
		ISO/Edinburgh-style Prolog compiler including modules, 		\
		autoload, libraries, Garbage-collector, stack-expandor,		\
		C/C++-interface, Multiple threads, GNU-readline interface, 	\
		very fast compiler. Including packages clib (Unix process	\
		control, sockets, MIME), cpp (C++ interface), sgml (reading \
		XML/SGML), sgml/RDF (reading RDF into triples), ODBC 		\
		interface and XPCE (Graphics UI toolkit, integrated editor 	\
		(Emacs-clone) and graphical debugger).

homepage	http://www.swi-prolog.org/
master_sites	http://gollem.science.uva.nl/cgi-bin/nph-download/SWI-Prolog/ \
			ftp://gollem.science.uva.nl/SWI-Prolog/
dist_subdir	swi-prolog
checksums	sha1 198c14553ae9602213289fb43e532c30ea8cab1c

depends_lib	port:readline

distname	pl-${version}
worksrcdir 	pl-${version}/src

configure.env	LDFLAGS=-L${prefix}/lib \
		CFLAGS="-I${prefix}/include" \
		CPPFLAGS="-I${prefix}/include" \
		CIFLAGS="-I${prefix}/include"

configure.args	--mandir=/${prefix}/share/man \
		--disable-gmp \
		--enable-shared \
		--enable-mt

variant st	{ configure.args-delete --enable-mt
		configure.args-append --disable-mt }

platform darwin 6 { depends_lib-append lib:libdl:dlcompat }
platform darwin 8 { configure.env-append CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 }

