# -*- 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 # $Id: Portfile 96837 2012-08-19 18:25:31Z blair@macports.org $ PortSystem 1.0 PortGroup muniversal 1.0 name webkit-gtk epoch 1 version 1.8.2 revision 1 description Apple's WebKit HTML rendering library for GTK+ long_description ${description} maintainers devans categories www gnome platforms darwin freebsd license LGPL-2+ BSD homepage http://webkitgtk.org/ master_sites http://webkitgtk.org/releases/ use_xz yes distname webkit-${version} checksums sha1 138f86894e0a7ed0a41c18c4ac30fcaf961d8d79 \ rmd160 e8b3b77143ba8a0711b9ff68872223b7a39af6ce \ sha256 0cd69b7c4bf4af3442a5e6777a1487cabf14db15baeeed96d0865419f69b81e6 depends_lib \ port:gtk2 \ port:libsoup \ port:icu \ port:libxslt \ port:sqlite3 \ port:enchant \ port:xorg-libXt \ port:geoclue \ port:mesa depends_build \ port:pkgconfig \ port:gtk-doc patchfiles \ case-insensitive.patch \ our-icu.patch \ xrender-check.patch \ bison-2.6.patch configure.args \ --with-gtk=2.0 \ --disable-introspection \ --enable-link-prefetch \ --enable-image-resizer \ --disable-video \ --enable-svg \ --enable-geolocation \ --enable-webgl \ --enable-page-visibility-api \ --enable-datagrid \ --enable-mathml \ --enable-web-timing \ --enable-mhtml \ --enable-microdata \ --enable-mutation-observers # Not enabled because marked as expirimental # --with-accelerated-compositing \ # --enable-animation-api \ # --enable-register-protocol-handler \ # In 1.8.2: # ./Source/WebCore/workers/WorkerContext.h:225: error: 'IDBFactoryBackendInterface' was not declared in this scope # --enable-indexed-database \ # In 1.8.2: # Source/WebCore/platform/gtk/ClipboardGtk.h:46: error: cannot allocate an object of abstract type 'WebCore::ClipboardGtk' # --enable-data-transfer-items \ # In 1.8.2: # AsyncFileSystemCallbacks.h is missing # https://bugs.webkit.org/show_bug.cgi?id=94413 # --enable-file-system \ # In 1.8.2: # Source/WebKit/gtk/webkit/webkitwebview.cpp: In function 'void webkit_web_view_init(WebKitWebView*)': # Source/WebKit/gtk/webkit/webkitwebview.cpp:3422: error: cannot allocate an object of abstract type 'WebKit::ChromeClient' # ./Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.h:43: note: because the following virtual functions are pure within 'WebKit::ChromeClient': # ./Source/WebCore/page/ChromeClient.h:232: note: virtual void WebCore::ChromeClient::enumerateChosenDirectory(WebCore::FileChooser*) # --enable-directory-upload \ # In 1.8.2: # ./DerivedSources/webkit/WebKitDOMHTMLMediaElement.h:101: error: 'WebKitDOMUint8Array' has not been declared # --enable-media-source \ # --enable-media-statistics \ # --enable-media-stream \ # In 1.8.2: # ./DerivedSources/webkit/WebKitDOMDOMWindow.h:843: error: expected constructor, destructor, or type conversion before '*' token # --enable-notifications \ # In 1.6.3: # AudioBufferCallback.h is missing # --enable-web-audio \ # In 1.8.2: # Source/WebCore/html/ColorInputType.cpp: In member function 'virtual void WebCore::ColorInputType::createShadowSubtree()': # Source/WebCore/html/ColorInputType.cpp:119: error: 'class WebCore::HTMLInputElement' has no member named 'shadowRoot' # Source/WebCore/html/ColorInputType.cpp: In member function 'WebCore::HTMLElement* WebCore::ColorInputType::shadowColorSwatch() const': # Source/WebCore/html/ColorInputType.cpp:188: error: 'class WebCore::HTMLInputElement' has no member named 'shadowRoot' # --enable-input-color \ # In 1.8.2 # DerivedSources/WebCore/JSDOMWindow.cpp:6255: error: no matching function for call to 'toJS(JSC::ExecState*&, WebCore::JSDOMGlobalObject*, WebCore::StorageInfo*)' # --enable-quota \ # We don't want to use the headers from the installed WebKit configure.cppflags-delete -I${prefix}/include autoreconf.env-append ACLOCAL="aclocal -I Source/autotools" use_autoreconf yes autoreconf.args -fvi # BUILD FIX TODO: clang C++ # clang has trouble with webkit-1.6.3's C++ as of 2012.04.19 # # 1.8.2: # ./Source/WebCore/editing/Editor.h:388:18: error: 'willDetachPage' marked 'override' but does not override any member functions if {${configure.compiler} == "clang"} { configure.compiler llvm-gcc-4.2 } # https://trac.macports.org/ticket/34044 if {${configure.compiler} == "gcc-4.0" && [vercmp ${xcodeversion} 3.0] >= 0} { configure.compiler gcc-4.2 } post-patch { # Fix for newer autotools: # http://www.gnu.org/software/automake/manual/html_node/Obsolete-Macros.html reinplace "s/mkdir_p/MKDIR_P/" \ ${worksrcpath}/GNUmakefile.am \ ${worksrcpath}/Source/WebKit/gtk/po/GNUmakefile.am # https://bugs.webkit.org/show_bug.cgi?id=88407 reinplace "s:echo -n:/bin/echo -n:g" \ ${worksrcpath}/Source/WebCore/GNUmakefile.am } # TODO: fix this for muniversal # keep it for debug #post-destroot { # file copy ${worksrcpath}/Programs/.libs/GtkLauncher ${destroot}${prefix}/bin #} # see bug #24622 variant quartz { configure.args-append --with-target=quartz depends_lib-delete port:xorg-libXt } variant pango description {Use the pango font backend instead of freetype} { configure.args-append --with-font-backend=pango } variant video description {Enable HTML5 video support using gstreamer} { depends_lib-append port:gst-plugins-base configure.args-delete --disable-video configure.args-append --enable-video-track } variant gnome_keyring description {Enable support for gnomekeyring} { depends_lib-append port:libgnome-keyring configure.args-append --enable-gnomekeyring } default_variants +video livecheck.type regex livecheck.url http://webkitgtk.org/?page=download livecheck.regex webkit-(\[0-9\]+\\.\[0-9\]*\[02468\]\\.\[0-9\]+)