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

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

webkit-gtk: Don't --disable-dependency-tracking (#35749)

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