1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name sundials |
---|
7 | version 2.5.0 |
---|
8 | categories math devel |
---|
9 | license bsd |
---|
10 | platforms darwin |
---|
11 | maintainers gmail.com:jjstickel openmaintainer |
---|
12 | |
---|
13 | description SUite of Nonlinear and DIfferential/ALgebraic equation Solvers |
---|
14 | |
---|
15 | long_description SUNDIALS consists of the following five solvers: CVODE\ |
---|
16 | solves initial value problems for ordinary differential\ |
---|
17 | equation (ODE) systems. CVODES solves ODE systems and\ |
---|
18 | includes sensitivity analysis capabilities (forward and\ |
---|
19 | adjoint). IDA solves initial value problems for\ |
---|
20 | differential-algebraic equation (DAE) systems. IDAS solves\ |
---|
21 | DAE systems and includes sensitivity analysis capabilities\ |
---|
22 | (forward and adjoint). KINSOL solves nonlinear algebraic\ |
---|
23 | systems. |
---|
24 | |
---|
25 | homepage https://computation.llnl.gov/casc/sundials/main.html |
---|
26 | master_sites http://www.llnl.gov/casc/sundials/download/code/ |
---|
27 | |
---|
28 | checksums rmd160 c489fcb114f6846c7d5aef2d0eb096cb96f3fbc9 \ |
---|
29 | sha256 9935760931fa6539edd0741acbcf4986770426fd5ea40e50ad4ebed0fc77b0d3 |
---|
30 | |
---|
31 | patchfiles sundials-2.5.0_destdir.patch |
---|
32 | patch.pre_args -p1 |
---|
33 | |
---|
34 | configure.args-append --enable-shared |
---|
35 | |
---|
36 | # this is recommended for py-assiumulo, but I have not tested without, |
---|
37 | # JJS 7/27/12, |
---|
38 | # http://www.jmodelica.org/assimulo_home/installation.html |
---|
39 | configure.env-append CFLAGS=-fPIC |
---|
40 | |
---|
41 | variant gcc45 conflicts gcc46 gcc47 gcc48 gcc49 description {Use the gcc45 compiler} { |
---|
42 | depends_lib-append port:gcc45 |
---|
43 | configure.compiler macports-gcc-4.5 |
---|
44 | } |
---|
45 | variant gcc46 conflicts gcc45 gcc47 gcc48 gcc49 description {Use the gcc46 compiler} { |
---|
46 | depends_lib-append port:gcc46 |
---|
47 | configure.compiler macports-gcc-4.6 |
---|
48 | } |
---|
49 | variant gcc47 conflicts gcc45 gcc46 gcc48 gcc49 description {Use the gcc47 compiler} { |
---|
50 | depends_lib-append port:gcc47 |
---|
51 | configure.compiler macports-gcc-4.7 |
---|
52 | } |
---|
53 | variant gcc48 conflicts gcc45 gcc46 gcc47 gcc49 description {Use the gcc48 compiler} { |
---|
54 | depends_lib-append port:gcc48 |
---|
55 | configure.compiler macports-gcc-4.8 |
---|
56 | } |
---|
57 | variant gcc49 conflicts gcc45 gcc46 gcc47 gcc48 description {Use the gcc49 compiler} { |
---|
58 | depends_lib-append port:gcc49 |
---|
59 | configure.compiler macports-gcc-4.9 |
---|
60 | } |
---|
61 | if { ![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc48] && ![variant_isset gcc49] } { |
---|
62 | default_variants +gcc47 |
---|
63 | } |
---|
64 | |
---|
65 | variant g95 description {Use g95 to compile fortran libraries} { |
---|
66 | configure.args-append F77=${prefix}/bin/g95 |
---|
67 | depends_lib-append port:g95 |
---|
68 | } |
---|
69 | |
---|
70 | variant atlas description {build with atlas} { |
---|
71 | depends_lib-append port:atlas |
---|
72 | configure.args-append --with-blas=${prefix}/lib/libtatlas.dylib |
---|
73 | configure.args-append --with-lapack=${prefix}/lib/libtatlas.dylib |
---|
74 | } |
---|
75 | default_variants +atlas |
---|
76 | |
---|
77 | variant openmpi description {build with OpenMPI} conflicts mpich2 { |
---|
78 | depends_lib-append port:openmpi |
---|
79 | configure.args-append --with-mpicc=${prefix}/bin/openmpicc |
---|
80 | configure.args-append --with-mpif77=${prefix}/bin/openmpif77 |
---|
81 | } |
---|
82 | variant mpich2 description {build with MPICH2} conflicts openmpi { |
---|
83 | # this variant needs testing, JJS 7/25/12 |
---|
84 | depends_lib-append port:mpich2 |
---|
85 | configure.args-append --with-mpicc=${prefix}/bin/mpicc |
---|
86 | configure.args-append --with-mpif77=${prefix}/bin/mpif77 |
---|
87 | } |
---|
88 | if {![variant_isset mpich2]} { |
---|
89 | default_variants +openmpi |
---|
90 | } |
---|
91 | |
---|
92 | post-destroot { |
---|
93 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} |
---|
94 | xinstall -m 644 -W ${worksrcpath} LICENSE README ${destroot}${prefix}/share/doc/${name} |
---|
95 | } |
---|
96 | |
---|
97 | variant doc description {install pdf documentation} { |
---|
98 | post-destroot { |
---|
99 | system "cp -r ${worksrcpath}/doc/* ${destroot}${prefix}/share/doc/${name}/." |
---|
100 | system "find ${destroot}${prefix}/share/doc -type f -exec chmod 644 {} \\;" |
---|
101 | } |
---|
102 | } |
---|
103 | |
---|
104 | variant debug description {build with debug symbols} { |
---|
105 | configure.optflags -g |
---|
106 | configure.optflags-append -fbounds-check |
---|
107 | } |
---|
108 | |
---|
109 | variant static description {build and install static libraries} { |
---|
110 | configure.args-delete --enable-shared |
---|
111 | } |
---|
112 | |
---|
113 | # are the compiled example files being installed after building them? this |
---|
114 | # needs to be checked further, JJS 8/22/12 |
---|
115 | variant examples description {build, run, and install examples} { |
---|
116 | configure.args-append --enable-examples --with-exinstdir=${prefix}/share/examples |
---|
117 | } |
---|