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

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

webkit-gtk: Add mesa dependency (#35737)

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