the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: webkit-1.0.2
Version: 1.2.7
Revision: 1
Source: http://webkitgtk.org/webkit-%v.tar.gz
Source-MD5: 25c7e548b65aeb6d83c0182c32ef0927
BuildDepends: <<
atk1 (>= 1.28.0-1),
bison,
cairo (>= 1.8.8-3),
enchant1-dev (>= 1.4.2-1),
fink (>= 0.30.0),
fink-package-precedence,
fontconfig2-dev (>= 2.8.0-4),
flex-devel,
freetype219 (>= 2.3.12-1),
gettext-bin,
gettext-tools,
gperf,
glib2-dev (>= 2.22.0-1),
glitz,
gtk-doc (>= 1.13-5),
gtk+2-dev (>= 2.18.0-1),
intltool40,
libgettext8-dev,
libiconv-dev,
libicu36-dev,
libjpeg8,
libpng14,
libsoup2.4.1-ssl (>= 2.28.0-1),
libxml2 (>= 2.6.30-1),
libxslt,
pango1-xft2-ft219-dev (>= 1.24.5-4),
pixman (>= 0.16.0-1),
pkgconfig (>= 0.23),
sqlite3-dev,
x11-dev
<<
# switch-pmXXX is needed: in perlXXX-core up to perl5.13.1
# so not need any dependency b/c 10.[567] system-perl do have it
Depends: <<
%n-shlibs (= %v-%r),
glib2-shlibs (>= 2.22.0-1)
<<
Conflicts: webkit-1.0.1
Replaces: webkit-1.0.1
BuildDependsOnly: true
GCC: 4.0
PatchFile: %n.patch
PatchFile-MD5: 745ed388c6064fb52c1e89a79e7c17e9
PatchScript: <<
%{default_script}
echo "WebKit is open source software with portions licensed under the LGPL, BSD, and APSL licenses. Complete license and copyright information can be found within the code and in the other LICENSE* files." > LICENSE
perl -pi -e 's/webkit\.pot/\$(DOMAIN).pot/g' GNUmakefile.in WebKit/gtk/po/GNUmakefile.am
mv WebKit/gtk/po/webkit.pot WebKit/gtk/po/webkit-1.0.2.pot
perl -pi -e 's/\$\(no_undefined\)/-no-undefined/' GNUmakefile.in
perl -pi -e 's/\$\(MSGMERGE\) --update/\$\(MSGMERGE\) --update --backup=none/g' GNUmakefile.in
<<
ConfigureParams: <<
--enable-dependency-tracking \
--enable-gtk-doc \
--disable-video \
--disable-jit \
PKG_CONFIG_PATH="%p/lib/glib-2.0/pkgconfig-strict:%p/lib/fontconfig2/lib/pkgconfig:$PKG_CONFIG_PATH" \
XT_CFLAGS=" " XT_LIBS="-L/usr/X11R6/lib -lXt -lX11 -lXrender"
<<
CompileScript: <<
#!/bin/sh -ev
# for new version of flex
export PATH="%p/lib/flex/bin:$PATH"
./configure %c
# mkdir DerivedSources
make -w
make -C WebKit/gtk/docs
fink-package-precedence --prohibit-bdep %n .
<<
InstallScript: <<
make install DESTDIR=%d
make -C WebKit/gtk/docs install DESTDIR=%d
<<
DocFiles: <<
ChangeLog
JavaScriptCore/ChangeLog:ChangeLog.JavaScriptCore
WebCore/ChangeLog:ChangeLog.WebCore
WebKit/gtk/ChangeLog:ChangeLog.WebKit.gtk
WebKit/gtk/po/ChangeLog:ChangeLog.WebKit.gtk.po
LICENSE
JavaScriptCore/icu/LICENSE:LICENSE.JavaScriptCore.icu
WebCore/icu/LICENSE:LICENSE.WebCore.icu
WebCore/LICENSE-APPLE:LICENSE-LGPL-APPLE.WebCore
WebCore/LICENSE-LGPL-2:LICENSE-LGPL-2.WebCore
WebCore/LICENSE-LGPL-2.1:LICENSE-LGPL-2.1.WebCore
WebKit/LICENSE:LICENSE.WebKit
<<
SplitOff: <<
Package: %N-shlibs
Files: lib/libwebkit-1.0.2.dylib
Depends: <<
atk1-shlibs (>= 1.28.0-1),
cairo-shlibs (>= 1.8.8-3),
enchant1-shlibs (>= 1.4.2-1),
fontconfig2-shlibs (>= 2.8.0-4),
freetype219-shlibs (>= 2.3.12-1),
glib2-shlibs (>= 2.22.0-1),
gtk+2-shlibs (>= 2.18.0-1),
libgettext8-shlibs,
libiconv,
libjpeg8-shlibs,
libpng14-shlibs,
libsoup2.4.1-ssl-shlibs (>= 2.28.0-1),
libxml2-shlibs (>= 2.6.30-1),
libxslt-shlibs,
pango1-xft2-ft219-shlibs (>= 1.24.5-4),
sqlite3-shlibs,
x11
<<
Shlibs: %p/lib/libwebkit-1.0.2.dylib 20.0.0 %n (>= 1.2.7-1)
DocFiles: <<
ChangeLog
JavaScriptCore/ChangeLog:ChangeLog.JavaScriptCore
WebCore/ChangeLog:ChangeLog.WebCore
WebKit/gtk/ChangeLog:ChangeLog.WebKit.gtk
WebKit/gtk/po/ChangeLog:ChangeLog.WebKit.gtk.po
LICENSE
JavaScriptCore/icu/LICENSE:LICENSE.JavaScriptCore.icu
WebCore/icu/LICENSE:LICENSE.WebCore.icu
WebCore/LICENSE-APPLE:LICENSE-APPLE.WebCore
WebCore/LICENSE-LGPL-2:LICENSE-LGPL-2.WebCore
WebCore/LICENSE-LGPL-2.1:LICENSE-LGPL-2.1.WebCore
WebKit/LICENSE:LICENSE.WebKit
<<
<<
DescPackaging: <<
Use webkitgtk upstream so we get stable release versioning and
a complete source distro with autotools, etc.
Disable video to avoid gst* dep-chain.
Force use of libtool instead of dolt (would only use dolt on
intel anyway, better to have consistent build on all platforms
for packaging).
Make gettext domain match versioned lib.
webkit_web_view_open() can break on local paths (workaround in
devhelp-0.23-2). See:
https://bugs.webkit.org/show_bug.cgi?id=26588
Need newer bison than 10.4 has. See:
http://trac.webkit.org/wiki/BuildingQtOnLinux#Incompatibleversionofbison
Make extra-sure we get the right libpng. Lots of noise under
libpng14 due to use of deprecated API, which is no longer
available at all in libpng15.
<<
DescPort: <<
fink's libicuXX-dev are just headers and lib-links for apple's
libicu library and only the "correct" one is available for
each OS X version, so libversion-alternatives will "work
correctly" on the local machine at build-time (and we assume
that apple's libs are backward-compatible). But hack configure
to use system icu instead of onboard lib.
If --disable-dependency-tracking, DerivedSources/Lexer.lut.h
is used as target of STDOUT redirect of create_hash_table
script before DerivedSources/ exists (it can be created by
that script, but that's too late!). If dependency-tracking
enabled, dir is created during depfiles or similar mechanism
prior to trying to create a file in it. See:
http://bugs.gentoo.org/show_bug.cgi?format=multiple&id=269765
Need XP_UNIX so that npapi.h doesn't load QuickDraw (we're
doing x11, not native Mac). See:
https://bugs.webkit.org/show_bug.cgi?id=17001
JIT is automatically disabled on some fink platforms (ppc?)
and automatically enabled but fails to compile (unimplemented
internal code) on others (x86_64?), so just scrap it
altogether for simplicity.
For some reason, a few users are not getting the .pot
generated correctly (hardcoded filename instead of using
DOMAIN)--not sure why it does work sometimes! Fix to use our
correct domain. See:
https://bugs.webkit.org/show_bug.cgi?id=30292
Recent glib doesn't publish -lintl, so pass it directly.
Link DumpRenderTree against private convenience lib before
public shared lib to avoid multiply-defined symbols. See:
https://bugs.webkit.org/show_bug.cgi?id=36088
Clang:
fix for JSDOMBinding.h
https://bugs.webkit.org/show_bug.cgi?id=39945
fix for JSC/interpreter/Interpreter.cpp
https://bugs.webkit.org/show_bug.cgi?id=51016
<<
DescDetail: <<
Various parts are licensed under LGPL, BSD, and APSL
<<
Description: Web browser engine based on khtml/kjs
License: OSI-Approved
Homepage: http://webkitgtk.org
Maintainer: Daniel Macks
diff -Nurd -x'*~' webkit-1.2.7.orig/GNUmakefile.in webkit-1.2.7/GNUmakefile.in
--- webkit-1.2.7.orig/GNUmakefile.in 2011-02-07 12:43:44.000000000 -0500
+++ webkit-1.2.7/GNUmakefile.in 2011-08-09 11:00:49.000000000 -0400
@@ -9054,7 +9054,7 @@
$(GEOCLUE_LIBS) \
$(GLIB_LIBS) \
$(GSTREAMER_LIBS) \
- $(GTK_LIBS) \
+ $(GTK_LIBS) -lintl \
$(HILDON_LIBS) \
$(JPEG_LIBS) \
$(LIBSOUP_LIBS) \
@@ -9319,8 +9319,8 @@
$(LIBSOUP_CFLAGS)
Programs_DumpRenderTree_LDADD = \
- libwebkit-1.0.la \
libJavaScriptCore.la \
+ libwebkit-1.0.la \
$(GLOBALDEPS_LIBS) \
$(CAIRO_LIBS) \
$(GTK_LIBS) \
@@ -9340,7 +9340,7 @@
@TARGET_X11_TRUE@ -I$(srcdir)/WebCore/plugins \
@TARGET_X11_TRUE@ -I$(srcdir)/WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj \
@TARGET_X11_TRUE@ $(global_cppflags) \
-@TARGET_X11_TRUE@ $(javascriptcore_cppflags)
+@TARGET_X11_TRUE@ $(javascriptcore_cppflags) -DXP_UNIX
@TARGET_X11_TRUE@TestNetscapePlugin_libtestnetscapeplugin_la_SOURCES = \
@TARGET_X11_TRUE@ WebKitTools/DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit/npapi.h \
diff -Nurd -x'*~' webkit-1.2.7.orig/JavaScriptCore/interpreter/Interpreter.cpp webkit-1.2.7/JavaScriptCore/interpreter/Interpreter.cpp
--- webkit-1.2.7.orig/JavaScriptCore/interpreter/Interpreter.cpp 2011-02-07 12:29:58.000000000 -0500
+++ webkit-1.2.7/JavaScriptCore/interpreter/Interpreter.cpp 2011-08-09 14:07:04.000000000 -0400
@@ -2794,8 +2794,10 @@
vPC += OPCODE_LENGTH(op_get_by_pname);
NEXT_INSTRUCTION();
}
- Identifier propertyName(callFrame, subscript.toString(callFrame));
- result = baseValue.get(callFrame, propertyName);
+ {
+ Identifier propertyName(callFrame, subscript.toString(callFrame));
+ result = baseValue.get(callFrame, propertyName);
+ }
CHECK_FOR_EXCEPTION();
callFrame->r(dst) = result;
vPC += OPCODE_LENGTH(op_get_by_pname);
diff -Nurd -x'*~' webkit-1.2.7.orig/WebCore/bindings/js/JSDOMBinding.h webkit-1.2.7/WebCore/bindings/js/JSDOMBinding.h
--- webkit-1.2.7.orig/WebCore/bindings/js/JSDOMBinding.h 2010-09-10 09:20:32.000000000 -0400
+++ webkit-1.2.7/WebCore/bindings/js/JSDOMBinding.h 2011-08-09 14:07:04.000000000 -0400
@@ -225,7 +225,7 @@
{
if (!node)
return JSC::jsNull();
- if (JSNode* wrapper = getCachedDOMNodeWrapper(exec, node->document(), node))
+ if (JSC::JSCell* wrapper = getCachedDOMNodeWrapper(exec, node->document(), node))
return wrapper;
return createDOMNodeWrapper
}
diff -Nurd -x'*~' webkit-1.2.7.orig/configure webkit-1.2.7/configure
--- webkit-1.2.7.orig/configure 2011-02-07 12:43:44.000000000 -0500
+++ webkit-1.2.7/configure 2011-08-09 13:02:42.000000000 -0400
@@ -16790,7 +16790,7 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dolt supports this host" >&5
$as_echo_n "checking if dolt supports this host... " >&6; }
-dolt_supported=yes
+dolt_supported=no
if test x$DOLT_BASH = x; then
dolt_supported=no
fi
@@ -17206,7 +17206,7 @@
# Check for libpng the way Gtk+ does it
-for l in libpng libpng14 libpng12; do
+for l in libpng14; do
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $l" >&5
$as_echo_n "checking for $l... " >&6; }
if $PKG_CONFIG --exists $l ; then
@@ -17799,7 +17799,7 @@
if test "$with_unicode_backend" = "icu"; then
case "$host" in
- *-*-darwin*)
+ *-*-darwin*-but-not-fink-because-it-has-icu-config)
UNICODE_CFLAGS="-I$srcdir/JavaScriptCore/icu -I$srcdir/WebCore/icu"
UNICODE_LIBS="-licucore"
;;
@@ -17968,7 +17968,7 @@
done
-GETTEXT_PACKAGE=$PACKAGE
+GETTEXT_PACKAGE="${PACKAGE}-1.0.2"
cat >>confdefs.h <<_ACEOF