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

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

webkit-gtk: Address build failure with recent glib changes. Dev timeout, #33957. Also re-fix #22864 while here...

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 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 91895 2012-04-12 22:33:42Z jeremyhu@macports.org $
3
4PortSystem      1.0
5
6name            webkit-gtk
7epoch           1
8version         1.2.7
9revision        1
10description     Apple's WebKit HTML rendering library for GTK+
11long_description ${description}
12maintainers     gmail.com:myschizobuddy devans
13categories      www gnome
14platforms       darwin freebsd
15license     LGPL-2+ BSD
16homepage        http://webkitgtk.org/
17master_sites    ${homepage}
18
19distname        webkit-${version}
20
21checksums       md5     25c7e548b65aeb6d83c0182c32ef0927 \
22                sha1    e9afc573d2459794c3749ba404f2187f9dcc9ed3 \
23                rmd160  f36b3ae05693e0eeb4d1936ceee52b6fe1517e57
24
25patchfiles      patch-WebKitTools-DumpRenderTree-gtk-TestNetscapePlugin-TestNetscapePlugin.cpp.diff \
26                patch-TextBreakIterator.diff\
27                patch-WebCore-config-h.diff \
28                patch-JavaScriptCore-wtf-gobject-GOwnPtr.h.diff \
29                patch-GNUmakefile.in.diff
30
31depends_lib     \
32        port:gtk2 \
33        port:libsoup \
34        port:icu \
35        port:libxslt \
36        port:sqlite3 \
37        port:enchant \
38        port:gst-plugins-base \
39        port:xorg-libXt
40       
41depends_build   \
42        port:pkgconfig \
43        port:gtk-doc
44
45# TODO: Use muniversal, so this is detected per arch
46configure.args  \
47        --enable-jit=no \
48        --enable-introspection=no
49
50# BUILD FIX TODO: clang C++
51# clang has trouble with webkit-1.2.7's C++ as of 2011.06.28
52if {${configure.compiler} == "clang"} {
53    configure.compiler llvm-gcc-4.2
54}
55
56post-patch {
57    reinplace "s|-licucore|-licui18n -licuuc|" ${worksrcpath}/configure
58    reinplace "s|@@CPP@@|${configure.cpp}|" ${worksrcpath}/GNUmakefile.in
59
60    # For some reason, this isn't getting created for some people... ? /shrug
61    file mkdir ${worksrcpath}/DerivedSources
62}
63
64# keep it for debug
65post-destroot {
66    file copy ${worksrcpath}/Programs/.libs/GtkLauncher ${destroot}${prefix}/bin
67}
68
69# see bug #24622
70variant quartz {
71    configure.args-append    --with-font-backend=pango --with-target=quartz
72    depends_lib-delete port:xorg-libXt
73    patchfiles-append  patch-quartz-WebCore-plugins-gtk-gtkxtbin.c.diff \
74                       patch-quartz-WebCore-plugins-gtk-PluginViewGtk.cpp.diff
75}
76
77#
78# video is now enabled by default so make the variant no_video
79#
80
81variant no_video description {Disable HTML5 video support using gstreamer} {
82        depends_lib-delete      port:gst-plugins-base
83        configure.args-append   --disable-video
84}
85
86#
87# add new variant to support gnome_keyring
88#
89
90variant gnome_keyring description {Enable support for gnomekeyring} {
91        depends_lib-append      port:libgnome-keyring
92        configure.args-append   --enable-gnomekeyring
93}
94
95#
96# variant to enable filter support which is disabled by default
97#
98
99variant filters description {Enable support for SVG filters (experimental)} {
100        configure.args-append   --enable-filters
101}
102
103#
104# all svg support (except filters) is enabled by default
105#
106
107variant no_svg description {Disable all SVG support} {
108        configure.args-append   --disable-svg
109}
110
111# compile bug when building 1.2.1 on Tiger,
112# see https://bugs.webkit.org/show_bug.cgi?id=39847
113platform darwin 8 {
114        patchfiles-append patch-JavascriptCore-wtf-FastMalloc.cpp.diff
115}
116
117livecheck.type  regex
118livecheck.url   http://webkitgtk.org/?page=download
119livecheck.regex webkit-(\[0-9\]+\\.\[0-9\]*\[02468\]\\.\[0-9\]+)
Note: See TracBrowser for help on using the repository browser.