Ticket #48622: Portfile-octave.diff
File Portfile-octave.diff, 5.1 KB (added by Schamschula (Marius Schamschula), 9 years ago) |
---|
-
Portfile
old new 1 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 1 42558 2015-11-15 17:24:00Z mmoll@macports.org $2 # $Id: Portfile 139469 2015-08-18 01:10:17Z jmr@macports.org $ 3 3 4 4 PortSystem 1.0 5 5 PortGroup active_variants 1.1 … … 8 8 9 9 name octave 10 10 11 version 3.8.2 12 revision 14 11 version 4.0.0 13 12 #conflicts octave-devel 14 13 categories math science 15 14 maintainers michaelld openmaintainer … … 28 27 dist_subdir octave 29 28 distname octave-${version} 30 29 master_sites gnu:octave 31 use_ bzip2yes30 use_xz yes 32 31 33 checksums rmd160 60201b29d368d0c935a34288c227d202ae286c6c\34 sha256 83bbd701aab04e7e57d0d5b8373dd54719bebb64ce0a850e69bf3d7454f33bae32 checksums rmd160 57a4c6a90fbe49ad5268b257a4847788061daa49 \ 33 sha256 cf6be2fac6796fda68971e249c96d026ce4a1b0ed074ce49a5791365a958c474 35 34 36 35 compilers.choose fc f77 f90 37 36 compilers.setup require_fortran 38 37 39 38 depends_build-append \ 39 port:autoconf \ 40 port:automake \ 40 41 port:bison \ 41 42 port:flex \ 42 43 port:gperf \ 44 port:icoutils \ 45 port:librsvg \ 46 port:libtool \ 43 47 path:bin/perl:perl5 \ 44 48 port:pkgconfig 45 49 … … 49 53 port:fftw-3 \ 50 54 port:fftw-3-single \ 51 55 port:gawk \ 56 port:ghostscript \ 57 port:gl2ps \ 52 58 port:glpk \ 53 59 port:gnuplot \ 54 60 port:GraphicsMagick \ … … 66 72 port:texinfo 67 73 68 74 depends_run-append port:epstool \ 69 port:ghostscript \70 75 port:transfig \ 71 76 port:pstoedit 72 77 … … 74 79 75 80 universal_variant no 76 81 77 # Don't link with "-flat_namespace -undefined suppress" 78 # on Mac OS X 10.10 Yosemite and later. 79 80 patchfiles-append patch-yosemite-libtool.diff 81 82 # Fix certain versions of libc++ use of 'pow'; 83 # See also: < http://llvm.org/bugs/show_bug.cgi?id=21083 > 84 # < https://trac.macports.org/ticket/45210 > 85 # Adding in this patch will not hurt when using a working 86 # version of libcxx (< 1101), nor with using libstdcxx 87 # (where _LIBCPP_VERSION is not defined). 88 # 89 # REMINDER: check without this patch when new libcxx 90 # is available, to determine a stopping point for 91 # when this issue was fixed; add that version to 92 # the patch to "mx-inlines.cc". 93 94 patchfiles-append patch-clang-libcxx.diff 95 96 # fix gl2ps renderer interface for compiling using older clang. 97 # See also: < https://trac.macports.org/ticket/44704 > 98 99 patchfiles-append patch-gl2ps_renderer.diff 82 # Patch file from Homebrew 83 patchfiles-append patch-rollup.diff \ 84 osmesa.patch.diff \ 85 patch-libgui-src-octave-dock-widget.cc.diff 100 86 101 87 # common configure arguments 102 88 103 89 configure.args \ 90 --disable-bounds-check \ 104 91 --disable-dependency-tracking \ 105 92 --with-umfpack="-lumfpack -lSuiteSparse" \ 106 -- enable-docs\107 --enable- strict-warning-flags \108 -- disable-silent-rules93 --disable-jit \ 94 --enable-link-all-dependencies \ 95 --enable-docs 109 96 110 97 # when using "hdf5 +mpich", have to manually include 111 98 # "/opt/local/include/mpich-mp". See also: … … 153 140 # See also < http://llvm.org/bugs/show_bug.cgi?id=8971 > 154 141 # < https://trac.macports.org/ticket/40250 >. 155 142 156 compiler.blacklist-append { clang <= 318.0.61 } 143 compiler.blacklist-append { clang <= 318.0.61 } macports-clang-2.9 157 144 158 145 platform darwin { 159 146 if {${os.major} >= 12} { … … 233 220 234 221 variant glgui conflicts x11 description {Enable OpenGL GUI (via FLTK) as the default graphical front-end} { 235 222 236 # for now on OSX 10.11, just use fltk-devel since fltk does not 237 # build; remove this condition with the next fltk release (noted 238 # in that Portfile too). 239 240 if {${os.major} == 15} { 241 depends_lib-append port:fltk-devel 242 } else { 243 depends_lib-append path:lib/libfltk.dylib:fltk 244 } 245 246 depends_lib-append port:fontconfig \ 223 depends_lib-append path:lib/libfltk.dylib:fltk \ 224 port:fontconfig \ 247 225 port:freetype \ 248 226 port:gl2ps 249 227 … … 251 229 252 230 if {[variant_isset glgui]} { 253 231 254 configure.args-append --with-opengl 232 configure.args-append --with-opengl \ 233 --with-framework-opengl 255 234 256 235 } else { 257 236 … … 261 240 262 241 variant gui requires qtgui description {Legacy variant} {} 263 242 264 variant qtgui description {Enable experimentalQt GUI Application} {243 variant qtgui description {Enable Qt GUI Application} { 265 244 266 PortGroup qt4 1.0245 PortGroup qt4 1.0 267 246 depends_lib-append port:qscintilla 268 247 269 248 }