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