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

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

webkit-gtk: Use compiler blacklisting from base

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.8 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 98052 2012-09-24 05:28:44Z jeremyhu@macports.org $
3
4PortSystem      1.0
5PortGroup       muniversal 1.0
6
7name            webkit-gtk
8epoch           1
9version         1.8.3
10revision        1
11description     Apple's WebKit HTML rendering library for GTK+
12long_description ${description}
13maintainers     jeremyhu devans
14categories      www gnome
15platforms       darwin freebsd
16license         LGPL-2+ BSD
17homepage        http://webkitgtk.org/
18master_sites    http://webkitgtk.org/releases/
19
20use_xz          yes
21distname        webkit-${version}
22
23checksums       sha1    ccf567fdfd7fbc63a3340777278e41b17522b80d \
24                rmd160  a25fe7966630d2a0e0926f565e28a9054d446c14 \
25                sha256  ada02d636af61aed38f142d3cded662d141ce71264f624c4eb873621a74cc9e7
26
27depends_lib     \
28        port:gtk2 \
29        port:libsoup \
30        port:icu \
31        port:libxslt \
32        port:libpng \
33        port:sqlite3 \
34        port:enchant \
35        port:xorg-libXt \
36        port:geoclue \
37        port:mesa
38       
39depends_build   \
40        port:pkgconfig \
41        port:gtk-doc
42
43# case-insensitive.patch: https://bugs.webkit.org/show_bug.cgi?id=65811
44# our-icu.patch: No upstream bug report, probably not wanted
45# xrender-check.patch: https://bugs.webkit.org/show_bug.cgi?id=84095
46# quartz.patch: https://bugs.webkit.org/show_bug.cgi?id=84423
47# bison-2.6.patch: No upstream bug (?)
48# tiger.patch: No upstream bug, http://trac.macports.org/ticket/35923
49
50patchfiles \
51        case-insensitive.patch \
52        our-icu.patch \
53        xrender-check.patch \
54        quartz.patch \
55        bison-2.6.patch \
56        tiger.patch
57
58configure.args  \
59        --with-gtk=2.0 \
60        --disable-introspection \
61        --enable-link-prefetch \
62        --enable-image-resizer \
63        --disable-video \
64        --enable-media-statistics \
65        --enable-media-stream \
66        --enable-svg \
67        --enable-geolocation \
68        --enable-webgl \
69        --enable-page-visibility-api \
70        --enable-datagrid \
71        --enable-mathml \
72        --enable-web-timing \
73        --enable-mhtml \
74        --enable-microdata \
75        --enable-mutation-observers
76
77# https://bugs.webkit.org/show_bug.cgi?id=94488
78configure.universal_args-delete --disable-dependency-tracking
79
80# Not enabled because marked as expirimental
81#        --with-accelerated-compositing \
82#        --enable-animation-api \
83#        --enable-register-protocol-handler \
84
85# In 1.8.2:
86# ./Source/WebCore/workers/WorkerContext.h:225: error: 'IDBFactoryBackendInterface' was not declared in this scope
87# https://bugs.webkit.org/show_bug.cgi?id=94495
88#        --enable-indexed-database \
89
90# In 1.8.2:
91# Source/WebCore/platform/gtk/ClipboardGtk.h:46: error: cannot allocate an object of abstract type 'WebCore::ClipboardGtk'
92# https://bugs.webkit.org/show_bug.cgi?id=94496
93#        --enable-data-transfer-items \
94
95# In 1.8.2:
96# AsyncFileSystemCallbacks.h is missing
97# https://bugs.webkit.org/show_bug.cgi?id=94413
98#        --enable-file-system \
99
100# In 1.8.2:
101# Source/WebKit/gtk/webkit/webkitwebview.cpp: In function 'void webkit_web_view_init(WebKitWebView*)':
102# Source/WebKit/gtk/webkit/webkitwebview.cpp:3422: error: cannot allocate an object of abstract type 'WebKit::ChromeClient'
103# ./Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.h:43: note:   because the following virtual functions are pure within 'WebKit::ChromeClient':
104# ./Source/WebCore/page/ChromeClient.h:232: note:       virtual void WebCore::ChromeClient::enumerateChosenDirectory(WebCore::FileChooser*)
105# https://bugs.webkit.org/show_bug.cgi?id=94497
106#        --enable-directory-upload \
107
108# In 1.8.2:
109# ./DerivedSources/webkit/WebKitDOMHTMLMediaElement.h:101: error: 'WebKitDOMUint8Array' has not been declared
110#        --enable-media-source \
111
112# In 1.8.2:
113# ./DerivedSources/webkit/WebKitDOMDOMWindow.h:843: error: expected constructor, destructor, or type conversion before '*' token
114# https://bugs.webkit.org/show_bug.cgi?id=94498
115#        --enable-notifications \
116
117# In 1.8.2:
118# AudioBufferCallback.h is missing
119#        --enable-web-audio \
120
121# In 1.8.2:
122# Source/WebCore/html/ColorInputType.cpp: In member function 'virtual void WebCore::ColorInputType::createShadowSubtree()':
123# Source/WebCore/html/ColorInputType.cpp:119: error: 'class WebCore::HTMLInputElement' has no member named 'shadowRoot'
124# Source/WebCore/html/ColorInputType.cpp: In member function 'WebCore::HTMLElement* WebCore::ColorInputType::shadowColorSwatch() const':
125# Source/WebCore/html/ColorInputType.cpp:188: error: 'class WebCore::HTMLInputElement' has no member named 'shadowRoot'
126# https://bugs.webkit.org/show_bug.cgi?id=94499
127#        --enable-input-color \
128
129# In 1.8.2
130# DerivedSources/WebCore/JSDOMWindow.cpp:6255: error: no matching function for call to 'toJS(JSC::ExecState*&, WebCore::JSDOMGlobalObject*, WebCore::StorageInfo*)'
131# https://bugs.webkit.org/show_bug.cgi?id=94500
132#       --enable-quota \
133
134# We don't want to use the headers from the installed WebKit
135configure.cppflags-delete -I${prefix}/include
136
137autoreconf.env-append ACLOCAL="aclocal -I Source/autotools"
138use_autoreconf  yes
139autoreconf.args -fvi
140
141# BUILD FIX TODO: clang C++
142# clang has trouble with webkit-1.6.3's C++ as of 2012.04.19
143#
144# 1.8.2:
145# ./Source/WebCore/editing/Editor.h:388:18: error: 'willDetachPage' marked 'override' but does not override any member functions
146compiler.blacklist-append clang
147
148# https://trac.macports.org/ticket/34044
149if {[vercmp ${xcodeversion} 3.0] >= 0} {
150    compiler.blacklist-append gcc-4.0
151}
152
153post-patch {
154    # https://bugs.webkit.org/show_bug.cgi?id=88407
155    reinplace "s:echo -n:/bin/echo -n:g" \
156        ${worksrcpath}/Source/WebCore/GNUmakefile.am
157}
158
159# TODO: fix this for muniversal
160# keep it for debug
161#post-destroot {
162#    file copy ${worksrcpath}/Programs/.libs/GtkLauncher ${destroot}${prefix}/bin
163#}
164
165# see bug #24622
166variant quartz {
167    configure.args-append --with-target=quartz
168
169    # TODO: See if this will build with OpenGL.framework
170    configure.args-delete --enable-webgl
171    depends_lib-delete \
172        port:mesa \
173        port:xorg-libXt
174}
175
176variant pango description {Use the pango font backend instead of freetype} {
177    configure.args-append --with-font-backend=pango
178}
179
180variant video description {Enable HTML5 video support using gstreamer} {
181        depends_lib-append      port:gst-plugins-base
182        configure.args-delete   --disable-video
183        configure.args-append   --enable-video-track
184}
185
186variant gnome_keyring description {Enable support for gnomekeyring} {
187        depends_lib-append      port:libgnome-keyring
188        configure.args-append   --enable-gnomekeyring
189}
190
191default_variants +video
192
193platform darwin {
194    if {${os.major} < 10} {
195        depends_build-append      port:python27
196        # https://trac.macports.org/ticket/35793
197        configure.env-append \
198            PYTHON=${prefix}/bin/python2.7
199    }
200}
201
202livecheck.type  regex
203livecheck.url   http://webkitgtk.org/?page=download
204livecheck.regex webkit-(\[0-9\]+\\.\[0-9\]*\[02468\]\\.\[0-9\]+)
Note: See TracBrowser for help on using the repository browser.