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

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

webkit-gtk: Document filed upstream bugs.

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