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

PortSystem	1.0
name		yap
version		5.0.1
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}/current/ freebsd
distname		Yap-${version}
checksums		sha1 c59847655be140d113a2684383ef21a17aa14085
patchfiles		patch-config.h.in

depends_lib		port:readline port:gmp

distname	Yap-${version}

configure.args	--enable-threads=yes --enable-coroutining=yes \
			--with-gmp=${prefix} --with-readline=${prefix}
