# $Id: Portfile 54602 2009-07-30 06:29:03Z toby@macports.org $

PortSystem 1.0

name		cln
version		1.2.2
categories	math
platforms	darwin
maintainers	gwright
description	Class Library for Numbers
long_description	\
		CLN is a C++ library providing a rich library of 	\
		numeric functions.

use_bzip2	yes

homepage	http://www.ginac.de/CLN/
master_sites	${homepage}

checksums	md5     6b479281fec86314b4c7a9357bd83ef8		\
		sha1    2d2a5d3e383a3043c5bf68299a466685ef4ec8ec	\
		rmd160  e53ceebede73fb3f97ca85aeba1c821e1e7d3c38

depends_lib	port:gmp

platform darwin 7 {
	pre-fetch {
		error "cln is not supported on Panther (OS X 10.3.x)"
	}
}

configure.cflags-delete	-O2
configure.cflags-append -O

configure.args	--with-gmp=${prefix}/lib		\
		--infodir=${prefix}/share/info		\
		--mandir=${prefix}/share/man

default_variants	+test
variant test description {run testsuite} {
	     	  test.run	yes
		  test.target	check
		}

