Ticket #14307: Portfile

File Portfile, 1.4 KB (added by alakazam@…, 16 years ago)
Line 
1# $Id: Portfile 33440 2008-01-27 11:26:31Z ryandesign@macports.org $
2
3PortSystem 1.0
4name            cln
5version         1.2.2
6categories      math
7platforms       darwin
8maintainers     gwright@macports.org
9description     Class Library for Numbers
10long_description        \
11                CLN is a C++ library providing a rich library of        \
12                numeric functions.
13
14use_bzip2       yes
15
16homepage        http://www.ginac.de/CLN/
17master_sites    http://www.ginac.de/CLN/
18
19checksums  md5 6b479281fec86314b4c7a9357bd83ef8 \
20           sha1 2d2a5d3e383a3043c5bf68299a466685ef4ec8ec \
21           rmd160 e53ceebede73fb3f97ca85aeba1c821e1e7d3c38
22
23depends_lib     port:gmp
24
25platform darwin 6 {
26                return -code error "cln is not supported on Jaguar (OS X 10.2.x)"
27                }
28
29platform darwin 7 {
30                return -code error "cln is not supported on Panther (OS X 10.3.x)"
31                }
32
33platform 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
50configure.args  --with-gmp                              \
51                --infodir=${prefix}/share/info          \
52                --mandir=${prefix}/share/man
53
54build           { system "cd ${worksrcpath} && LDFLAGS=\"-lstdc++ -Wl,-read_only_relocs,warning -L${prefix}/lib\" make all"
55                }
56
57default_variants        +test
58variant test    { test.run      yes
59                  test.cmd      make
60                  test.target   check
61                }
62