364
edits
(include -pthread in cppflags & cxxflags) |
(update portfile) |
||
Line 10: | Line 10: | ||
name octave-local | name octave-local | ||
version 3.7.0+ | version 3.7.0+ | ||
revision | revision 10 | ||
conflicts octave | conflicts octave | ||
categories math science | categories math science | ||
maintainers michaelld openmaintainer | maintainers michaelld openmaintainer | ||
Line 24: | Line 24: | ||
homepage http://www.gnu.org/software/octave/ | homepage http://www.gnu.org/software/octave/ | ||
master_sites | master_sites gnu:octave | ||
dist_subdir octave | dist_subdir octave | ||
distname octave-${version} | distname octave-${version} | ||
checksums md5 | checksums md5 6e4717edea2f64900071a46ba49948c0 \ | ||
sha1 | sha1 65592138d92eb5db2d15425f9e6c5ffe258cae48 \ | ||
rmd160 | rmd160 26b55a770b5c622aa1209558b674e9f33092d610 | ||
depends_build port:bison \ | depends_build port:bison \ | ||
Line 53: | Line 53: | ||
port:hdf5-18 \ | port:hdf5-18 \ | ||
port:less \ | port:less \ | ||
port:metis \ | |||
port:ncurses \ | port:ncurses \ | ||
port:pcre \ | port:pcre \ | ||
Line 73: | Line 74: | ||
configure.args --disable-dependency-tracking \ | configure.args --disable-dependency-tracking \ | ||
--without-x \ | --without-x \ | ||
--with-framework-carbon \ | |||
--disable-docs \ | |||
--with-cholmod="-lcholmod" | --with-cholmod="-lcholmod" | ||
Line 84: | Line 87: | ||
configure.awk ${prefix}/bin/gawk | configure.awk ${prefix}/bin/gawk | ||
configure.env-append GREP="${prefix}/bin/grep" \ | configure.env-append GREP="${prefix}/bin/grep" \ | ||
FLTK_CONFIG=no \ | |||
SED="${prefix}/bin/gsed" \ | SED="${prefix}/bin/gsed" \ | ||
TEXI2DVI="${prefix}/bin/texi2dvi" \ | TEXI2DVI="${prefix}/bin/texi2dvi" \ | ||
Line 90: | Line 94: | ||
configure.cxxflags -O0 -ggdb3 -D_THREAD_SAFE -pthread -gstabs | configure.cxxflags -O0 -ggdb3 -D_THREAD_SAFE -pthread -gstabs | ||
configure.cflags -O0 -ggdb3 -D_THREAD_SAFE -pthread -gstabs | configure.cflags -O0 -ggdb3 -D_THREAD_SAFE -pthread -gstabs | ||
configure.fflags -O0 -ggdb3 -D_THREAD_SAFE -pthread -gstabs | configure.fflags -O0 -ggdb3 -D_THREAD_SAFE -pthread -gstabs -funroll-loops | ||
configure.ldflags -pthread | configure.ldflags -D_THREAD_SAFE -pthread | ||
test.run yes | test.run yes | ||
Line 115: | Line 119: | ||
variant accelerate description {use BLAS from Apple's Accelerate.framework} conflicts atlas { | variant accelerate description {use BLAS from Apple's Accelerate.framework} conflicts atlas { | ||
depends_lib-append port:dotwrp | depends_lib-append port:dotwrp | ||
configure.args-append --with-blas="-ldotwrp | configure.args-append --with-blas="-ldotwrp -framework Accelerate" | ||
configure.args-append --with-lapack=" | configure.args-append --with-lapack="-framework Accelerate" | ||
} | } | ||
Line 130: | Line 134: | ||
# check for setting the default variant (gcc44) | # check for setting the default variant (gcc44) | ||
if { ![variant_isset gcc43] && ![variant_isset gcc44] && \ | if { ![variant_isset gcc43] && ![variant_isset gcc44] && \ | ||
![variant_isset gcc46] && ![variant_isset g95] } { | |||
default_variants +gcc45 | |||
default_variants + | |||
} | } | ||
Line 139: | Line 142: | ||
![variant_isset gcc45] && ![variant_isset gcc46] && \ | ![variant_isset gcc45] && ![variant_isset gcc46] && \ | ||
![variant_isset g95] } { | ![variant_isset g95] } { | ||
error "You | pre-fetch { | ||
error "You must select one of the compiler variants." | |||
} | |||
} | } | ||
Line 155: | Line 160: | ||
if {${gcc_version} != ""} { | if {${gcc_version} != ""} { | ||
set gcc_version_join [join [split ${gcc_version} "."] ""] | set gcc_version_join [join [split ${gcc_version} "."] ""] | ||
configure.ldflags "${prefix}/lib/gcc${gcc_version_join}/libstdc++.6.dylib | configure.ldflags "${prefix}/lib/gcc${gcc_version_join}/libstdc++.6.dylib" | ||
depends_build-append port:gcc${gcc_version_join} | depends_build-append port:gcc${gcc_version_join} | ||
configure.compiler macports-gcc-${gcc_version} | configure.compiler macports-gcc-${gcc_version} | ||
} | |||
variant docs description {Enable creation and installation of documentation} { | |||
depends_run-append port:texlive-basic | |||
configure.args-replace s|--disable-docs|--enable-docs| | |||
} | } | ||
edits