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

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

webkit-gtk: license

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