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

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

webkit-gtk: Use freetype as the font backend for +quartz since pango doesn't build (#34086)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 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 92135 2012-04-19 19:51:53Z jeremyhu@macports.org $
3
4PortSystem      1.0
5PortGroup       muniversal 1.0
6
7name            webkit-gtk
8epoch           1
9version         1.6.3
10revision        2
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        glib-2.32.patch
45
46configure.args  \
47        --with-gtk=2.0 \
48        --enable-introspection=no \
49        --disable-svg \
50        --disable-video
51
52# BUILD FIX TODO: clang C++
53# clang has trouble with webkit-1.6.3's C++ as of 2012.04.19
54if {${configure.compiler} == "clang"} {
55    configure.compiler llvm-gcc-4.2
56}
57
58# https://trac.macports.org/ticket/34044
59if {${configure.compiler} == "gcc-4.0" && [vercmp ${xcodeversion} 3.0] >= 0} {
60    configure.compiler gcc-4.2
61}
62
63post-patch {
64    # For some reason, this isn't getting created for some people... ? /shrug
65    file mkdir ${worksrcpath}/DerivedSources
66}
67
68# TODO: fix this for muniversal
69# keep it for debug
70#post-destroot {
71#    file copy ${worksrcpath}/Programs/.libs/GtkLauncher ${destroot}${prefix}/bin
72#}
73
74# see bug #24622
75variant quartz {
76    configure.args-append --with-target=quartz
77    depends_lib-delete port:xorg-libXt
78}
79
80# Doesn't work in 1.6.3, but it should in 1.8.0
81#variant pango description {Use the pango font backend instead of freetype} {
82#    configure.args-append --with-font-backend=pango
83#}
84
85#
86# video is now enabled by default so make the variant no_video
87#
88
89variant video description {Disable HTML5 video support using gstreamer} {
90        depends_lib-append      port:gst-plugins-base
91        configure.args-delete   --disable-video
92}
93
94#
95# add new variant to support gnome_keyring
96#
97
98variant gnome_keyring description {Enable support for gnomekeyring} {
99        depends_lib-append      port:libgnome-keyring
100        configure.args-append   --enable-gnomekeyring
101}
102
103#
104# variant to enable filter support which is disabled by default
105#
106
107variant filters description {Enable support for SVG filters (experimental)} {
108        configure.args-append   --enable-filters
109}
110
111#
112# all svg support (except filters) is enabled by default
113#
114
115variant svg description {Disable all SVG support} {
116        configure.args-delete   --disable-svg
117        configure.args-append   --enable-svg
118}
119
120default_variants +video +svg
121
122livecheck.type  regex
123livecheck.url   http://webkitgtk.org/?page=download
124livecheck.regex webkit-(\[0-9\]+\\.\[0-9\]*\[02468\]\\.\[0-9\]+)
Note: See TracBrowser for help on using the repository browser.