Changeset 144188


Ignore:
Timestamp:
Jan 4, 2016, 8:12:53 AM (3 years ago)
Author:
jeremyhu@…
Message:

webkit-gtk-devel: Obsolete. We have no need for a development version of this port any more

Location:
trunk/dports/www/webkit-gtk-devel
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/www/webkit-gtk-devel/Portfile

    r143225 r144188  
    22# $Id$
    33
    4 # We have an umbrella radar tracking webkit-gtk issues on OS X.  Please relate
    5 # any future issues with this tracker.
    6 # http://bugs.webkit.org/show_bug.cgi?id=126492
    7 
    84PortSystem          1.0
    9 PortGroup           conflicts_build 1.0
    10 PortGroup           muniversal 1.0
    11 PortGroup           compiler_blacklist_versions 1.0
    125
    136name                webkit-gtk-devel
    147epoch               2
    158version             2.4.9
    16 revision            1
    17 description         Apple's WebKit HTML rendering library for GTK+
    18 long_description    ${description}
    19 maintainers         jeremyhu devans
     9revision            2
    2010categories          www gnome
    21 platforms           darwin freebsd
    2211license             LGPL-2+ BSD
    23 homepage            http://webkitgtk.org/
    24 master_sites        http://webkitgtk.org/releases/
    2512
    26 use_xz              yes
    27 distname            webkitgtk-${version}
     13subport webkit-gtk3-devel {}
    2814
    29 dist_subdir         webkit-gtk
    30 
    31 checksums           rmd160  122468435539d69665d5206ae266fb36ff2d86c2 \
    32                     sha256  afdf29e7828816cad0be2604cf19421e96d96bf493987328ffc8813bb20ac564
    33 
    34 depends_build       port:pkgconfig \
    35                     port:gtk-doc \
    36                     port:python27 \
    37                     port:py27-simplejson
    38 
    39 depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
    40                     port:bison \
    41                     port:flex \
    42                     port:enchant \
    43                     port:geoclue2 \
    44                     port:gobject-introspection \
    45                     port:harfbuzz-icu \
    46                     port:icu \
    47                     port:libxslt \
    48                     port:libpng \
    49                     port:libsecret \
    50                     port:libsoup \
    51                     port:mesa \
    52                     port:sqlite3 \
    53                     port:webp \
    54                     port:xorg-libXt
    55 
    56 # case-insensitive.patch: https://bugs.webkit.org/show_bug.cgi?id=65811
    57 # our-icu.patch: No upstream bug report, probably not wanted
    58 # ruby-1.8.patch: https://bugs.webkit.org/show_bug.cgi?id=126327
    59 # quartz-webcore.patch: https://bugs.webkit.org/show_bug.cgi?id=126326
    60 # gstreamer.patch: https://bugs.webkit.org/show_bug.cgi?id=126437
    61 # libedit.patch: https://bugs.webkit.org/show_bug.cgi?id=127059
    62 # leopard-malloc.patch: https://bugs.webkit.org/show_bug.cgi?id=140143
    63 # leopard-platform.patch: https://bugs.webkit.org/show_bug.cgi?id=140143
    64 # remove-cf-available.patch: https://trac.macports.org/ticket/49849
    65 
    66 patchfiles          clang-assertions.patch \
    67                     case-insensitive.patch \
    68                     our-icu.patch \
    69                     ruby-1.8.patch \
    70                     quartz-webcore.patch \
    71                     gstreamer.patch \
    72                     leopard-platform.patch \
    73                     leopard-malloc.patch \
    74                     libedit.patch \
    75                     remove-cf-available.patch
    76 
    77 conflicts_build     google-test
    78 
    79 # https://trac.macports.org/ticket/36329
    80 configure.perl      /usr/bin/perl
    81 configure.python    /usr/bin/python
    82 
    83 # --disable-webkit2: https://bugs.webkit.org/show_bug.cgi?id=126416
    84 # --disable-web-audio: https://bugs.webkit.org/show_bug.cgi?id=126438
    85 # --disable-jit: https://bugs.webkit.org/show_bug.cgi?id=133293
    86 configure.args      --disable-webkit2 \
    87                     --disable-web-audio \
    88                     --enable-x11-target=yes \
    89                     --enable-quartz-target=no \
    90                     --enable-wayland-target=no \
    91                     --enable-introspection \
    92                     --disable-video \
    93                     --enable-svg \
    94                     --enable-geolocation \
    95                     --enable-webgl \
    96                     --disable-jit
    97 
    98 platform darwin {
    99     pre-configure {
    100         if {${configure.cxx_stdlib} eq "libstdc++"} {
    101             ui_error "${subport} is not supported for this installation of MacPorts.  It requires libc++ be selected as your C++ runtime.  Please use ${subport}-2.0 instead"
    102             error "unsupported configuration"
    103         }
    104     }
     15if {${subport} eq "webkit-gtk-devel"} {
     16    conflicts webkit-gtk webkit-gtk-2.0
     17    replaced_by         webkit-gtk
     18} elseif {${subport} eq "webkit-gtk3-devel"} {
     19    conflicts webkit-gtk3 webkit-gtk3-2.0
     20    replaced_by         webkit-gtk3
    10521}
    10622
    107 subport webkit-gtk3-devel {
    108     conflicts webkit-gtk3 webkit-gtk3-2.0
    109     depends_lib-append      port:gtk3
    110     configure.args-append   --with-gtk=3.0
     23PortGroup           obsolete 1.0
    11124
    112 #
    113 # move gtk-docs to allow parallel install with webkit-gtk
    114 #
    115     if {[variant_isset universal]} {
    116 #
    117 # using diff to merge derived include files sometimes
    118 # results in a corrupted file due to nested /* */ blocks
    119 #
    120         global merger_dont_diff
    121         set merger_dont_diff    "${prefix}/include/webkitgtk-3.0/webkitdom/WebKitDOMNavigator.h"
    122         merger-post-destroot {
    123             foreach arch ${universal_archs_to_use} {
    124                 set docpath ${workpath}/destroot-${arch}${prefix}/share/gtk-doc/html
    125                 move ${docpath}/webkitgtk ${docpath}/webkitgtk3
    126                 move ${docpath}/webkitdomgtk ${docpath}/webkitdomgtk3
    127                 move ${docpath}/webkitgtk3/webkitgtk.devhelp2 ${docpath}/webkitgtk3/webkitgtk3.devhelp2
    128             }
    129         }
    130     } else {
    131         post-destroot {
    132            set docpath ${destroot}${prefix}/share/gtk-doc/html
    133            move ${docpath}/webkitgtk ${docpath}/webkitgtk3
    134            move ${docpath}/webkitdomgtk ${docpath}/webkitdomgtk3
    135            move ${docpath}/webkitgtk3/webkitgtk.devhelp2 ${docpath}/webkitgtk3/webkitgtk3.devhelp2
    136         }
    137     }
    138 }
    139 
    140 if {${name} eq ${subport}} {
    141     conflicts webkit-gtk webkit-gtk-2.0
    142     depends_lib-append      port:gtk2
    143     configure.args-append   --with-gtk=2.0
    144 }
    145 
    146 # https://bugs.webkit.org/show_bug.cgi?id=94488
    147 configure.universal_args-delete --disable-dependency-tracking
    148 
    149 # configure checks that we're clang 3.2, gcc 4.7, or better
    150 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
    151 compiler.blacklist-append macports-gcc-4.2 macports-gcc-4.3 macports-gcc-4.4 macports-gcc-4.5 macports-gcc-4.6
    152 compiler.blacklist-append {clang < 425}
    153 
    154 # gobject-introspection uses g-ir-scanner, which uses $CC from env
    155 if {[variant_isset universal]} {
    156     foreach arch ${configure.universal_archs} {
    157         lappend merger_build_args(${arch})     CC='${configure.cc} -arch ${arch}'
    158         lappend merger_destroot_args(${arch})  CC='${configure.cc} -arch ${arch}'
    159     }
    160 } else {
    161     build.args-append       CC="${configure.cc} ${configure.cc_archflags}"
    162     destroot.args-append    CC="${configure.cc} ${configure.cc_archflags}"
    163 }
    164 
    165 # We don't want to use the headers from the installed WebKit
    166 configure.cppflags-delete   -I${prefix}/include
    167 
    168 # google-test suite build fix
    169 configure.cppflags-append   -DGTEST_USE_OWN_TR1_TUPLE=1
    170 
    171 # https://trac.macports.org/ticket/41560#comment:2
    172 configure.cflags-append     -ftemplate-depth=256
    173 configure.cxxflags-append   -ftemplate-depth=256
    174 
    175 autoreconf.env-append ACLOCAL="aclocal -I Source/autotools"
    176 use_autoreconf      yes
    177 autoreconf.args     -fvi
    178 
    179 lappend merger_dont_diff ${prefix}/include/webkitgtk-1.0/webkitdom/WebKitDOMNavigator.h
    180 
    181 post-patch {
    182     # https://bugs.webkit.org/show_bug.cgi?id=126433
    183     reinplace "s/def __APPLE__/ 0/" \
    184         ${worksrcpath}/Source/JavaScriptCore/API/WebKitAvailability.h
    185 
    186     # https://bugs.webkit.org/show_bug.cgi?id=58737
    187     reinplace "s:OS(MAC_OS_X):PLATFORM(MAC):" \
    188         ${worksrcpath}/Source/WTF/wtf/ThreadingPthreads.cpp
    189 
    190     # https://bugs.webkit.org/show_bug.cgi?id=126325
    191     reinplace "s:-stdlib=libstdc\+\+::" \
    192         ${worksrcpath}/Source/autotools/SetupCompilerFlags.m4
    193 
    194     # https://bugs.webkit.org/show_bug.cgi?id=126329
    195     # In file included from Source/JavaScriptCore/runtime/JSGlobalObject.cpp:83:
    196     # ./Source/JavaScriptCore/API/ObjCCallbackFunction.h:32:9: fatal error: 'JavaScriptCore/JSCallbackFunction.h' file not found
    197     # #import <JavaScriptCore/JSCallbackFunction.h>
    198     #         ^
    199     reinplace "/^#define JSC_OBJC_API_ENABLED/s/^.*$/#define JSC_OBJC_API_ENABLED 0/" \
    200         ${worksrcpath}/Source/JavaScriptCore/API/JSBase.h
    201 }
    202 
    203 # TODO: fix this for muniversal
    204 # keep it for debug
    205 #post-destroot {
    206 #    file copy ${worksrcpath}/Programs/.libs/GtkLauncher ${destroot}${prefix}/bin
    207 #}
    208 
    209 # Apple's gnumake (patched 3.81) gets wedged at some point during the build process
    210 depends_build-append    port:gmake
    211 build.cmd               ${prefix}/bin/gmake
    212 
    213 build.args-append V=1
    214 
    215 # see bug #24622
    216 variant quartz {
    217     configure.args-replace --enable-x11-target=yes --enable-x11-target=no
    218     configure.args-replace --enable-quartz-target=no --enable-quartz-target=yes
    219     platform darwin {
    220         if {${os.major} >= 13} {
    221             # TODO: File upstream
    222             #       http://trac.macports.org/ticket/41663
    223             configure.args-append --disable-accelerated-compositing
    224         }
    225     }
    226 
    227     # TODO: See if this will build with OpenGL.framework
    228     configure.args-delete --enable-webgl
    229     depends_lib-delete \
    230         port:mesa \
    231         port:xorg-libXt
    232 }
    233 
    234 variant video description {Enable HTML5 video support using gstreamer} {
    235         depends_lib-append      port:gstreamer1-gst-plugins-base
    236         configure.args-delete   --disable-video
    237         configure.args-append   --enable-video
    238 }
    239 
    240 default_variants    +video
    241 
    242 if {[string match *clang* ${configure.cxx}]} {
    243     configure.cxxflags-append -Wno-c++11-extensions
    244 }
    245 
    246 livecheck.type      regex
    247 livecheck.url       http://webkitgtk.org/releases/
    248 livecheck.regex     "webkitgtk-(\\d+(?:\\.\\d+)*)"
Note: See TracChangeset for help on using the changeset viewer.