Revision: 70854 http://trac.macports.org/changeset/70854 Author: michaelld@macports.org Date: 2010-08-23 11:37:53 -0700 (Mon, 23 Aug 2010) Log Message: ----------- Initial checkin of 'octave-devel' port, octave version 3.3.52. There are still bugs in this version that are in the process of being fixed upstream, but the basic Portfile should work properly. Added Paths: ----------- trunk/dports/math/octave-devel/ trunk/dports/math/octave-devel/Portfile Added: trunk/dports/math/octave-devel/Portfile =================================================================== --- trunk/dports/math/octave-devel/Portfile (rev 0) +++ trunk/dports/math/octave-devel/Portfile 2010-08-23 18:37:53 UTC (rev 70854) @@ -0,0 +1,153 @@ +# -*- 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 +# $Id: Portfile 68909 2010-08-23 00:00:00Z michaelld@macports.org $ + +PortSystem 1.0 + +name octave-devel +version 3.3.52 +categories math science +maintainers nomaintainer +platforms darwin +description a Matlab-like environment for numerical analysis +long_description Octave provides a convenient command line interface \ + for solving linear and nonlinear problems numerically, \ + using a language that is mostly compatible with Matlab. \ + It is easily extensible and customizable via \ + user-defined functions or using dynamically loaded \ + modules written in e.g. C++, C or Fortran. + +homepage http://www.gnu.org/software/octave/ +master_sites ftp://ftp.octave.org/pub/octave/bleeding-edge +distname octave-${version} +use_bzip2 yes + +checksums md5 edb34f23a03b01e6667d7ef340b720f1 \ + sha1 d9c3868af2f40a1c06343bf43bcb6b0cb07b08a2 \ + rmd160 c9d1313543c34ca033da1ba43420181aa4d484c0 + +depends_build port:bison \ + port:flex \ + port:gawk \ + port:gperf \ + port:gsed \ + path:bin/perl:perl5 \ + port:texinfo + +depends_lib port:arpack \ + port:atlas \ + port:curl \ + port:fftw-3 \ + port:fftw-3-single \ + port:fltk \ + port:ftgl \ + port:ghostscript \ + port:glpk \ + port:GraphicsMagick \ + port:gnuplot \ + port:hdf5-18 \ + port:less \ + port:metis \ + port:ncurses \ + port:pcre \ + port:readline \ + port:qhull \ + port:qrupdate \ + port:SuiteSparse + +# allow non-Apple compilers to work with FLTK by removing the -arch +# flag, which means this port cannot easy compile as universal. +patchfiles patch-configure.diff + +universal_variant no + +post-patch { + # make sure to include the METIS library when using CHOLMOD + reinplace "s|-lcholmod|-lcholmod -lmetis|g" ${worksrcpath}/configure + + # remove 'dirfd' from libgnu's dirent.in.h; + # it causes an error, and isn't used in this version of Octave. + reinplace "54,78d" ${worksrcpath}/libgnu/dirent.in.h +} + +configure.args --without-x \ + --enable-shared \ + --enable-dl \ + --disable-docs \ + --disable-openmp + +# do not build static libraries; just shared +# --enable-static + +### the following are probably not necessary, but are included for +### completion. Ordering is the same as in './configure --help'. +configure.args-append \ + --enable-readline \ + --with-qhull \ + --with-z \ + --with-hdf5 \ + --with-fftw3 \ + --with-fftw3f \ + --with-glpk \ + --with-curl \ + --with-blas \ + --with-lapack \ + --with-qrupdate \ + --with-amd \ + --with-camd \ + --with-colamd \ + --with-ccolamd \ + --with-cholmod \ + --with-cxsparse \ + --with-umfpack \ + --with-arpack + +### the following are probably not necessary, but are included for +### completion. +# octave uses a number of other ports to create sources from template: +# perl, gawk, gsed, flex, bison, texinfo. python is not used if perl +# is available, so clear it out. +configure.perl ${prefix}/bin/perl +configure.python ' ' +configure.awk ${prefix}/bin/gawk +configure.env-append SED="${prefix}/bin/gsed" \ + TEXI2DVI="${prefix}/bin/texi2dvi" \ + TEXI2PDF="${prefix}/bin/texi2pdf" + +### parallel build is supposed to work now +# use_parallel_build no + +test.run yes +test.target check + +variant gcc43 description {build with the macports gcc43 toolchain} conflicts gcc45 gcc44 g95 { + depends_build-append port:gcc43 + configure.compiler macports-gcc-4.3 +} + +variant gcc44 description {build with the macports gcc44 toolchain} conflicts gcc45 gcc43 g95 { + depends_build-append port:gcc44 + configure.compiler macports-gcc-4.4 +} + +variant gcc45 description {build with the macports gcc45 toolchain} conflicts gcc44 gcc43 g95 { + depends_build-append port:gcc45 + configure.compiler macports-gcc-4.5 +} + +variant g95 description {build with g95} conflicts gcc43 gcc44 { + depends_build-append port:g95 + configure.f77 "${prefix}/bin/g95" +} + +if { ![variant_isset gcc43] && ![variant_isset gcc44] && \ + ![variant_isset gcc45] && ![variant_isset g95] } { + default_variants +gcc44 +} + +variant docs description {Enable creation and installation of documentation} { + configure.args-replace s|--disable-docs|--enable-docs| +} + +livecheck.type regex +livecheck.url http://www.gnu.org/software/octave/news.html +livecheck.regex Version (\\d+(\\.\\d+)*)
participants (1)
-
michaelld@macports.org