Ticket #38682: webkit-gtk.diff

File webkit-gtk.diff, 2.1 KB (added by ryandesign (Ryan Carsten Schmidt), 11 years ago)

working patch

  • Portfile

     
    118118# https://bugs.webkit.org/show_bug.cgi?id=94488
    119119configure.universal_args-delete --disable-dependency-tracking
    120120
     121# configure checks that we're clang 3.0, gcc 4.7, or better
     122compiler.blacklist-append gcc-3.3 gcc-4.0 apple-gcc-4.0 gcc-4.2 apple-gcc-4.2 llvm-gcc-4.2 macports-llvm-gcc-4.2
     123compiler.blacklist-append macports-gcc-4.2 macports-gcc-4.3 macports-gcc-4.4 macports-gcc-4.5 macports-gcc-4.6
     124compiler.blacklist-append {clang < 300} macports-clang-2.9
     125
    121126# gobject-introspection uses g-ir-scanner, which uses $CC from env
    122127if {[variant_isset universal]} {
    123128    foreach arch ${configure.universal_archs} {
     
    152157use_autoreconf  yes
    153158autoreconf.args -fvi
    154159
    155 # configure checks that we're clang 3.0, gcc 4.7, or better
    156 compiler.blacklist-append gcc-3.3 gcc-4.0 apple-gcc-4.0 gcc-4.2 apple-gcc-4.2 llvm-gcc-4.2 macports-llvm-gcc-4.2
    157 compiler.blacklist-append macports-gcc-4.2 macports-gcc-4.3 macports-gcc-4.4 macports-gcc-4.5 macports-gcc-4.6
    158 compiler.blacklist-append {clang < 300} macports-clang-2.9
    159 
    160 if {[string match *clang* ${configure.compiler}]} {
    161     configure.cxxflags-append -Wno-c++11-extensions
    162 }
    163 
    164160lappend merger_dont_diff ${prefix}/include/webkitgtk-1.0/webkitdom/WebKitDOMNavigator.h
    165161
    166162post-patch {
     
    217213        depends_build-append      port:python27
    218214        # https://trac.macports.org/ticket/35793
    219215        configure.python          ${prefix}/bin/python2.7
     216
     217        # https://trac.macports.org/ticket/38682
     218        configure.optflags-append -fno-blocks
    220219    }
    221220
    222221    if {[string match "*10.5*" ${configure.sdkroot}] ||
     
    243242
    244243platform powerpc {
    245244    # https://trac.macports.org/ticket/37839
    246     configure.optflags -Os
     245    configure.optflags-replace -O2 -Os
    247246}
    248247
     248if {[string match *clang* ${configure.compiler}]} {
     249    configure.cxxflags-append -Wno-c++11-extensions
     250}
     251
    249252livecheck.type  regex
    250253livecheck.url   http://webkitgtk.org/?page=download
    251254livecheck.regex webkitgtk-(\[0-9\]+\\.\[0-9\]*\[02468\]\\.\[0-9\]+)