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

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

webkit-gtk: Bump to 1.8.2 (#32194)

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