1 | # $Id: Portfile 33440 2008-01-27 11:26:31Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name cln |
---|
5 | version 1.2.2 |
---|
6 | categories math |
---|
7 | platforms darwin |
---|
8 | maintainers gwright@macports.org |
---|
9 | description Class Library for Numbers |
---|
10 | long_description \ |
---|
11 | CLN is a C++ library providing a rich library of \ |
---|
12 | numeric functions. |
---|
13 | |
---|
14 | use_bzip2 yes |
---|
15 | |
---|
16 | homepage http://www.ginac.de/CLN/ |
---|
17 | master_sites http://www.ginac.de/CLN/ |
---|
18 | |
---|
19 | checksums md5 6b479281fec86314b4c7a9357bd83ef8 \ |
---|
20 | sha1 2d2a5d3e383a3043c5bf68299a466685ef4ec8ec \ |
---|
21 | rmd160 e53ceebede73fb3f97ca85aeba1c821e1e7d3c38 |
---|
22 | |
---|
23 | depends_lib port:gmp |
---|
24 | |
---|
25 | platform darwin 6 { |
---|
26 | return -code error "cln is not supported on Jaguar (OS X 10.2.x)" |
---|
27 | } |
---|
28 | |
---|
29 | platform darwin 7 { |
---|
30 | return -code error "cln is not supported on Panther (OS X 10.3.x)" |
---|
31 | } |
---|
32 | |
---|
33 | platform darwin 8 { |
---|
34 | configure.ldflags-append \ |
---|
35 | -lstdc++ |
---|
36 | configure.cflags-append \ |
---|
37 | -fno-exceptions \ |
---|
38 | -finline-limit=1000 \ |
---|
39 | -I../include \ |
---|
40 | -I${prefix}/include |
---|
41 | configure.cxxflags-append \ |
---|
42 | -fno-exceptions \ |
---|
43 | -finline-limit=1000 \ |
---|
44 | -I../include \ |
---|
45 | -I${prefix}/include \ |
---|
46 | -L${prefix}/lib |
---|
47 | } |
---|
48 | |
---|
49 | |
---|
50 | configure.args --with-gmp \ |
---|
51 | --infodir=${prefix}/share/info \ |
---|
52 | --mandir=${prefix}/share/man |
---|
53 | |
---|
54 | build { system "cd ${worksrcpath} && LDFLAGS=\"-lstdc++ -Wl,-read_only_relocs,warning -L${prefix}/lib\" make all" |
---|
55 | } |
---|
56 | |
---|
57 | default_variants +test |
---|
58 | variant test { test.run yes |
---|
59 | test.cmd make |
---|
60 | test.target check |
---|
61 | } |
---|
62 | |
---|