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

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

webkit-gtk: Use muniversal to work around a possible bug with static archives growing too large.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 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 91951 2012-04-13 23:58:42Z jeremyhu@macports.org $
3
4PortSystem      1.0
5PortGroup       muniversal 1.0
6
7name            webkit-gtk
8epoch           1
9version         1.6.3
10revision        1
11description     Apple's WebKit HTML rendering library for GTK+
12long_description ${description}
13maintainers     devans
14categories      www gnome
15platforms       darwin freebsd
16license     LGPL-2+ BSD
17homepage        http://webkitgtk.org/
18master_sites    http://webkitgtk.org/releases/
19
20use_xz          yes
21distname        webkit-${version}
22
23checksums       md5     c476d9335419df061510d31e21175df1 \
24                sha1    7df69608ef2ce9dd7328353b4ee34f69271cd43b \
25                rmd160  cc319ffe4c2810663ae05b90e69d9495f5c3f0aa
26
27depends_lib     \
28        port:gtk2 \
29        port:libsoup \
30        port:icu \
31        port:libxslt \
32        port:sqlite3 \
33        port:enchant \
34        port:gst-plugins-base \
35        port:xorg-libXt
36       
37depends_build   \
38        port:pkgconfig \
39        port:gtk-doc
40
41patchfiles \
42        case-insensitive.patch \
43        glib-2.32.patch
44
45configure.args  \
46        --with-gtk=2.0 \
47        --enable-introspection=no \
48        --disable-svg \
49        --disable-video
50
51# BUILD FIX TODO: clang C++
52# clang has trouble with webkit-1.2.7's C++ as of 2011.06.28
53if {${configure.compiler} == "clang"} {
54    configure.compiler llvm-gcc-4.2
55}
56
57post-patch {
58    # For some reason, this isn't getting created for some people... ? /shrug
59    file mkdir ${worksrcpath}/DerivedSources
60}
61
62# TODO: fix this for muniversal
63# keep it for debug
64#post-destroot {
65#    file copy ${worksrcpath}/Programs/.libs/GtkLauncher ${destroot}${prefix}/bin
66#}
67
68# see bug #24622
69variant quartz {
70    configure.args-append    --with-font-backend=pango --with-target=quartz
71    depends_lib-delete port:xorg-libXt
72}
73
74#
75# video is now enabled by default so make the variant no_video
76#
77
78variant video description {Disable HTML5 video support using gstreamer} {
79        depends_lib-append      port:gst-plugins-base
80        configure.args-delete   --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 svg description {Disable all SVG support} {
105        configure.args-delete   --disable-svg
106        configure.args-append   --enable-svg
107}
108
109default_variants +video +svg
110
111livecheck.type  regex
112livecheck.url   http://webkitgtk.org/?page=download
113livecheck.regex webkit-(\[0-9\]+\\.\[0-9\]*\[02468\]\\.\[0-9\]+)
Note: See TracBrowser for help on using the repository browser.