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

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

webkit-gtk: Remove dead configure option

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 7.6 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 108654 2013-07-29 18:50:07Z jeremyhu@macports.org $
3
4PortSystem  1.0
5PortGroup   conflicts_build 1.0
6PortGroup   muniversal 1.0
7PortGroup   compiler_blacklist_versions 1.0
8
9name        webkit-gtk
10epoch       2
11version     2.0.4
12description Apple's WebKit HTML rendering library for GTK+
13long_description ${description}
14maintainers jeremyhu devans
15categories  www gnome
16platforms   darwin freebsd
17license     LGPL-2+ BSD
18homepage    http://webkitgtk.org/
19master_sites    http://webkitgtk.org/releases/
20
21use_xz      yes
22distname    webkitgtk-${version}
23
24checksums           sha1    3b9ddbdc61e38b5c8fdd108e891b7db5fb12d55a \
25                    rmd160  19643cac3f53928757a7c3fe8ea33f144a581456 \
26                    sha256  bd1550b7f6e1a55f803efe7d64438163ff6c04f02186002cb81d0c090aac734f
27
28depends_lib \
29        path:lib/pkgconfig/glib-2.0.pc:glib2 \
30        port:enchant \
31        port:geoclue \
32        port:gobject-introspection \
33        port:gtk2 \
34        port:harfbuzz-icu \
35        port:libxslt \
36        port:libpng \
37        port:libsecret \
38        port:libsoup \
39        port:mesa \
40        port:sqlite3 \
41        port:webp \
42        port:xorg-libXt
43
44depends_build   \
45        port:gtk-doc \
46        port:pkgconfig
47
48# case-insensitive.patch: https://bugs.webkit.org/show_bug.cgi?id=65811
49# our-icu.patch: No upstream bug report, probably not wanted
50# ruby-1.8.patch: http://trac.macports.org/ticket/37740
51# ListableHandler.patch: https://trac.macports.org/ticket/37828
52# execinfo.patch: https://trac.macports.org/ticket/37882
53# ppc.patch: https://bugs.webkit.org/show_bug.cgi?id=96005
54# tiger.patch: No upstream bug, http://trac.macports.org/ticket/35923
55
56patchfiles \
57        clang-assertions.patch \
58        case-insensitive.patch \
59        our-icu.patch \
60        execinfo.patch \
61        ruby-1.8.patch \
62        ListableHandler.patch \
63        ppc.patch \
64        tiger.patch
65
66conflicts_build     google-test
67
68# https://trac.macports.org/ticket/36329
69configure.python    /usr/bin/python
70
71configure.args  \
72        --with-gtk=2.0 \
73        --disable-webkit2 \
74        --enable-introspection \
75        --disable-video \
76        --enable-svg \
77        --enable-geolocation \
78        --enable-webgl
79
80# https://bugs.webkit.org/show_bug.cgi?id=94488
81configure.universal_args-delete --disable-dependency-tracking
82
83# gobject-introspection uses g-ir-scanner, which uses $CC from env
84if {[variant_isset universal]} {
85    foreach arch ${configure.universal_archs} {
86        lappend merger_build_args(${arch})     CC='${configure.cc} -arch ${arch}'
87        lappend merger_destroot_args(${arch})  CC='${configure.cc} -arch ${arch}'
88    }
89} else {
90    build.args-append       CC="${configure.cc} ${configure.cc_archflags}"
91    destroot.args-append    CC="${configure.cc} ${configure.cc_archflags}"
92}
93
94# In 1.10.1:
95# Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp: In constructor 'WebCore::FFTFrame::FFTFrame(unsigned int)':
96# Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:48: error: 'm_complexData' was not declared in this scope
97# Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:48: error: 'GstFFTF32Complex' was not declared in this scope
98# Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:48: error: no matching function for call to 'fastNewArray(size_t)'
99# Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:50: error: 'gst_fft_next_fast_length' was not declared in this scope
100# Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:51: error: 'm_fft' was not declared in this scope
101# Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:51: error: 'FALSE' was not declared in this scope
102# Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:51: error: 'gst_fft_f32_new' was not declared in this scope
103# Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:52: error: 'm_inverseFft' was not declared in this scope
104# Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:52: error: 'TRUE' was not declared in this scope
105#        --enable-web-audio \
106
107# We don't want to use the headers from the installed WebKit
108configure.cppflags-delete -I${prefix}/include
109
110# google-test suite build fix
111configure.cppflags-append -DGTEST_USE_OWN_TR1_TUPLE=1
112
113autoreconf.env-append ACLOCAL="aclocal -I Source/autotools"
114use_autoreconf  yes
115autoreconf.args -fvi
116
117# configure checks that we're clang 3.0, gcc 4.7, or better
118compiler.blacklist-append gcc-3.3 gcc-4.0 apple-gcc-4.0 gcc-4.2 apple-gcc-4.2 llvm-gcc-4.2 macports-llvm-gcc-4.2
119compiler.blacklist-append macports-gcc-4.2 macports-gcc-4.3 macports-gcc-4.4 macports-gcc-4.5 macports-gcc-4.6
120compiler.blacklist-append {clang < 300} macports-clang-2.9
121
122if {[string match *clang* ${configure.compiler}]} {
123    configure.cxxflags-append -Wno-c++11-extensions
124}
125
126lappend merger_dont_diff ${prefix}/include/webkitgtk-1.0/webkitdom/WebKitDOMNavigator.h
127
128post-patch {
129    # https://bugs.webkit.org/show_bug.cgi?id=88407
130    reinplace "s:echo -n:/bin/echo -n:g" \
131        ${worksrcpath}/Source/WebCore/GNUmakefile.am
132
133    # https://bugs.webkit.org/show_bug.cgi?id=99683
134    reinplace "s:PLATFORM(MAC):OS(DARWIN):g" \
135        ${worksrcpath}/Source/JavaScriptCore/heap/VTableSpectrum.cpp \
136        ${worksrcpath}/Source/JavaScriptCore/jit/ThunkGenerators.cpp \
137        ${worksrcpath}/Source/JavaScriptCore/tools/CodeProfile.cpp
138
139    # https://bugs.webkit.org/show_bug.cgi?id=58737
140    reinplace "s:OS(MAC_OS_X):PLATFORM(MAC):" \
141        ${worksrcpath}/Source/WTF/wtf/ThreadingPthreads.cpp
142}
143
144# TODO: fix this for muniversal
145# keep it for debug
146#post-destroot {
147#    file copy ${worksrcpath}/Programs/.libs/GtkLauncher ${destroot}${prefix}/bin
148#}
149
150build.args-append V=1
151
152# see bug #24622
153variant quartz {
154    configure.args-append --with-target=quartz
155
156    # TODO: See if this will build with OpenGL.framework
157    configure.args-delete --enable-webgl
158    depends_lib-delete \
159        port:mesa \
160        port:xorg-libXt
161
162    # quartz-include-widgetbackingstorecairo.patch
163    # https://trac.macports.org/ticket/38203
164    # https://bugs.webkit.org/show_bug.cgi?id=111598
165    patchfiles-append quartz-duplicate-symbols.patch \
166                      quartz-include-widgetbackingstorecairo.patch
167}
168
169variant video description {Enable HTML5 video support using gstreamer} {
170        depends_lib-append      port:gstreamer1-gst-plugins-base
171        configure.args-delete   --disable-video
172        configure.args-append   --enable-video
173}
174
175default_variants +video
176
177platform darwin {
178    if {${os.major} < 10} {
179        depends_build-append      port:python27
180        # https://trac.macports.org/ticket/35793
181        configure.python          ${prefix}/bin/python2.7
182    }
183
184    if {[string match "*10.5*" ${configure.sdkroot}] ||
185        (${os.major} == 9 && ${configure.sdkroot} == "")} {
186
187        # https://trac.macports.org/ticket/37418
188        configure.cppflags-append -D__MAC_OS_X_VERSION_MAX_ALLOWED=1050
189    }
190
191    if {[string match "*10.4*" ${configure.sdkroot}] ||
192        (${os.major} == 8 && ${configure.sdkroot} == "")} {
193
194        # https://trac.macports.org/ticket/37828
195        configure.cppflags-append -D__MAC_OS_X_VERSION_MAX_ALLOWED=1040
196    }
197
198    if {$macosx_deployment_target == "10.4" ||
199        (${os.major} == 8 && $macosx_deployment_target == "")} {
200
201        # https://trac.macports.org/ticket/37828
202        configure.cppflags-append -D__MAC_OS_X_VERSION_MIN_REQUIRED=1040
203    }
204}
205
206platform powerpc {
207    # https://trac.macports.org/ticket/37839
208    configure.optflags -Os
209}
210
211livecheck.type  regex
212livecheck.url   http://webkitgtk.org/?page=download
213livecheck.regex webkitgtk-(\[0-9\]+\\.\[0-9\]*\[02468\]\\.\[0-9\]+)
Note: See TracBrowser for help on using the repository browser.