# $Id: Portfile,v 1.52 2006/04/19 06:28:49 mww Exp $

PortSystem 1.0

name			mathomatic
version			12.5.14
categories		math
platforms		darwin
maintainers		mww@opendarwin.org
description		small, portable symbolic math program
long_description	Mathomatic is a small, portable symbolic math program \
				that can automatically solve, simplify, differentiate, \
				combine, and compare algebraic equations, perform \
				polynomial and complex arithmetic, etc.

homepage		http://www.mathomatic.com/
master_sites	http://www.panix.com/~gesslein/
checksums		sha1 1e3fd37e438daa5232058a72d9550e8a25985a64
use_bzip2		yes

depends_lib		port:readline

use_configure	no

build.env		READLINE=1 CFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib

test.run		yes

destroot.destdir	prefix=${destroot}${prefix} mandir=${destroot}${prefix}/share/man docdir=${destroot}${prefix}/share/doc

platform darwin 8 {
	build.args	CC=/usr/bin/gcc-4.0
}

