Editing Prototype MacPorts PortFile
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 3: | Line 3: | ||
This prototype [http://www.macports.org/ MacPorts] portfile is intended to be used to produce a [[Create_a_MacOS_X_App_Bundle_Using_MacPorts|Octave App bundle for MacOS X]]. Before using it, please verify that the ''version'' number of Octave is correct. If a change is made to the file, it is recommended that the ''revision'' number be incremented to ensure that MacPorts recognizes that the port is outdated and in need of being upgraded. | This prototype [http://www.macports.org/ MacPorts] portfile is intended to be used to produce a [[Create_a_MacOS_X_App_Bundle_Using_MacPorts|Octave App bundle for MacOS X]]. Before using it, please verify that the ''version'' number of Octave is correct. If a change is made to the file, it is recommended that the ''revision'' number be incremented to ensure that MacPorts recognizes that the port is outdated and in need of being upgraded. | ||
This portfile deviates significantly from the Octave portfile provided by MacPorts. Specifically, this portfile has fltk-devel, epstool, pstoedit, and transfig as required dependencies. In addition, METIS has been removed, as it's license is not compatible with GPL | This portfile deviates significantly from the Octave portfile provided by MacPorts. Specifically, this portfile has fltk-devel, epstool, pstoedit, and transfig as required dependencies. In addition, METIS has been removed, as it's license is not compatible with GPL. | ||
<nowiki># -*- 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 | <nowiki># -*- 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 | # $Id$ | ||
PortSystem 1.0 | PortSystem 1.0 | ||
name octave-local | name octave-local | ||
version 3. | version 3.7.0+ | ||
revision | revision 7 | ||
conflicts octave | conflicts octave octave-devel | ||
categories math science | categories math science | ||
maintainers michaelld openmaintainer | maintainers michaelld openmaintainer | ||
platforms darwin | platforms darwin | ||
description a Matlab-like environment for numerical analysis | description a Matlab-like environment for numerical analysis | ||
long_description Octave provides a convenient command line interface \ | long_description Octave provides a convenient command line interface \ | ||
Line 28: | Line 26: | ||
homepage http://www.gnu.org/software/octave/ | homepage http://www.gnu.org/software/octave/ | ||
master_sites gnu | master_sites http://alpha.gnu.org/gnu/octave/ | ||
dist_subdir octave | dist_subdir octave | ||
distname octave-${version} | distname octave-${version} | ||
checksums | checksums md5 a9849cbead1c6f02a25a22a3142d1c1c \ | ||
sha1 1ee3fcdfcdcea91b4859191f8e4664ca7965943f \ | |||
rmd160 2136309873c105bd9b06e01ed5726a4a281074f4 | |||
depends_build port:bison \ | depends_build port:bison \ | ||
Line 41: | Line 39: | ||
port:gperf \ | port:gperf \ | ||
port:grep \ | port:grep \ | ||
port:gsed \ | |||
path:bin/perl:perl5 \ | path:bin/perl:perl5 \ | ||
port:texinfo | port:texinfo | ||
depends_lib port:curl \ | depends_lib port:arpack \ | ||
port:curl \ | |||
port:fftw-3 \ | port:fftw-3 \ | ||
port:fftw-3-single \ | port:fftw-3-single \ | ||
port:ftgl \ | port:ftgl \ | ||
port:fltk-devel \ | |||
port:ghostscript \ | port:ghostscript \ | ||
port:glpk \ | port:glpk \ | ||
port:GraphicsMagick \ | port:GraphicsMagick \ | ||
port:gnuplot \ | port:gnuplot \ | ||
port:hdf5-18 \ | port:hdf5-18 \ | ||
port:less \ | port:less \ | ||
port:ncurses \ | port:ncurses \ | ||
port:pcre \ | port:pcre \ | ||
port:readline \ | |||
port:qhull \ | port:qhull \ | ||
port:qrupdate \ | port:qrupdate \ | ||
port:SuiteSparse | port:SuiteSparse | ||
depends_run port:epstool \ | depends_run port:epstool \ | ||
port:transfig \ | |||
port:pstoedit | port:pstoedit | ||
universal_variant no | universal_variant no | ||
# | # do not use CLANG (yet) | ||
if {${configure.compiler} == "clang"} { | |||
configure.compiler llvm-gcc-4.2 | |||
compiler | } | ||
configure.args --disable-dependency-tracking \ | configure.args --disable-dependency-tracking \ | ||
--without-x \ | --without-x \ | ||
--with-cholmod="-lcholmod" | |||
--with-cholmod="-lcholmod | |||
# octave uses a number of other ports to create sources from template: | # octave uses a number of other ports to create sources from template: | ||
Line 95: | Line 86: | ||
configure.awk ${prefix}/bin/gawk | configure.awk ${prefix}/bin/gawk | ||
configure.env-append GREP="${prefix}/bin/grep" \ | configure.env-append GREP="${prefix}/bin/grep" \ | ||
SED="${prefix}/bin/gsed" \ | SED="${prefix}/bin/gsed" \ | ||
TEXI2DVI="${prefix}/bin/texi2dvi" \ | TEXI2DVI="${prefix}/bin/texi2dvi" \ | ||
TEXI2PDF="${prefix}/bin/texi2pdf | TEXI2PDF="${prefix}/bin/texi2pdf" | ||
configure.cppflags -D_THREAD_SAFE -pthread | |||
configure.cppflags | configure.cxxflags -O0 -ggdb3 -D_THREAD_SAFE -pthread -gstabs | ||
configure. | configure.cflags -O0 -ggdb3 -D_THREAD_SAFE -pthread -gstabs | ||
configure.fflags -O0 -ggdb3 -D_THREAD_SAFE -pthread -gstabs | |||
configure.ldflags -pthread | |||
test.run yes | test.run yes | ||
test.target check | test.target check | ||
variant gcc43 description {build with the macports gcc43 toolchain} conflicts gcc46 gcc45 gcc44 g95 {} | |||
} | |||
} | |||
variant | variant gcc44 description {build with the macports gcc44 toolchain} conflicts gcc46 gcc45 gcc43 g95 {} | ||
variant | variant gcc45 description {build with the macports gcc45 toolchain} conflicts gcc46 gcc44 gcc43 g95 {} | ||
variant | variant gcc46 description {build with the macports gcc45 toolchain} conflicts gcc45 gcc44 gcc43 g95 {} | ||
variant | variant g95 description {build with g95} conflicts gcc43 gcc44 gcc45 gcc46 { | ||
depends_build-append port:g95 | depends_build-append port:g95 | ||
configure.f77 "${prefix}/bin/g95" | configure.f77 "${prefix}/bin/g95" | ||
Line 167: | Line 130: | ||
# default found in the 'atlas' port (but, this is not checked for). | # default found in the 'atlas' port (but, this is not checked for). | ||
# check for setting the default variant ( | # check for setting the default variant (gcc44) | ||
if { ![variant_isset gcc43] && ![variant_isset gcc44] && \ | |||
if { | |||
![variant_isset gcc45] && ![variant_isset gcc46] && \ | ![variant_isset gcc45] && ![variant_isset gcc46] && \ | ||
![variant_isset g95] } { | ![variant_isset g95] } { | ||
default_variants + | default_variants +gcc44 | ||
} | } | ||
# check if the user disabled just the default variant: - | # check if the user disabled just the default variant: -gcc44 | ||
if { ![variant_isset gcc43] && ![variant_isset gcc44] && \ | |||
if { | |||
![variant_isset gcc45] && ![variant_isset gcc46] && \ | ![variant_isset gcc45] && ![variant_isset gcc46] && \ | ||
![variant_isset g95] } { | ![variant_isset g95] } { | ||
error "You cannot use the variant -gcc44 alone." | |||
} | } | ||
Line 196: | Line 153: | ||
} elseif {[variant_isset gcc46]} { | } elseif {[variant_isset gcc46]} { | ||
set gcc_version "4.6" | set gcc_version "4.6" | ||
} | } | ||
if {${gcc_version} != ""} { | if {${gcc_version} != ""} { | ||
set gcc_version_join [join [split ${gcc_version} "."] ""] | set gcc_version_join [join [split ${gcc_version} "."] ""] | ||
configure.ldflags | configure.ldflags "${prefix}/lib/gcc${gcc_version_join}/libstdc++.6.dylib -pthread" | ||
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} | ||
} | } | ||
Line 221: | Line 165: | ||
configure.args-replace s|--without-x|--with-x| | configure.args-replace s|--without-x|--with-x| | ||
configure.args-append --x-includes=${prefix} | configure.args-append --x-includes=${prefix} | ||
} | } | ||
Line 231: | Line 170: | ||
livecheck.url http://www.gnu.org/software/octave/news.html | livecheck.url http://www.gnu.org/software/octave/news.html | ||
livecheck.regex Version (\\d+(\\.\\d+)*) | livecheck.regex Version (\\d+(\\.\\d+)*) | ||
</nowiki> | </nowiki> | ||
[[Category:Outdated pages]] | [[Category:Outdated pages]] |