# $Id: Portfile 54310 2009-07-24 18:54:23Z toby@macports.org $

PortSystem	1.0
name		yap-devel
version		4.5.6
categories	lang
maintainers	mac.com:pmoura
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

distname	Yap-${version}

configure.cflags-append "-I${prefix}/include"

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

default_variants	+coroutines
