# $Id: Portfile,v 1.5 2005/04/04 10:08:38 jkh Exp $

PortSystem	1.0
name		yap-devel
version		4.5.6
categories	lang
maintainers	pmoura@mac.com
platforms	darwin
description	YAP Prolog compiler

long_description	\
		YAP is a high-performance Prolog compiler developed at    \
		LIACC/Universidade do Porto and at COPPE Sistemas/UFRJ.   \
		Its Prolog engine is based in the WAM (Warren Abstract    \
		Machine), with several optimizations for better           \
		performance. YAP follows the Edinburgh tradition, and     \
		is largely compatible with the ISO-Prolog standard and    \
		with Quintus and SICStus Prolog.

homepage        http://www.ncc.up.pt/~vsc/Yap
master_sites    ${homepage}/Yap4.5/

checksums	md5 9b02b62d40b0639b4dd00d5cdd3f1e1d

depends_lib	lib:libreadline.5:readline

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

distname	Yap-${version}

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

variant coroutines {
	configure.args-append	--enable-coroutining=yes
}

default_variants	+coroutines
