source: trunk/dports/math/octave/Portfile @ 92837

Last change on this file since 92837 was 92837, checked in by ryandesign@…, 7 years ago

Increase revision of ports depending on pcre since the libpcre library version has increased from 0 to 1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.0 KB
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 92837 2012-05-09 00:51:48Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                octave
7version             3.2.4
8revision            8
9conflicts           octave-devel
10categories          math science
11license             GPL-3+
12maintainers         nomaintainer
13platforms           darwin
14description         a Matlab-like environment for numerical analysis
15long_description    Octave provides a convenient command line interface \
16                    for solving linear and nonlinear problems numerically, \
17                    using a language that is mostly compatible with Matlab. \
18                    It is easily extensible and customizable via \
19                    user-defined functions or using dynamically loaded \
20                    modules written in e.g. C++, C or Fortran.
21
22homepage            http://www.gnu.org/software/octave/
23master_sites        gnu
24
25checksums           md5     90c39fa9e241ad2e978bcee4682a2ba9 \
26                    sha1    93b81fc300bc5e27e88b6668ef0622f29898dfd2 \
27                    rmd160  13b2198db1b8684229d2ba787ebbedd8e50a518c
28
29depends_build       port:gawk \
30                    path:bin/perl:perl5 \
31                    port:texinfo
32
33depends_lib         port:arpack \
34                    port:curl \
35                    port:fftw-3 \
36                    port:fftw-3-single \
37                    port:ftgl \
38                    port:ghostscript \
39                    port:glpk \
40                    port:GraphicsMagick \
41                    port:gnuplot \
42                    port:hdf5-18 \
43                    port:metis \
44                    port:ncurses \
45                    port:pcre \
46                    port:readline \
47                    port:qhull \
48                    port:qrupdate \
49                    port:SuiteSparse \
50                    port:gsed
51
52configure.args      --enable-shared \
53                    --enable-dl \
54                    --with-hdf5 \
55                    --with-fftw \
56                    --enable-static \
57                    --enable-readline \
58                    --with-zlib \
59                    --with-glpk \
60                    --with-curl \
61                    --with-lapack \
62                    --with-umfpack \
63                    --with-colamd \
64                    --with-ccolamd \
65                    --with-cholmod \
66                    --with-cxsparse \
67                    --without-framework-carbon
68
69configure.perl      ${prefix}/bin/perl
70configure.python    ' '
71configure.awk       ${prefix}/bin/gawk
72
73configure.env-append SED="${prefix}/bin/gsed" \
74                    MAKEINFO="${prefix}/bin/makeinfo" \
75                    TEXI2DVI="${prefix}/bin/texi2dvi" \
76                    TEXI2PDF="${prefix}/bin/texi2pdf"
77
78use_parallel_build  no
79universal_variant   no
80
81test.run            yes
82test.target         check
83
84variant atlas conflicts accelerate description {use BLAS from ATLAS} {
85    depends_lib-append port:atlas
86}
87variant accelerate conflicts atlas description {use BLAS from Accelerate.framework} {
88    if {![variant_isset g95]} {
89        configure.fflags-append -ff2c
90    }
91    if {[variant_isset g95] || ([string match *64* $build_arch] && ${os.major} >= 10)} {
92        depends_lib-append      port:dotwrp
93        configure.args-append   --with-blas="-ldotwrp -framework Accelerate"
94    }
95    configure.args-append   --with-lapack="-framework Accelerate"
96}
97if {[variant_isset g95]} {
98    default_variants +accelerate
99} elseif {![variant_isset accelerate]} {
100    default_variants +atlas
101}
102if {![variant_isset atlas] && ![variant_isset accelerate]} {
103    pre-fetch {
104        return -code error "You must use either the atlas or accelerate variant."
105    }
106}
107
108variant gcc43 description {build with the macports gcc43 toolchain} conflicts gcc44 gcc45 g95 {
109    depends_build-append    port:gcc43
110    configure.compiler      macports-gcc-4.3
111}
112
113variant gcc44 description {build with the macports gcc44 toolchain} conflicts gcc43 gcc45 g95 {
114    depends_build-append    port:gcc44
115    configure.compiler      macports-gcc-4.4
116}
117
118variant gcc45 description {build with the macports gcc45 toolchain} conflicts gcc43 gcc44 g95 {
119    depends_build-append    port:gcc45
120    configure.compiler      macports-gcc-4.5
121}
122
123variant g95 description {build with g95} requires accelerate conflicts atlas gcc43 gcc44 gcc45 {
124    depends_build-append    port:g95
125    configure.f77       "${prefix}/bin/g95"
126}
127
128if { ![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset g95] } {
129    default_variants +gcc45
130}
131if {![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset g95]} {
132    pre-fetch {
133        return -code error "You must use one of the compiler variants."
134    }
135}
136
137patchfiles patch-lo-specfun.cc.diff patch-configure-no_x11.diff
138
139post-patch {
140    reinplace "s|-lcholmod|-lcholmod -lmetis|g" ${worksrcpath}/configure
141}
142
143livecheck.type      regex
144livecheck.url       http://www.gnu.org/software/octave/news.html
145livecheck.regex     Version (\\d+(\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.