Ticket #55278: portfile-webkit2gtkdevel.patch

File portfile-webkit2gtkdevel.patch, 6.7 KB (added by kencu (Ken), 7 years ago)
  • Portfile

    old new  
    2727#                    sha256  ae1311360a5b54fb01596057986e9a9be07f34ed176d8777e4f2b9d39c2b4f53
    2828
    2929# version needs to come after github.setup
    30 version             2.15.1
    31 revision            2
     30version             2.19.1
    3231epoch               1
    3332
    3433master_sites        http://webkitgtk.org/releases/
     
    3635distname            webkitgtk-${version}
    3736dist_subdir         webkit-gtk
    3837
    39 checksums           rmd160  64b5c995f10582cec4a53ea1ac9ed94f52b518cb \
    40                     sha256  43b57d79d636a76f6ee3fbcf2a7e63aba7b86931b2113fa8dd59ca674f95ed80
     38checksums           rmd160  1bab07a376cfae4996a8816f0248fd5f63dcd806 \
     39                    sha256  9f78555486ea11d53c90394da4d38a7d5b06e76d5b563182a4ed8326adc4cce5
    4140
    4241# don't overwrite build dependencies provided by cmake portgroup
    4342depends_build-append \
     
    6261                    port:gstreamer1-gst-plugins-bad \
    6362                    port:gstreamer1-gst-plugins-base \
    6463                    port:gstreamer1-gst-plugins-good \
     64                    port:gstreamer010-gst-plugins-gl \
    6565                    port:gtk3 \
    6666                    port:harfbuzz-icu \
    6767                    port:hyphen \
     
    7474                    port:libxslt \
    7575                    port:sqlite3 \
    7676                    port:webp \
    77                     port:zlib
     77                    port:zlib \
     78                    port:brotli \
     79                    port:woff2
    7880
    79 # PR-152650-2.patch: WIP to re-enable gtk-doc support
    8081# PR-157554.patch: https://bugs.webkit.org/show_bug.cgi?id=157554
     82# 2.19.1 -- patch fails to appy
     83# patchfiles-append  PR-157554.patch
     84
     85
    8186# PR-157574.patch: https://bugs.webkit.org/show_bug.cgi?id=157574
    82 patchfiles-append \
    83     PR-157554.patch \
    84     PR-157574.patch
     87# 2.19.1 - patch fails to apply
     88# patchfiles-append  PR-157574.patch
    8589
    8690# Build out-of-tree
    8791configure.post_args     ../${worksrcdir}
     
    9599    -DENABLE_MINIBROWSER=OFF \
    96100    -DENABLE_PLUGIN_PROCESS_GTK2=OFF \
    97101    -DENABLE_VIDEO=ON
     102   
    98103
    99104# TODO: File a bug about this not working
    100105configure.args-append -DENABLE_GTKDOC=OFF
     
    115120    }
    116121}
    117122
    118 post-configure {
    119     # https://bugs.webkit.org/show_bug.cgi?id=153176
    120     reinplace {s|\.\./\.\./lib/libWTFGTK\.a||} \
    121         ${build.dir}/Source/WebKit2/CMakeFiles/WebKit2.dir/link.txt
    122     reinplace {s|\.\./\.\./lib/libbmalloc\.a||} \
    123         ${build.dir}/Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/link.txt
    124     reinplace {s|[\./]*\.\./lib/lib[^\.]*\.a||g} \
    125         ${build.dir}/Source/JavaScriptCore/CMakeFiles/LLIntOffsetsExtractor.dir/link.txt \
    126         ${build.dir}/Source/JavaScriptCore/shell/CMakeFiles/jsc.dir/link.txt \
    127         ${build.dir}/Source/JavaScriptCore/shell/CMakeFiles/testb3.dir/link.txt \
    128         ${build.dir}/Source/WebKit2/CMakeFiles/DatabaseProcess.dir/link.txt \
    129         ${build.dir}/Source/WebKit2/CMakeFiles/NetworkProcess.dir/link.txt \
    130         ${build.dir}/Source/WebKit2/CMakeFiles/webkit2gtkinjectedbundle.dir/link.txt \
    131         ${build.dir}/Source/WebKit2/CMakeFiles/WebProcess.dir/link.txt
    132     if {[variant_isset x11]} {
    133         # ENABLE_PLUGIN_PROCESS is only enabled with +x11
    134         reinplace {s|[\./]*\.\./lib/lib[^\.]*\.a||g} \
    135             ${build.dir}/Source/WebKit2/CMakeFiles/PluginProcess.dir/link.txt
    136 
    137         if {[variant_isset gtk2]} {
    138             reinplace {s|\.\./\.\./lib/libWTFGTK\.a||} \
    139                 ${build.dir}/Source/WebKit2/CMakeFiles/WebKitPluginProcess2.dir/link.txt
    140             reinplace {s|-Wl,-all_load||g} \
    141                 ${build.dir}/Source/WebKit2/CMakeFiles/WebKitPluginProcess2.dir/link.txt
    142         }
    143     }
    144     if {[variant_isset minibrowser]} {
    145         reinplace {s|[\./]*\.\./lib/lib[^\.]*\.a||g} \
    146             ${build.dir}/Tools/MiniBrowser/gtk/CMakeFiles/MiniBrowser.dir/link.txt
    147     }
    148 
    149     # https://bugs.webkit.org/show_bug.cgi?id=153192
    150     reinplace {s|\.\./\.\./lib/libWTFGTK\.a|-Wl,-all_load ../../lib/libWTFGTK.a|} \
    151         ${build.dir}/Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/link.txt
    152 }
     123# post-configure {
     124#     # https://bugs.webkit.org/show_bug.cgi?id=153176
     125#     reinplace {s|\.\./\.\./lib/libWTFGTK\.a||} \
     126#         ${build.dir}/Source/WebKit2/CMakeFiles/WebKit2.dir/link.txt
     127#     reinplace {s|\.\./\.\./lib/libbmalloc\.a||} \
     128#         ${build.dir}/Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/link.txt
     129#     reinplace {s|[\./]*\.\./lib/lib[^\.]*\.a||g} \
     130#         ${build.dir}/Source/JavaScriptCore/CMakeFiles/LLIntOffsetsExtractor.dir/link.txt \
     131#         ${build.dir}/Source/JavaScriptCore/shell/CMakeFiles/jsc.dir/link.txt \
     132#         ${build.dir}/Source/JavaScriptCore/shell/CMakeFiles/testb3.dir/link.txt \
     133#         ${build.dir}/Source/WebKit2/CMakeFiles/DatabaseProcess.dir/link.txt \
     134#         ${build.dir}/Source/WebKit2/CMakeFiles/NetworkProcess.dir/link.txt \
     135#         ${build.dir}/Source/WebKit2/CMakeFiles/webkit2gtkinjectedbundle.dir/link.txt \
     136#         ${build.dir}/Source/WebKit2/CMakeFiles/WebProcess.dir/link.txt
     137#     if {[variant_isset x11]} {
     138#         # ENABLE_PLUGIN_PROCESS is only enabled with +x11
     139#         reinplace {s|[\./]*\.\./lib/lib[^\.]*\.a||g} \
     140#             ${build.dir}/Source/WebKit2/CMakeFiles/PluginProcess.dir/link.txt
     141#
     142#         if {[variant_isset gtk2]} {
     143#             reinplace {s|\.\./\.\./lib/libWTFGTK\.a||} \
     144#                 ${build.dir}/Source/WebKit2/CMakeFiles/WebKitPluginProcess2.dir/link.txt
     145#             reinplace {s|-Wl,-all_load||g} \
     146#                 ${build.dir}/Source/WebKit2/CMakeFiles/WebKitPluginProcess2.dir/link.txt
     147#         }
     148#     }
     149#     if {[variant_isset minibrowser]} {
     150#         reinplace {s|[\./]*\.\./lib/lib[^\.]*\.a||g} \
     151#             ${build.dir}/Tools/MiniBrowser/gtk/CMakeFiles/MiniBrowser.dir/link.txt
     152#     }
     153#
     154#     # https://bugs.webkit.org/show_bug.cgi?id=153192
     155#     reinplace {s|\.\./\.\./lib/libWTFGTK\.a|-Wl,-all_load ../../lib/libWTFGTK.a|} \
     156#         ${build.dir}/Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/link.txt
     157# }
    153158
    154159# https://trac.macports.org/ticket/41560#comment:2
    155160configure.cflags-append     -ftemplate-depth=256
     
    161166
    162167# fix build on older systems
    163168if {${os.platform} eq "darwin" && ${os.major} < 13} {
    164    
     169
     170    # gl cocoa build continues to fail due to use of API not available on darwin 12 or earlier
     171    # so gstreamergl is not available at present for darwin 12 or earlier
     172    configure.args-append -DUSE_GSTREAMER_GL=OFF
     173
     174
    165175    # add dep for newer ruby and spec this for build
    166176    # https://trac.macports.org/ticket/52016
    167177    depends_build-append    port:ruby24