Ticket #13686: Portfile

File Portfile, 2.5 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 17 years ago)
Line 
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
4PortSystem 1.0
5name            octave
6version         3.0.0
7categories      math science
8maintainers     nomaintainer
9platforms       darwin
10description     a Matlab-like environment for numerical analysis
11long_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
19homepage        http://www.octave.org
20master_sites    ftp://ftp.octave.org/pub/octave/
21
22use_bzip2       yes
23checksums       md5 d5512acdf60ac04398ff258cbc37f3c4 \
24    sha1 874b3d40db5d882e37614ffa6cdb9fdd71e173f8 \
25    rmd160 02fc58b63210ec99cfcad9dc2cee2ad1b6d11326
26
27depends_build \
28    bin:gawk:gawk \
29    bin:gsed:gsed \
30    bin:perl:perl5.8 \
31    bin:gs:ghostscript \
32    bin:tex:texlive \
33    bin:makeinfo:texinfo \
34    bin:texi2dvi:texinfo \
35    bin:texi2pdf:texinfo
36
37depends_lib \
38    port:ncurses \
39    port:qhull \
40    port:readline \
41    port:hdf5 \
42    port:fftw-3 \
43    port:metis \
44    port:SuiteSparse \
45    port:pcre \
46    port:glpk \
47    port:gnuplot \
48    port:curl
49
50configure.args \
51    --enable-static \
52    --enable-shared \
53    --enable-dl \
54    --enable-readline \
55    --with-zlib \
56    --with-hdf5 \
57    --with-fftw \
58    --with-glpk \
59    --with-curl \
60    --with-blas=-"-framework Accelerate" \
61    --with-lapack \
62    --with-umfpack \
63    --with-colamd \
64    --with-ccolamd \
65    --with-cholmod \
66    --with-cxsparse
67
68configure.env-append \
69    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
78test.run        yes
79test.target     check
80
81variant gcc43 {
82        depends_lib-append      port:gcc43
83        configure.f77           "${prefix}/bin/gfortran-mp-4.3"
84}
85
86if {![variant_isset gcc43]} {
87        depends_lib-append      port:g95
88        configure.f77   "${prefix}/bin/g95"
89}
90
91post-patch {
92    reinplace "s|glp_lpx_simplex|_glp_lpx_simplex|g" ${worksrcpath}/configure
93    reinplace "s|-lcholmod|-lcholmod -lmetis|g" ${worksrcpath}/configure
94    reinplace "s|#define GLPK_PRE_4_14 1|#undef GLPK_PRE_4_14|g" ${worksrcpath}/configure
95}
96
97livecheck.check         regex
98livecheck.url           http://www.gnu.org/software/octave/news.html
99livecheck.regex         Version (\\d+(\\.\\d+)*)