webkit-1.0.1 stable port information

Package: webkit-1.0.1
Version: r35788
Revision: 2

Source: http://builds.nightly.webkit.org/files/trunk/src/WebKit-%v.tar.bz2
Source-MD5: 012d6fb23253164d055ba344b4cab66e

BuildDepends: <<
atk1 (>= 1.20.0-1),
autoconf,
automake1.10,
cairo (>= 1.6.4-2),
expat1,
fink (>= 0.24.12-1),
flex-devel (>= 2.5.33-1),
fontconfig2-dev (>= 2.4.1-1),
freetype219 (>= 2.3.5-1),
gettext-bin,
gettext-tools,
glib2-dev (>= 2.14.0-1),
glitz,
gperf,
gtk+2-dev (>= 2.12.0-1),
intltool40,
libcurl4 (>= 7.18.2-1),
libgettext3-dev,
libiconv-dev,
libicu36-dev,
libjpeg,
libpng3,
libssh2.1,
libtool2,
libxml2 (>= 2.6.30-1),
libxslt (>= 1.1.22-1),
pango1-xft2-ft219-dev (>= 1.20.5-1),
pixman (>= 0.11.8-1),
pkgconfig,
sqlite3-dev,
system-openssl-dev,
x11-dev,
xft2-dev
<<
Depends: %n-shlibs (= %v-%r)
Conflicts: webkit-1.0.2
Replaces: webkit-1.0.2
BuildDependsOnly: true
GCC: 4.0

PatchFile: %n.patch
PatchFile-MD5: 7acade8657123a261ebe776e493f549d
PatchScript: <<
%{default_script}
echo "WebKit is open source software with portions licensed under the LGPL and BSD licenses. Complete license and copyright information can be found within the code." > LICENSE
<<

ConfigureParams: --with-target=x11 --with-http-backend=curl --with-font-backend=pango --disable-video
NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1

CompileScript: <<
#!/bin/sh -ev
# for new version of flex
PATH="%p/lib/flex/bin:$PATH"

# usual pangocairo stuff
export PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:%p/lib/pkgconfig:$PKG_CONFIG_PATH"

# assure system-openssl ahead of fink's normal pkgs
CPPFLAGS="-I%p/lib/system-openssl/include $CPPFLAGS"
LDFLAGS="-L%p/lib/system-openssl/lib $LDFLAGS"


# 10.4/apple-x11 doesn't have xt.pc and doesn't have libXt
# in default searchpath, so forge xt.pc using its otool data
darwinvers=`uname -r|cut -f1 -d.`
if [ $darwinvers == 8 ]; then PKG_CONFIG_PATH="$PKG_CONFIG_PATH:./pkgconfig-10.4"; fi

./autogen.sh %c
make
<<

InstallScript: make install DESTDIR=%d
DocFiles: <<
JavaScriptCore/icu/LICENSE:LICENSE.JavaScriptCore.icu
JavaScriptGlue/icu/LICENSE:LICENSE.JavaScriptGlue.icu
JavaScriptGlue/LICENSE:LICENSE.JavaScriptGlue
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
WebKitTools/iExploder/LICENSE.txt:LICENSE.WebKitTools.iExploder
WebKitTools/mangleme/LICENSE:LICENSE.WebKitTools.mangleme
<<

SplitOff: <<
Package: %N-shlibs
Files: lib/libwebkit-1.0.1.dylib
Depends: <<
atk1-shlibs (>= 1.20.0-1),
cairo-shlibs (>= 1.6.4-2),
expat1-shlibs,
fontconfig2-shlibs (>= 2.4.1-1),
freetype219-shlibs (>= 2.3.5-1),
glib2-shlibs (>= 2.14.0-1),
glitz-shlibs,
gtk+2-shlibs (>= 2.12.0-1),
libcurl4-shlibs (>= 7.18.2-1),
libgettext3-shlibs,
libiconv,
libjpeg-shlibs,
libpng3-shlibs,
libssh2.1-shlibs,
libxml2-shlibs (>= 2.6.30-1),
libxslt-shlibs (>= 1.1.22-1),
pango1-xft2-ft219-shlibs (>= 1.20.5-1),
pixman-shlibs (>= 0.11.8-1),
sqlite3-shlibs,
x11
<<
Shlibs: %p/lib/libwebkit-1.0.1.dylib 2.0.0 %n (>= r35788-1)
DocFiles: <<
JavaScriptCore/icu/LICENSE:LICENSE.JavaScriptCore.icu
JavaScriptGlue/icu/LICENSE:LICENSE.JavaScriptGlue.icu
JavaScriptGlue/LICENSE:LICENSE.JavaScriptGlue
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
WebKitTools/iExploder/LICENSE.txt:LICENSE.WebKitTools.iExploder
WebKitTools/mangleme/LICENSE:LICENSE.WebKitTools.mangleme
<<
<<

DescPackaging: <<
No formal releases for now, just nightly snapshots, so use
that as %v and will it Epoch for eventual stable release.

Leave video disabled (default)...uses gstreamer and gnome-vfs.

Use curl instead of soup: curl is system-openssl, so we can
remain out of section:crypto (adjust some flag-ordering to
make sure system-openssl comes before normal fink paths)

Force use of libtool instead of dolt (would only use dolt on
intel anyway, better to have consistent build on all platforms
for packaging).
<<
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 fink's
icu-config is broken, so just hard-code what it should be.

Fix FormDataStreamCurl.cpp to get SIZE_MAX defined. See:
https://bugs.webkit.org/show_bug.cgi?id=20410

Ignoring sign warning in webkitwebview.cpp. See:
https://bugs.webkit.org/show_bug.cgi?id=20412
<<

DescDetail: <<
Various parts are licensed under LGPL, BSD, and APSL
<<
Description: Web browser engine based on khtml/kjs
License: OSI-Approved
Homepage: http://webkit.org
Maintainer: Daniel Macks

webkit-1.0.1 stable port .patch

diff -Nurd -x'*~' WebKit-r35788.orig/GNUmakefile.am WebKit-r35788/GNUmakefile.am
--- WebKit-r35788.orig/GNUmakefile.am 2008-08-11 02:00:18.000000000 -0400
+++ WebKit-r35788/GNUmakefile.am 2008-08-17 12:19:56.000000000 -0400
@@ -164,11 +164,11 @@
-O2 \
$(global_cxxflags) \
$(global_cflags) \
+ $(LIBCURL_CFLAGS) \
$(GLOBALDEPS_CFLAGS) \
$(UNICODE_CFLAGS) \
$(WEBKITDEPS_CFLAGS) \
$(XT_CFLAGS) \
- $(LIBCURL_CFLAGS) \
$(LIBSOUP_CFLAGS) \
$(FREETYPE_CFLAGS) \
$(SQLITE3_CFLAGS) \
@@ -181,11 +181,11 @@
-fno-strict-aliasing \
-O2 \
$(global_cflags) \
+ $(LIBCURL_CFLAGS) \
$(GLOBALDEPS_CFLAGS) \
$(UNICODE_CFLAGS) \
$(WEBKITDEPS_CFLAGS) \
$(XT_CFLAGS) \
- $(LIBCURL_CFLAGS) \
$(LIBSOUP_CFLAGS) \
$(FREETYPE_CFLAGS) \
$(SQLITE3_CFLAGS) \
@@ -204,10 +204,10 @@
libWebCore_la_LIBADD = \
libJavaScriptCore.la \
$(webcore_libadd) \
+ $(LIBCURL_LIBS) \
$(GLOBALDEPS_LIBS) \
$(WEBKITDEPS_LIBS) \
$(XT_LIBS) \
- $(LIBCURL_LIBS) \
$(LIBSOUP_LIBS) \
$(FREETYPE_LIBS) \
$(UNICODE_LIBS) \
diff -Nurd -x'*~' WebKit-r35788.orig/WebCore/platform/network/curl/FormDataStreamCurl.cpp WebKit-r35788/WebCore/platform/network/curl/FormDataStreamCurl.cpp
--- WebKit-r35788.orig/WebCore/platform/network/curl/FormDataStreamCurl.cpp 2008-05-30 23:35:39.000000000 -0400
+++ WebKit-r35788/WebCore/platform/network/curl/FormDataStreamCurl.cpp 2008-08-17 12:07:34.000000000 -0400
@@ -29,15 +29,6 @@

#include "config.h"

-// We need to define __STDC_LIMIT_MACROS to define SIZE_MAX.
-#ifndef __STDC_LIMIT_MACROS
-#define __STDC_LIMIT_MACROS
-#include
-#undef __STDC_LIMIT_MACROS
-#else
-#include
-#endif
-
#include "FormDataStreamCurl.h"

#include "CString.h"
@@ -55,7 +46,7 @@
size_t FormDataStream::read(void* ptr, size_t blockSize, size_t numberOfBlocks)
{
// Check for overflow.
- if (!numberOfBlocks || blockSize > SIZE_MAX / numberOfBlocks)
+ if (!numberOfBlocks || blockSize > std::numeric_limits::max() / numberOfBlocks)
return 0;

Vector elements;
diff -Nurd -x'*~' WebKit-r35788.orig/acinclude.m4 WebKit-r35788/acinclude.m4
--- WebKit-r35788.orig/acinclude.m4 2008-08-08 00:51:02.000000000 -0400
+++ WebKit-r35788/acinclude.m4 2008-08-17 15:00:23.000000000 -0400
@@ -33,8 +33,9 @@
dolt_supported=no
;;
esac
+dolt_supported=no
if test x$dolt_supported = xno ; then
- AC_MSG_RESULT([no, falling back to libtool])
+ AC_MSG_RESULT([disabled for fink packaging, falling back to libtool])
LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)'
LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)'
else
diff -Nurd -x'*~' WebKit-r35788.orig/configure.ac WebKit-r35788/configure.ac
--- WebKit-r35788.orig/configure.ac 2008-08-10 02:00:12.000000000 -0400
+++ WebKit-r35788/configure.ac 2008-08-15 18:39:11.000000000 -0400
@@ -193,16 +193,8 @@
UNICODE_CFLAGS=""
UNICODE_LIBS="-licuin -licuuc"
else
- AC_PATH_PROG(icu_config, icu-config, no)
- if test "$icu_config" = "no"; then
- AC_MSG_ERROR([Cannot find icu-config. The ICU library is needed.])
- fi
-
- # We don't use --cflags as this gives us a lot of things that we don't
- # necessarily want, like debugging and optimization flags
- # See man (1) icu-config for more info.
- UNICODE_CFLAGS=`$icu_config --cppflags`
- UNICODE_LIBS=`$icu_config --ldflags`
+ UNICODE_CFLAGS="" # %p/include, assume in CPPFLAGS
+ UNICODE_LIBS="-licucore" # /usr/lib, so no -L needed
fi
fi

diff -Nurd -x'*~' WebKit-r35788.orig/pkgconfig-10.4/xt.pc WebKit-r35788/pkgconfig-10.4/xt.pc
--- WebKit-r35788.orig/pkgconfig-10.4/xt.pc 1969-12-31 19:00:00.000000000 -0500
+++ WebKit-r35788/pkgconfig-10.4/xt.pc 2008-08-15 21:21:25.000000000 -0400
@@ -0,0 +1,12 @@
+prefix=/usr/X11R6
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+appdefaultdir=/usr/X11R6/lib/X11/app-defaults
+
+Name: Xt
+Description: X Toolkit Library
+Version: 1.0.5
+Cflags: -I${includedir}
+Libs: -L${libdir} -lXt
+Libs.private: -lX11 -SM -lICE

webkit-1.0.1 _unstable_ port .patch