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

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

webkit-gtk: Don't build with webgl support for quartz

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