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

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

webkit-gtk: Fix build with gcc-4.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 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 92056 2012-04-16 22:44:54Z 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:xorg-libXt
35       
36depends_build   \
37        port:pkgconfig \
38        port:gtk-doc
39
40patchfiles \
41        case-insensitive.patch \
42        glib-2.32.patch
43
44configure.args  \
45        --with-gtk=2.0 \
46        --enable-introspection=no \
47        --disable-svg \
48        --disable-video
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
56# https://trac.macports.org/ticket/34044
57if {${configure.compiler} == "gcc-4.0" && [vercmp ${xcodeversion} 3.0] >= 0} {
58    configure.compiler gcc-4.2
59}
60
61post-patch {
62    # For some reason, this isn't getting created for some people... ? /shrug
63    file mkdir ${worksrcpath}/DerivedSources
64}
65
66# TODO: fix this for muniversal
67# keep it for debug
68#post-destroot {
69#    file copy ${worksrcpath}/Programs/.libs/GtkLauncher ${destroot}${prefix}/bin
70#}
71
72# see bug #24622
73variant quartz {
74    configure.args-append    --with-font-backend=pango --with-target=quartz
75    depends_lib-delete port:xorg-libXt
76}
77
78#
79# video is now enabled by default so make the variant no_video
80#
81
82variant video description {Disable HTML5 video support using gstreamer} {
83        depends_lib-append      port:gst-plugins-base
84        configure.args-delete   --disable-video
85}
86
87#
88# add new variant to support gnome_keyring
89#
90
91variant gnome_keyring description {Enable support for gnomekeyring} {
92        depends_lib-append      port:libgnome-keyring
93        configure.args-append   --enable-gnomekeyring
94}
95
96#
97# variant to enable filter support which is disabled by default
98#
99
100variant filters description {Enable support for SVG filters (experimental)} {
101        configure.args-append   --enable-filters
102}
103
104#
105# all svg support (except filters) is enabled by default
106#
107
108variant svg description {Disable all SVG support} {
109        configure.args-delete   --disable-svg
110        configure.args-append   --enable-svg
111}
112
113default_variants +video +svg
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.