a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $
PortSystem 1.0
name cln
version 1.1.13
categories math
platforms darwin
maintainers nomaintainer@macports.org
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 ftp://ftpthep.physik.uni-mainz.de/pub/gnu/
checksums md5 1f3d227360003b389bba14c8a5c3695a
depends_lib port:gmp
platform darwin 6 {
ui_msg "cln is not supported on Jaguar (OS X 10.2.x)"
exit 1
}
platform darwin 7 {
ui_msg "cln is not supported on Panther (OS X 10.3.x)"
exit 1
}
platform darwin 8 {
configure.env LDFLAGS="-lstdc++ -L${prefix}/lib" \
CPPFLAGS="-I${prefix}/include" \
CFLAGS="-O2 -fno-exceptions -finline-limit=1000 -I../include -I${prefix}/include" \
CXXFLAGS="-O2 -fno-exceptions -finline-limit=1000 -I../include -I${prefix}/include -L${prefix}/lib"
}
configure.args --with-gmp \
--infodir=${prefix}/share/info \
--mandir=${prefix}/share/man
build { cd ${worksrcpath}
system "LDFLAGS=\"-lstdc++ -Wl,-read_only_relocs,warning -L${prefix}/lib\" make all"
}
default_variants +test
variant test { test.run yes
test.cmd make
test.target check
}