Ticket #15222: Portfile3.diff
File Portfile3.diff, 4.3 KB (added by tenomoto (Takeshi Enomoto), 17 years ago) |
---|
-
Portfile
old new 1 # $Id: Portfile 36526 2008-05-05 07:28:18Z takeshi@macports.org $ 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 $ 2 3 3 4 PortSystem 1.0 4 5 5 name octave 6 version 2.9.15 7 revision 2 6 version 3.0.1 8 7 categories math science 9 maintainers stechert@macports.org 8 maintainers stechert@macports.org alakazam@melix.net 10 9 platforms darwin 11 10 description a Matlab-like environment for numerical analysis 12 11 long_description \ … … 18 17 modules written in e.g. C++, C or Fortran. 19 18 20 19 homepage http://www.octave.org 21 master_sites ftp://ftp.octave.org/pub/octave/ bleeding-edge/20 master_sites ftp://ftp.octave.org/pub/octave/ 22 21 23 22 use_bzip2 yes 24 checksums md5 c7c0449a5e1418479bebbdd565eb9cc2 \ 25 sha1 4643c9681749bcb6cf7dd7190d82cc28484524b0 \ 26 rmd160 bf0b56ae2a1c5baaacf65483f6fe98c1b885da03 27 28 patch.args -p1 29 patchfiles patch-configure.diff \ 30 patch-configure-2.diff \ 31 patch-dynamic-ld-cc.diff 23 checksums md5 230f3895a42386ec625bf2593a44c441 \ 24 sha1 e4cebe74a1182df610d91e45974653227dd4b342 \ 25 rmd160 3141454b1e9a8efcac0772aed63c27aaad082861 32 26 33 27 depends_build bin:texinfo:texinfo \ 34 28 bin:tex:teTeX \ 29 bin:tex:texlive \ 30 bin:tex:ptex \ 31 port:ghostscript \ 35 32 port:gawk \ 36 port:gsed 33 port:gsed \ 34 port:perl5.8 \ 35 port:texinfo 37 36 38 37 depends_lib port:readline \ 39 38 port:curl \ … … 43 42 port:SuiteSparse \ 44 43 port:pcre \ 45 44 port:glpk \ 46 port:gnuplot 45 port:gnuplot \ 46 port:ncurses \ 47 port:qhull \ 47 48 48 49 configure.args --enable-shared \ 49 50 --enable-dl \ 50 51 --disable-static \ 51 52 --with-hdf5 \ 52 53 --with-fftw \ 53 --without-mpi \ 54 --with-blas="-framework Accelerate" 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 55 66 56 67 configure.env-append AWK="${prefix}/bin/gawk" \ 57 SED="${prefix}/bin/gsed" 58 build.env-append AWK="${prefix}/bin/gawk" \ 59 SED="${prefix}/bin/gsed" 60 61 post-patch { 62 # Avoid using heimdal's broken fnmatch.h 63 reinplace "s|<\\(fnmatch\.h\\)>|\"/usr/include/\\1\"|" ${worksrcpath}/liboctave/glob-match.cc 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" 64 82 } 65 83 66 pre-destroot { 67 file copy ${worksrcpath}/src/defaults.h ${worksrcpath}/src/defaults.h.tmp 68 file copy ${worksrcpath}/src/oct-conf.h ${worksrcpath}/src/oct-conf.h.tmp 69 } 70 destroot.destdir prefix=${destroot}${prefix} 71 post-destroot { 72 file rename -force ${worksrcpath}/src/defaults.h.tmp ${destroot}${prefix}/include/${name}-${version}/${name}/defaults.h 73 file rename -force ${worksrcpath}/src/oct-conf.h.tmp ${destroot}${prefix}/include/${name}-${version}/${name}/oct-conf.h 74 } 75 76 if {![variant_isset g95]} { 77 depends_lib-append port:gcc42 78 configure.compiler macports-gcc-4.2 79 } 80 81 default_variants +test 82 variant test description {runs tests} { 83 depends_build-append bin:runtest:dejagnu 84 test.run yes 85 test.target check 86 } 87 88 variant ptex description {use pTeX instead of teTeX } { 89 depends_build-delete bin:tex:teTeX 90 depends_build-append bin:tex:pTeX 91 } 92 93 variant g95 description {build with g95} { 84 if {![variant_isset gcc43]} { 94 85 depends_lib-append port:g95 95 86 configure.f77 "${prefix}/bin/g95" 96 configure.fflags -O2 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 97 93 } 98 94 99 95 livecheck.check regex 100 96 livecheck.url http://www.gnu.org/software/octave/news.html 101 livecheck.regex Version (\\d+(\\.\\d+)*) is now available97 livecheck.regex Version (\\d+(\\.\\d+)*)