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

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

webkit-gtk: One more change for the mkdir build failure

  • 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 94184 2012-06-11 19:42:48Z jeremyhu@macports.org $
3
4PortSystem      1.0
5PortGroup       muniversal 1.0
6
7name            webkit-gtk
8epoch           1
9version         1.6.3
10revision        4
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        our-icu.patch \
43        xrender-check.patch \
44        pango.patch \
45        quartz.patch \
46        glib-2.32.patch
47
48configure.args  \
49        --with-gtk=2.0 \
50        --enable-introspection=no \
51        --disable-svg \
52        --disable-video
53
54autoreconf.env-append ACLOCAL="aclocal -I Source/autotools"
55use_autoreconf  yes
56autoreconf.args -fvi
57
58# BUILD FIX TODO: clang C++
59# clang has trouble with webkit-1.6.3's C++ as of 2012.04.19
60if {${configure.compiler} == "clang"} {
61    configure.compiler llvm-gcc-4.2
62}
63
64# https://trac.macports.org/ticket/34044
65if {${configure.compiler} == "gcc-4.0" && [vercmp ${xcodeversion} 3.0] >= 0} {
66    configure.compiler gcc-4.2
67}
68
69post-patch {
70    # Fix for newer autotools:
71    # http://www.gnu.org/software/automake/manual/html_node/Obsolete-Macros.html
72    reinplace "s/mkdir_p/MKDIR_P/" \
73        ${worksrcpath}/GNUMakefile.am \
74        ${worksrcpath}/Source/WebKit/gtk/po/GNUmakefile.am
75}
76
77# TODO: fix this for muniversal
78# keep it for debug
79#post-destroot {
80#    file copy ${worksrcpath}/Programs/.libs/GtkLauncher ${destroot}${prefix}/bin
81#}
82
83# see bug #24622
84variant quartz {
85    configure.args-append --with-target=quartz
86    depends_lib-delete port:xorg-libXt
87}
88
89variant pango description {Use the pango font backend instead of freetype} {
90    configure.args-append --with-font-backend=pango
91}
92
93#
94# video is now enabled by default so make the variant no_video
95#
96
97variant video description {Disable HTML5 video support using gstreamer} {
98        depends_lib-append      port:gst-plugins-base
99        configure.args-delete   --disable-video
100}
101
102#
103# add new variant to support gnome_keyring
104#
105
106variant gnome_keyring description {Enable support for gnomekeyring} {
107        depends_lib-append      port:libgnome-keyring
108        configure.args-append   --enable-gnomekeyring
109}
110
111#
112# variant to enable filter support which is disabled by default
113#
114
115variant filters description {Enable support for SVG filters (experimental)} {
116        configure.args-append   --enable-filters
117}
118
119#
120# all svg support (except filters) is enabled by default
121#
122
123variant svg description {Disable all SVG support} {
124        configure.args-delete   --disable-svg
125        configure.args-append   --enable-svg
126}
127
128default_variants +video +svg
129
130livecheck.type  regex
131livecheck.url   http://webkitgtk.org/?page=download
132livecheck.regex webkit-(\[0-9\]+\\.\[0-9\]*\[02468\]\\.\[0-9\]+)
Note: See TracBrowser for help on using the repository browser.