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

Last change on this file since 96097 was 96097, checked in by ryandesign@…, 7 years ago

webkit-gtk: fix build with bison 2.6 (#35348, maintainer timeout)

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