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

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

webkit-gtk: Add additional notes for other patches and bugs. Add myself to maintainers. Add media stream and media statistics.

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