1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 37228 2008-05-31 14:10:38Z jmr@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name octave |
---|
7 | version 3.0.2 |
---|
8 | categories math science |
---|
9 | maintainers stechert@macports.org alakazam@melix.net |
---|
10 | platforms darwin |
---|
11 | description a Matlab-like environment for numerical analysis |
---|
12 | long_description \ |
---|
13 | Octave provides a convenient command line interface \ |
---|
14 | for solving linear and nonlinear problems numerically, \ |
---|
15 | using a language that is mostly compatible with Matlab. \ |
---|
16 | It is easily extensible and customizable via \ |
---|
17 | user-defined functions or using dynamically loaded \ |
---|
18 | modules written in e.g. C++, C or Fortran. |
---|
19 | |
---|
20 | homepage http://octave.sourceforge.net/ |
---|
21 | master_sites \ |
---|
22 | ftp://ftp.gnu.org/pub/gnu/octave/ |
---|
23 | distname octave-${version} |
---|
24 | distfiles octave-${version}${extract.suffix} \ |
---|
25 | |
---|
26 | use_bzip2 no |
---|
27 | checksums \ |
---|
28 | md5 791e19cc9a36f2c046b39ab0574306d8 \ |
---|
29 | sha1 9236c11e03dd177a8379d697e1b29a9884b32a8f \ |
---|
30 | |
---|
31 | depends_build \ |
---|
32 | bin:tex:texlive \ |
---|
33 | port:ghostscript \ |
---|
34 | port:gawk \ |
---|
35 | port:gsed \ |
---|
36 | port:perl5.8 \ |
---|
37 | port:texinfo |
---|
38 | |
---|
39 | depends_lib port:readline \ |
---|
40 | port:curl \ |
---|
41 | port:hdf5 \ |
---|
42 | port:fftw-3 \ |
---|
43 | port:metis \ |
---|
44 | port:SuiteSparse \ |
---|
45 | port:pcre \ |
---|
46 | port:glpk \ |
---|
47 | port:gnuplot \ |
---|
48 | port:ncurses \ |
---|
49 | port:qhull \ |
---|
50 | |
---|
51 | configure.args --enable-shared \ |
---|
52 | --enable-dl \ |
---|
53 | --disable-static \ |
---|
54 | --with-hdf5 \ |
---|
55 | --with-fftw \ |
---|
56 | --with-blas="-framework Accelerate" \ |
---|
57 | --enable-static \ |
---|
58 | --enable-readline \ |
---|
59 | --with-zlib \ |
---|
60 | --with-glpk \ |
---|
61 | --with-curl \ |
---|
62 | --with-lapack \ |
---|
63 | --with-umfpack \ |
---|
64 | --with-colamd \ |
---|
65 | --with-ccolamd \ |
---|
66 | --with-cholmod \ |
---|
67 | --with-cxsparse |
---|
68 | |
---|
69 | configure.env-append AWK="${prefix}/bin/gawk" \ |
---|
70 | SED="${prefix}/bin/gsed" \ |
---|
71 | PERL="${prefix}/bin/perl" \ |
---|
72 | PYTHON=' ' \ |
---|
73 | GHOSTSCRIPT="${prefix}/bin/gs" \ |
---|
74 | MAKEINFO="${prefix}/bin/makeinfo" \ |
---|
75 | TEXI2DVI="${prefix}/bin/texi2dvi" \ |
---|
76 | TEXI2PDF="${prefix}/bin/texi2pdf" |
---|
77 | |
---|
78 | use_parallel_build yes |
---|
79 | |
---|
80 | test.run yes |
---|
81 | test.target check |
---|
82 | |
---|
83 | variant gcc43 description {builds with gfortran-mp-4.3} { |
---|
84 | depends_lib-append port:gcc43 |
---|
85 | configure.f77 "${prefix}/bin/gfortran-mp-4.3" |
---|
86 | } |
---|
87 | |
---|
88 | if {![variant_isset gcc43]} { |
---|
89 | depends_lib-append port:g95 |
---|
90 | configure.f77 "${prefix}/bin/g95" |
---|
91 | } |
---|
92 | |
---|
93 | post-patch { |
---|
94 | reinplace "s|glp_lpx_simplex|_glp_lpx_simplex|g" ${worksrcpath}/configure |
---|
95 | reinplace "s|-lcholmod|-lcholmod -lmetis|g" ${worksrcpath}/configure |
---|
96 | reinplace "s|#define GLPK_PRE_4_14 1|#undef GLPK_PRE_4_14|g" ${worksrcpath}/configure |
---|
97 | } |
---|
98 | |
---|
99 | livecheck.check regex |
---|
100 | livecheck.url http://www.gnu.org/software/octave/news.html |
---|
101 | livecheck.regex Version (\\d+(\\.\\d+)*) |
---|