# $Id: Portfile,v 1.8 2006/02/23 15:23:30 mww Exp $

PortSystem	1.0
name		yap
version		5.0.1
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}/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}

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

platform darwin 8 {
	configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0
}
