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

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

webkit-gtk: Fix build on Leopard

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