source: trunk/dports/www/webkit-gtk/Portfile @ 108755

Last change on this file since 108755 was 108755, checked in by jeremyhu@…, 5 years ago

webkit-gtk: Poke for the builders

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 7.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 108755 2013-08-01 01:50:22Z jeremyhu@macports.org $
3
4
5PortSystem  1.0
6PortGroup   conflicts_build 1.0
7PortGroup   muniversal 1.0
8PortGroup   compiler_blacklist_versions 1.0
9
10name        webkit-gtk
11epoch       2
12version     2.0.4
13description Apple's WebKit HTML rendering library for GTK+
14long_description ${description}
15maintainers jeremyhu devans
16categories  www gnome
17platforms   darwin freebsd
18license     LGPL-2+ BSD
19homepage    http://webkitgtk.org/
20master_sites    http://webkitgtk.org/releases/
21
22use_xz      yes
23distname    webkitgtk-${version}
24
25checksums           sha1    3b9ddbdc61e38b5c8fdd108e891b7db5fb12d55a \
26                    rmd160  19643cac3f53928757a7c3fe8ea33f144a581456 \
27                    sha256  bd1550b7f6e1a55f803efe7d64438163ff6c04f02186002cb81d0c090aac734f
28
29depends_lib \
30        path:lib/pkgconfig/glib-2.0.pc:glib2 \
31        port:enchant \
32        port:geoclue \
33        port:gobject-introspection \
34        port:gtk2 \
35        port:harfbuzz-icu \
36        port:libxslt \
37        port:libpng \
38        port:libsecret \
39        port:libsoup \
40        port:mesa \
41        port:sqlite3 \
42        port:webp \
43        port:xorg-libXt
44
45depends_build   \
46        port:gtk-doc \
47        port:pkgconfig
48
49# case-insensitive.patch: https://bugs.webkit.org/show_bug.cgi?id=65811
50# our-icu.patch: No upstream bug report, probably not wanted
51# ruby-1.8.patch: http://trac.macports.org/ticket/37740
52# ListableHandler.patch: https://trac.macports.org/ticket/37828
53# execinfo.patch: https://trac.macports.org/ticket/37882
54# ppc.patch: https://bugs.webkit.org/show_bug.cgi?id=96005
55# tiger.patch: No upstream bug, http://trac.macports.org/ticket/35923
56
57patchfiles \
58        clang-assertions.patch \
59        case-insensitive.patch \
60        our-icu.patch \
61        execinfo.patch \
62        ruby-1.8.patch \
63        ListableHandler.patch \
64        ppc.patch \
65        tiger.patch
66
67conflicts_build     google-test
68
69# https://trac.macports.org/ticket/36329
70configure.python    /usr/bin/python
71
72configure.args  \
73        --with-gtk=2.0 \
74        --disable-webkit2 \
75        --enable-introspection \
76        --disable-video \
77        --enable-svg \
78        --enable-geolocation \
79        --enable-webgl
80
81# https://bugs.webkit.org/show_bug.cgi?id=94488
82configure.universal_args-delete --disable-dependency-tracking
83
84# gobject-introspection uses g-ir-scanner, which uses $CC from env
85if {[variant_isset universal]} {
86    foreach arch ${configure.universal_archs} {
87        lappend merger_build_args(${arch})     CC='${configure.cc} -arch ${arch}'
88        lappend merger_destroot_args(${arch})  CC='${configure.cc} -arch ${arch}'
89    }
90} else {
91    build.args-append       CC="${configure.cc} ${configure.cc_archflags}"
92    destroot.args-append    CC="${configure.cc} ${configure.cc_archflags}"
93}
94
95# In 1.10.1:
96# Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp: In constructor 'WebCore::FFTFrame::FFTFrame(unsigned int)':
97# Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:48: error: 'm_complexData' was not declared in this scope
98# Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:48: error: 'GstFFTF32Complex' was not declared in this scope
99# Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:48: error: no matching function for call to 'fastNewArray(size_t)'
100# Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:50: error: 'gst_fft_next_fast_length' was not declared in this scope
101# Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:51: error: 'm_fft' was not declared in this scope
102# Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:51: error: 'FALSE' was not declared in this scope
103# Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:51: error: 'gst_fft_f32_new' was not declared in this scope
104# Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:52: error: 'm_inverseFft' was not declared in this scope
105# Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:52: error: 'TRUE' was not declared in this scope
106#        --enable-web-audio \
107
108# We don't want to use the headers from the installed WebKit
109configure.cppflags-delete -I${prefix}/include
110
111# google-test suite build fix
112configure.cppflags-append -DGTEST_USE_OWN_TR1_TUPLE=1
113
114autoreconf.env-append ACLOCAL="aclocal -I Source/autotools"
115use_autoreconf  yes
116autoreconf.args -fvi
117
118# configure checks that we're clang 3.0, gcc 4.7, or better
119compiler.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
120compiler.blacklist-append macports-gcc-4.2 macports-gcc-4.3 macports-gcc-4.4 macports-gcc-4.5 macports-gcc-4.6
121compiler.blacklist-append {clang < 300} macports-clang-2.9
122
123if {[string match *clang* ${configure.compiler}]} {
124    configure.cxxflags-append -Wno-c++11-extensions
125}
126
127lappend merger_dont_diff ${prefix}/include/webkitgtk-1.0/webkitdom/WebKitDOMNavigator.h
128
129post-patch {
130    # https://bugs.webkit.org/show_bug.cgi?id=88407
131    reinplace "s:echo -n:/bin/echo -n:g" \
132        ${worksrcpath}/Source/WebCore/GNUmakefile.am
133
134    # https://bugs.webkit.org/show_bug.cgi?id=99683
135    reinplace "s:PLATFORM(MAC):OS(DARWIN):g" \
136        ${worksrcpath}/Source/JavaScriptCore/heap/VTableSpectrum.cpp \
137        ${worksrcpath}/Source/JavaScriptCore/jit/ThunkGenerators.cpp \
138        ${worksrcpath}/Source/JavaScriptCore/tools/CodeProfile.cpp
139
140    # https://bugs.webkit.org/show_bug.cgi?id=58737
141    reinplace "s:OS(MAC_OS_X):PLATFORM(MAC):" \
142        ${worksrcpath}/Source/WTF/wtf/ThreadingPthreads.cpp
143}
144
145# TODO: fix this for muniversal
146# keep it for debug
147#post-destroot {
148#    file copy ${worksrcpath}/Programs/.libs/GtkLauncher ${destroot}${prefix}/bin
149#}
150
151build.args-append V=1
152
153# see bug #24622
154variant quartz {
155    configure.args-append --with-target=quartz
156
157    # TODO: See if this will build with OpenGL.framework
158    configure.args-delete --enable-webgl
159    depends_lib-delete \
160        port:mesa \
161        port:xorg-libXt
162
163    # quartz-include-widgetbackingstorecairo.patch
164    # https://trac.macports.org/ticket/38203
165    # https://bugs.webkit.org/show_bug.cgi?id=111598
166    patchfiles-append quartz-duplicate-symbols.patch \
167                      quartz-include-widgetbackingstorecairo.patch
168}
169
170variant video description {Enable HTML5 video support using gstreamer} {
171        depends_lib-append      port:gstreamer1-gst-plugins-base
172        configure.args-delete   --disable-video
173        configure.args-append   --enable-video
174}
175
176default_variants +video
177
178platform darwin {
179    if {${os.major} < 10} {
180        depends_build-append      port:python27
181        # https://trac.macports.org/ticket/35793
182        configure.python          ${prefix}/bin/python2.7
183    }
184
185    if {[string match "*10.5*" ${configure.sdkroot}] ||
186        (${os.major} == 9 && ${configure.sdkroot} == "")} {
187
188        # https://trac.macports.org/ticket/37418
189        configure.cppflags-append -D__MAC_OS_X_VERSION_MAX_ALLOWED=1050
190    }
191
192    if {[string match "*10.4*" ${configure.sdkroot}] ||
193        (${os.major} == 8 && ${configure.sdkroot} == "")} {
194
195        # https://trac.macports.org/ticket/37828
196        configure.cppflags-append -D__MAC_OS_X_VERSION_MAX_ALLOWED=1040
197    }
198
199    if {$macosx_deployment_target == "10.4" ||
200        (${os.major} == 8 && $macosx_deployment_target == "")} {
201
202        # https://trac.macports.org/ticket/37828
203        configure.cppflags-append -D__MAC_OS_X_VERSION_MIN_REQUIRED=1040
204    }
205}
206
207platform powerpc {
208    # https://trac.macports.org/ticket/37839
209    configure.optflags -Os
210}
211
212livecheck.type  regex
213livecheck.url   http://webkitgtk.org/?page=download
214livecheck.regex webkitgtk-(\[0-9\]+\\.\[0-9\]*\[02468\]\\.\[0-9\]+)
Note: See TracBrowser for help on using the repository browser.