# $Id: Portfile,v 1.24 2006/06/29 20:17:51 gwright Exp $

PortSystem  1.0
name		swi-prolog
version            5.6.15
epoch		20051223

categories	lang
maintainers	wielemak@science.uva.nl
platforms	darwin
description	SWI-Prolog compiler plus extra packages (stable version)

long_description	\
		ISO/Edinburgh-style Prolog compiler including modules,		\
		autoload, libraries, Garbage-collector, stack-expandor,		\
		C/C++-interface, Multiple threads, GNU-readline interface,	\
		coroutining, constraint programming, global variables,		\
		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/

checksums        md5     1c8627101d4dda0e660a32794425827e

depends_lib		\
		lib:libreadline:readline	\
		lib:libncursesw:ncurses		\
		lib:libjpeg:jpeg		\
		lib:libmcrypt:libmcrypt		\
		lib:libX11.6:XFree86		\
		lib:libgmp:gmp

platform darwin 6 { depends_lib-append lib:libdl:dlcompat }

distname	pl-${version}

configure.env	LIBRARY_PATH=/opt/local/lib \
		CPATH=/opt/local/include

configure.args	--prefix=${prefix}		\
		--mandir=${prefix}/share/man	\
		--with-world

build.env	LIBRARY_PATH=/opt/local/lib \
                CPATH=/opt/local/include

default_variants +mt

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

variant mt	{ configure.args-append --enable-mt}

