# $Id: Portfile,v 1.2 2005/08/16 18:08:33 mww Exp $

PortSystem 1.0
name		yacas
version		1.0.58
categories	math
maintainers	olt@bogosoft.com
description	Yet Another Computer Algebra System
long_description YACAS is an easy to use, general purpose Computer Algebra\
	System, a program for symbolic manipulation of mathematical\
	expressions. It uses its own programming language designed for\
	symbolic as well as arbitrary-precision numerical computations.  The\
	system has a library of scripts that implement many of the symbolic\
	algebra operations - new algorithms can be easily added to the library.
master_sites	http://yacas.sourceforge.net/backups/
checksums   md5 fd7fa942789fdac8fa363e555c86cae9

depends_build	bin:perl:perl5.8

configure.env	LDFLAGS="-L${prefix}/lib" \
		CPPFLAGS="-I${prefix}/include"
configure.args-append   --disable-shared

test.run	yes

variant gmp {
	# for faster arbitrary precision arithmetics
	depends_lib-append	lib:libgmp.4:gmp
	configure.args-append	--with-numlib=gmp
}
