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

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

webkit-gtk: Update clang comment

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