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

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

webkit-gtk: Update to version 1.8.3, #35941

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.7 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 97311 2012-09-03 09:14:57Z jeremyhu@macports.org $
3
4PortSystem      1.0
5PortGroup       muniversal 1.0
6
7name            webkit-gtk
8epoch           1
9version         1.8.3
10description     Apple's WebKit HTML rendering library for GTK+
11long_description ${description}
12maintainers     jeremyhu devans
13categories      www gnome
14platforms       darwin freebsd
15license         LGPL-2+ BSD
16homepage        http://webkitgtk.org/
17master_sites    http://webkitgtk.org/releases/
18
19use_xz          yes
20distname        webkit-${version}
21
22checksums       sha1    ccf567fdfd7fbc63a3340777278e41b17522b80d \
23                rmd160  a25fe7966630d2a0e0926f565e28a9054d446c14 \
24                sha256  ada02d636af61aed38f142d3cded662d141ce71264f624c4eb873621a74cc9e7
25
26depends_lib     \
27        port:gtk2 \
28        port:libsoup \
29        port:icu \
30        port:libxslt \
31        port:sqlite3 \
32        port:enchant \
33        port:xorg-libXt \
34        port:geoclue \
35        port:mesa
36       
37depends_build   \
38        port:pkgconfig \
39        port:gtk-doc
40
41# case-insensitive.patch: https://bugs.webkit.org/show_bug.cgi?id=65811
42# our-icu.patch: No upstream bug report, probably not wanted
43# xrender-check.patch: https://bugs.webkit.org/show_bug.cgi?id=84095
44# quartz.patch: https://bugs.webkit.org/show_bug.cgi?id=84423
45# bison-2.6.patch: No upstream bug (?)
46
47patchfiles \
48        case-insensitive.patch \
49        our-icu.patch \
50        xrender-check.patch \
51        quartz.patch \
52        bison-2.6.patch
53
54# https://trac.macports.org/ticket/35793
55configure.env-append \
56        PYTHON=/usr/bin/python
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
146if {${configure.compiler} == "clang"} {
147    configure.compiler llvm-gcc-4.2
148}
149
150# https://trac.macports.org/ticket/34044
151if {${configure.compiler} == "gcc-4.0" && [vercmp ${xcodeversion} 3.0] >= 0} {
152    configure.compiler gcc-4.2
153}
154
155post-patch {
156    # https://bugs.webkit.org/show_bug.cgi?id=88407
157    reinplace "s:echo -n:/bin/echo -n:g" \
158        ${worksrcpath}/Source/WebCore/GNUmakefile.am
159}
160
161# TODO: fix this for muniversal
162# keep it for debug
163#post-destroot {
164#    file copy ${worksrcpath}/Programs/.libs/GtkLauncher ${destroot}${prefix}/bin
165#}
166
167# see bug #24622
168variant quartz {
169    configure.args-append --with-target=quartz
170
171    # TODO: See if this will build with OpenGL.framework
172    configure.args-delete --enable-webgl
173    depends_lib-delete \
174        port:mesa \
175        port:xorg-libXt
176}
177
178variant pango description {Use the pango font backend instead of freetype} {
179    configure.args-append --with-font-backend=pango
180}
181
182variant video description {Enable HTML5 video support using gstreamer} {
183        depends_lib-append      port:gst-plugins-base
184        configure.args-delete   --disable-video
185        configure.args-append   --enable-video-track
186}
187
188variant gnome_keyring description {Enable support for gnomekeyring} {
189        depends_lib-append      port:libgnome-keyring
190        configure.args-append   --enable-gnomekeyring
191}
192
193default_variants +video
194
195livecheck.type  regex
196livecheck.url   http://webkitgtk.org/?page=download
197livecheck.regex webkit-(\[0-9\]+\\.\[0-9\]*\[02468\]\\.\[0-9\]+)
Note: See TracBrowser for help on using the repository browser.