Ticket #52016: webkit2-gtk-snowleopard-fixes.diff

File webkit2-gtk-snowleopard-fixes.diff, 1.7 KB (added by kenneth.f.cunningham@…, 8 years ago)
  • Portfile

    old new  
    6868                    port:webp \
    6969                    port:zlib
    7070
     71
     72# snow leopard with libc++
     73if {${os.platform} eq "darwin" && ${os.major} == 10 && ${configure.cxx_stdlib} eq "libc++"} {
     74
     75        #snowleopard requires newer ruby to build than the default <https://trac.macports.org/ticket/52016>
     76        depends_build-append \
     77                    port:ruby23
     78
     79}
     80
     81
    7182# PR-152650-2.patch: WIP to re-enable gtk-doc support
    7283# PR-153138.patch: https://bugs.webkit.org/show_bug.cgi?id=153138
    7384# PR-157554.patch: https://bugs.webkit.org/show_bug.cgi?id=157554
     
    7889    PR-157554.patch \
    7990    PR-157574.patch
    8091
     92
     93# snow leopard with libc++
     94if {${os.platform} eq "darwin" && ${os.major} == 10 && ${configure.cxx_stdlib} eq "libc++"} {
     95
     96        #force missing PRId64 type definition on snowleopard <https://trac.macports.org/ticket/52016> <https://bugs.webkit.org/show_bug.cgi?id=156596>
     97        patchfiles-append \
     98                webkit2-gtk-parsedcontent-add-type.diff
     99
     100}
     101
     102
     103
    81104# Build out-of-tree
    82105configure.post_args     ../${worksrcdir}
    83106default configure.dir   {${workpath}/build}
     
    101124    if {![variant_isset quartz] && ![variant_isset x11]} {
    102125        error "Either +x11 or +quartz is required"
    103126    }
     127
     128        # snow leopard with libc++
     129        if {${os.platform} eq "darwin" && ${os.major} == 10 && ${configure.cxx_stdlib} eq "libc++"} {
     130
     131                        # does not build with +x11 <https://trac.macports.org/ticket/52016>
     132                         if {[variant_isset x11]} {
     133                                error "+x11 variant does not build on snowleopard - please use +quartz-x11 instead"
     134                        }
     135       
     136}
     137
     138
    104139}
    105140
    106141post-configure {