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

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

webkit-gtk: Fix +quartz build (#34134)

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