Ticket #48622: Portfile-octave.2.diff
File Portfile-octave.2.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 # Use rollup patch file from Homebrew 83 patchfiles-append patch-rollup.diff \ 84 osmesa.patch.diff 100 85 101 86 # common configure arguments 102 87 103 88 configure.args \ 89 --disable-bounds-check \ 104 90 --disable-dependency-tracking \ 105 91 --with-umfpack="-lumfpack -lSuiteSparse" \ 106 -- enable-docs\107 --enable- strict-warning-flags \108 -- disable-silent-rules92 --disable-jit \ 93 --enable-link-all-dependencies \ 94 --enable-docs 109 95 110 96 # when using "hdf5 +mpich", have to manually include 111 97 # "/opt/local/include/mpich-mp". See also: … … 153 139 # See also < http://llvm.org/bugs/show_bug.cgi?id=8971 > 154 140 # < https://trac.macports.org/ticket/40250 >. 155 141 156 compiler.blacklist-append { clang <= 318.0.61 } 142 compiler.blacklist-append { clang <= 318.0.61 } macports-clang-2.9 157 143 158 144 platform darwin { 159 145 if {${os.major} >= 12} { … … 233 219 234 220 variant glgui conflicts x11 description {Enable OpenGL GUI (via FLTK) as the default graphical front-end} { 235 221 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 \ 222 depends_lib-append path:lib/libfltk.dylib:fltk \ 223 port:fontconfig \ 247 224 port:freetype \ 248 225 port:gl2ps 249 226 … … 251 228 252 229 if {[variant_isset glgui]} { 253 230 254 configure.args-append --with-opengl 231 configure.args-append --with-opengl \ 232 --with-framework-opengl 255 233 256 234 } else { 257 235 … … 261 239 262 240 variant gui requires qtgui description {Legacy variant} {} 263 241 264 variant qtgui description {Enable experimentalQt GUI Application} {242 variant qtgui description {Enable Qt GUI Application} { 265 243 266 PortGroup qt4 1.0244 PortGroup qt4 1.0 267 245 depends_lib-append port:qscintilla 268 246 247 patchfiles-append patch-libgui-src-octave-dock-widget.cc.diff 269 248 } 270 249 271 250 if {[variant_isset qtgui]} {