| 1 | 1c1,2 |
|---|
| 2 | < # $Id: Portfile 33572 2008-01-30 14:21:35Z nox@macports.org $ |
|---|
| 3 | --- |
|---|
| 4 | > # -*- 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 |
|---|
| 5 | > # $Id: Portfile $ |
|---|
| 6 | 5,6c6 |
|---|
| 7 | < version 2.9.15 |
|---|
| 8 | < revision 1 |
|---|
| 9 | --- |
|---|
| 10 | > version 3.0.0 |
|---|
| 11 | 8c8 |
|---|
| 12 | < maintainers stechert@macports.org |
|---|
| 13 | --- |
|---|
| 14 | > maintainers nomaintainer |
|---|
| 15 | 11,17c11,17 |
|---|
| 16 | < long_description \ |
|---|
| 17 | < Octave provides a convenient command line interface \ |
|---|
| 18 | < for solving linear and nonlinear problems numerically, \ |
|---|
| 19 | < using a language that is mostly compatible with Matlab. \ |
|---|
| 20 | < It is easily extensible and customizable via \ |
|---|
| 21 | < user-defined functions or using dynamically loaded \ |
|---|
| 22 | < modules written in e.g. C++, C or Fortran. |
|---|
| 23 | --- |
|---|
| 24 | > long_description \ |
|---|
| 25 | > Octave provides a convenient command line interface \ |
|---|
| 26 | > for solving linear and nonlinear problems numerically, \ |
|---|
| 27 | > using a language that is mostly compatible with Matlab. \ |
|---|
| 28 | > It is easily extensible and customizable via \ |
|---|
| 29 | > user-defined functions or using dynamically loaded \ |
|---|
| 30 | > modules written in e.g. C++, C or Fortran. |
|---|
| 31 | 20c20 |
|---|
| 32 | < master_sites ftp://ftp.octave.org/pub/octave/bleeding-edge/ |
|---|
| 33 | --- |
|---|
| 34 | > master_sites ftp://ftp.octave.org/pub/octave/ |
|---|
| 35 | 23,59c23,83 |
|---|
| 36 | < checksums md5 c7c0449a5e1418479bebbdd565eb9cc2 |
|---|
| 37 | < |
|---|
| 38 | < patch.args -p1 |
|---|
| 39 | < patchfiles patch-configure \ |
|---|
| 40 | < patch-configure-2 \ |
|---|
| 41 | < patch-dynamic-ld-cc |
|---|
| 42 | < |
|---|
| 43 | < depends_build bin:texinfo:texinfo \ |
|---|
| 44 | < bin:tex:teTeX \ |
|---|
| 45 | < port:gawk \ |
|---|
| 46 | < port:gsed |
|---|
| 47 | < |
|---|
| 48 | < depends_lib port:readline \ |
|---|
| 49 | < port:hdf5 \ |
|---|
| 50 | < port:fftw-3 \ |
|---|
| 51 | < port:metis \ |
|---|
| 52 | < port:SuiteSparse \ |
|---|
| 53 | < port:pcre \ |
|---|
| 54 | < port:glpk \ |
|---|
| 55 | < port:gnuplot |
|---|
| 56 | < |
|---|
| 57 | < configure.args --enable-shared \ |
|---|
| 58 | < --enable-dl \ |
|---|
| 59 | < --disable-static \ |
|---|
| 60 | < --with-hdf5 \ |
|---|
| 61 | < --with-fftw \ |
|---|
| 62 | < --without-mpi \ |
|---|
| 63 | < --with-blas="-framework Accelerate" |
|---|
| 64 | < |
|---|
| 65 | < configure.env-append AWK="${prefix}/bin/gawk" \ |
|---|
| 66 | < SED="${prefix}/bin/gsed" |
|---|
| 67 | < build.env-append AWK="${prefix}/bin/gawk" \ |
|---|
| 68 | < SED="${prefix}/bin/gsed" |
|---|
| 69 | < |
|---|
| 70 | < post-patch { |
|---|
| 71 | < # Avoid using heimdal's broken fnmatch.h |
|---|
| 72 | < reinplace "s|<\\(fnmatch\.h\\)>|\"/usr/include/\\1\"|" ${worksrcpath}/liboctave/glob-match.cc |
|---|
| 73 | --- |
|---|
| 74 | > checksums md5 d5512acdf60ac04398ff258cbc37f3c4 \ |
|---|
| 75 | > sha1 874b3d40db5d882e37614ffa6cdb9fdd71e173f8 \ |
|---|
| 76 | > rmd160 02fc58b63210ec99cfcad9dc2cee2ad1b6d11326 |
|---|
| 77 | > |
|---|
| 78 | > depends_build \ |
|---|
| 79 | > bin:gawk:gawk \ |
|---|
| 80 | > bin:gsed:gsed \ |
|---|
| 81 | > bin:perl:perl5.8 \ |
|---|
| 82 | > bin:gs:ghostscript \ |
|---|
| 83 | > bin:tex:texlive \ |
|---|
| 84 | > bin:makeinfo:texinfo \ |
|---|
| 85 | > bin:texi2dvi:texinfo \ |
|---|
| 86 | > bin:texi2pdf:texinfo |
|---|
| 87 | > |
|---|
| 88 | > depends_lib \ |
|---|
| 89 | > port:ncurses \ |
|---|
| 90 | > port:qhull \ |
|---|
| 91 | > port:readline \ |
|---|
| 92 | > port:hdf5 \ |
|---|
| 93 | > port:fftw-3 \ |
|---|
| 94 | > port:metis \ |
|---|
| 95 | > port:SuiteSparse \ |
|---|
| 96 | > port:pcre \ |
|---|
| 97 | > port:glpk \ |
|---|
| 98 | > port:gnuplot \ |
|---|
| 99 | > port:curl |
|---|
| 100 | > |
|---|
| 101 | > configure.args \ |
|---|
| 102 | > --enable-static \ |
|---|
| 103 | > --enable-shared \ |
|---|
| 104 | > --enable-dl \ |
|---|
| 105 | > --enable-readline \ |
|---|
| 106 | > --with-zlib \ |
|---|
| 107 | > --with-hdf5 \ |
|---|
| 108 | > --with-fftw \ |
|---|
| 109 | > --with-glpk \ |
|---|
| 110 | > --with-curl \ |
|---|
| 111 | > --with-blas=-"-framework Accelerate" \ |
|---|
| 112 | > --with-lapack \ |
|---|
| 113 | > --with-umfpack \ |
|---|
| 114 | > --with-colamd \ |
|---|
| 115 | > --with-ccolamd \ |
|---|
| 116 | > --with-cholmod \ |
|---|
| 117 | > --with-cxsparse |
|---|
| 118 | > |
|---|
| 119 | > configure.env-append \ |
|---|
| 120 | > AWK="${prefix}/bin/gawk" \ |
|---|
| 121 | > SED="${prefix}/bin/gsed" \ |
|---|
| 122 | > PERL="${prefix}/bin/perl" \ |
|---|
| 123 | > PYTHON=' ' \ |
|---|
| 124 | > GHOSTSCRIPT="${prefix}/bin/gs" \ |
|---|
| 125 | > MAKEINFO="${prefix}/bin/makeinfo" \ |
|---|
| 126 | > TEXI2DVI="${prefix}/bin/texi2dvi" \ |
|---|
| 127 | > TEXI2PDF="${prefix}/bin/texi2pdf" |
|---|
| 128 | > |
|---|
| 129 | > test.run yes |
|---|
| 130 | > test.target check |
|---|
| 131 | > |
|---|
| 132 | > variant gcc43 { |
|---|
| 133 | > depends_lib-append port:gcc43 |
|---|
| 134 | > configure.f77 "${prefix}/bin/gfortran-mp-4.3" |
|---|
| 135 | 62,88c86 |
|---|
| 136 | < pre-destroot { |
|---|
| 137 | < file copy ${worksrcpath}/src/defaults.h ${worksrcpath}/src/defaults.h.tmp |
|---|
| 138 | < file copy ${worksrcpath}/src/oct-conf.h ${worksrcpath}/src/oct-conf.h.tmp |
|---|
| 139 | < } |
|---|
| 140 | < destroot.destdir prefix=${destroot}${prefix} |
|---|
| 141 | < post-destroot { |
|---|
| 142 | < file rename -force ${worksrcpath}/src/defaults.h.tmp ${destroot}${prefix}/include/${name}-${version}/${name}/defaults.h |
|---|
| 143 | < file rename -force ${worksrcpath}/src/oct-conf.h.tmp ${destroot}${prefix}/include/${name}-${version}/${name}/oct-conf.h |
|---|
| 144 | < } |
|---|
| 145 | < |
|---|
| 146 | < if {![variant_isset g95]} { |
|---|
| 147 | < depends_lib-append port:gcc42 |
|---|
| 148 | < configure.compiler macports-gcc-4.2 |
|---|
| 149 | < } |
|---|
| 150 | < |
|---|
| 151 | < default_variants +test |
|---|
| 152 | < variant test { depends_build-append bin:runtest:dejagnu |
|---|
| 153 | < test.run yes |
|---|
| 154 | < test.target check |
|---|
| 155 | < } |
|---|
| 156 | < |
|---|
| 157 | < variant ptex { |
|---|
| 158 | < depends_build-delete bin:tex:teTeX |
|---|
| 159 | < depends_build-append bin:tex:pTeX |
|---|
| 160 | < } |
|---|
| 161 | < |
|---|
| 162 | < variant g95 { |
|---|
| 163 | --- |
|---|
| 164 | > if {![variant_isset gcc43]} { |
|---|
| 165 | 91c89,94 |
|---|
| 166 | < configure.env-append FFLAGS=-O2 MACOSX_DEPLOYMENT_TARGET=10.4 |
|---|
| 167 | --- |
|---|
| 168 | > } |
|---|
| 169 | > |
|---|
| 170 | > post-patch { |
|---|
| 171 | > reinplace "s|glp_lpx_simplex|_glp_lpx_simplex|g" ${worksrcpath}/configure |
|---|
| 172 | > reinplace "s|-lcholmod|-lcholmod -lmetis|g" ${worksrcpath}/configure |
|---|
| 173 | > reinplace "s|#define GLPK_PRE_4_14 1|#undef GLPK_PRE_4_14|g" ${worksrcpath}/configure |
|---|
| 174 | 96c99 |
|---|
| 175 | < livecheck.regex Version (\\d+(\\.\\d+)*) is now available |
|---|
| 176 | --- |
|---|
| 177 | > livecheck.regex Version (\\d+(\\.\\d+)*) |
|---|