diff options
author | ahoka <ahoka@pkgsrc.org> | 2008-12-11 19:38:57 +0000 |
---|---|---|
committer | ahoka <ahoka@pkgsrc.org> | 2008-12-11 19:38:57 +0000 |
commit | d10228ab9ac8fe2dfd2377f57bc59e0a2c694223 (patch) | |
tree | 9774e4c1a1080033483fb2d1ae6242c41f45f598 /www/webkit-gtk | |
parent | 78f548c60d6fb0311a873ab18f1bb3b5e0d28a97 (diff) | |
download | pkgsrc-d10228ab9ac8fe2dfd2377f57bc59e0a2c694223.tar.gz |
Import webkit-gtk-1.0.2.35656 as www/webkit-gtk.
WebKit is an open source web browser engine. WebKit is also the name of
the Mac OS X system framework version of the engine that's used by
Safari, Dashboard, Mail, and many other OS X applications. WebKit's HTML
and JavaScript code began as a branch of the KHTML and KJS libraries
from KDE.
This is the GTK2+ port of the engine.
Diffstat (limited to 'www/webkit-gtk')
-rw-r--r-- | www/webkit-gtk/DESCR | 7 | ||||
-rw-r--r-- | www/webkit-gtk/Makefile | 64 | ||||
-rw-r--r-- | www/webkit-gtk/PLIST | 27 | ||||
-rw-r--r-- | www/webkit-gtk/buildlink3.mk | 30 | ||||
-rw-r--r-- | www/webkit-gtk/distinfo | 9 | ||||
-rw-r--r-- | www/webkit-gtk/patches/patch-aa | 49 | ||||
-rw-r--r-- | www/webkit-gtk/patches/patch-ab | 10 | ||||
-rw-r--r-- | www/webkit-gtk/patches/patch-ac | 13 | ||||
-rw-r--r-- | www/webkit-gtk/patches/patch-ad | 30 |
9 files changed, 239 insertions, 0 deletions
diff --git a/www/webkit-gtk/DESCR b/www/webkit-gtk/DESCR new file mode 100644 index 00000000000..77db505d006 --- /dev/null +++ b/www/webkit-gtk/DESCR @@ -0,0 +1,7 @@ +WebKit is an open source web browser engine. WebKit is also the name of +the Mac OS X system framework version of the engine that's used by +Safari, Dashboard, Mail, and many other OS X applications. WebKit's HTML +and JavaScript code began as a branch of the KHTML and KJS libraries +from KDE. + +This is the GTK2+ port of the engine. diff --git a/www/webkit-gtk/Makefile b/www/webkit-gtk/Makefile new file mode 100644 index 00000000000..de0b30d876a --- /dev/null +++ b/www/webkit-gtk/Makefile @@ -0,0 +1,64 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/12/11 19:38:57 ahoka Exp $ +# +# pkg-config says 1.0.2, let's combine it with the revision +# to give a sane version number. +# +DISTNAME= WebKit-r35656 +PKGNAME= ${DISTNAME:S/WebKit/webkit-gtk/:S/r/1.0.2./} +CATEGORIES= www +MASTER_SITES= http://nightly.webkit.org/files/trunk/src/ +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://webkit.org/ +COMMENT= GTK2 port of the WebKit browser engine + +USE_LANGUAGES= c c++ +USE_LIBTOOL= yes +USE_TOOLS+= bison gmake perl:build \ + automake autoconf autoheader \ + aclocal pkg-config bash:build + +MAKE_FILE= GNUmakefile +GNU_CONFIGURE= yes + +CONFIGURE_ARGS+= --with-target=x11 \ + --with-http-backend=curl \ + --with-font-backend=freetype + +REPLACE_PERL+= JavaScriptCore/kjs/create_hash_table \ + JavaScriptCore/pcre/dftables \ + SunSpider/make-hosted \ + SunSpider/sunspider \ + SunSpider/sunspider-compare-results \ + WebCore/bindings/scripts/*.pl \ + WebCore/css/*.pl \ + WebCore/dom/*.pl \ + WebCore/platform/text/mac/*.pl \ + WebKit/WebKit.xcodeproj/project.pbxproj \ + WebKit/win/WebKit.vcproj/*.pl \ + WebKitTools/BuildSlaveSupport/build-launcher-app \ + WebKitTools/BuildSlaveSupport/build-launcher-dmg \ + WebKitTools/BuildSlaveSupport/run-performance-tests \ + WebKitTools/Scripts/* + +pre-configure: + cd ${WRKSRC} && ${SHELL} autogen.sh + +.include "../../x11/gtk2/buildlink3.mk" +.include "../../x11/libXt/buildlink3.mk" +.include "../../www/curl/buildlink3.mk" +.include "../../graphics/freetype2/buildlink3.mk" +# These are optional, but they need testing. +#.include "../../net/libsoup24/buildlink3.mk" +#.include "../../devel/pango/buildlink3.mk" +# A correct Webkit build requires flex 2.5.33 +.include "../../devel/flex/buildlink3.mk" +.include "../../textproc/icu/buildlink3.mk" +.include "../../textproc/libxslt/buildlink3.mk" +.include "../../databases/sqlite3/buildlink3.mk" +.include "../../graphics/jpeg/buildlink3.mk" +.include "../../graphics/png/buildlink3.mk" +.include "../../devel/gperf/buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/www/webkit-gtk/PLIST b/www/webkit-gtk/PLIST new file mode 100644 index 00000000000..c095578e1d0 --- /dev/null +++ b/www/webkit-gtk/PLIST @@ -0,0 +1,27 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/12/11 19:38:57 ahoka Exp $ +bin/jsc +include/webkit-1.0/JavaScriptCore/JSBase.h +include/webkit-1.0/JavaScriptCore/JSContextRef.h +include/webkit-1.0/JavaScriptCore/JSObjectRef.h +include/webkit-1.0/JavaScriptCore/JSStringRef.h +include/webkit-1.0/JavaScriptCore/JSStringRefBSTR.h +include/webkit-1.0/JavaScriptCore/JSStringRefCF.h +include/webkit-1.0/JavaScriptCore/JSValueRef.h +include/webkit-1.0/JavaScriptCore/JavaScript.h +include/webkit-1.0/JavaScriptCore/JavaScriptCore.h +include/webkit-1.0/JavaScriptCore/WebKitAvailability.h +include/webkit-1.0/webkit/webkit.h +include/webkit-1.0/webkit/webkitdefines.h +include/webkit-1.0/webkit/webkitenumtypes.h +include/webkit-1.0/webkit/webkitnetworkrequest.h +include/webkit-1.0/webkit/webkitversion.h +include/webkit-1.0/webkit/webkitwebbackforwardlist.h +include/webkit-1.0/webkit/webkitwebframe.h +include/webkit-1.0/webkit/webkitwebhistoryitem.h +include/webkit-1.0/webkit/webkitwebsettings.h +include/webkit-1.0/webkit/webkitwebview.h +lib/libwebkit-1.0.la +lib/pkgconfig/webkit-1.0.pc +@dirrm include/webkit-1.0/webkit +@dirrm include/webkit-1.0/JavaScriptCore +@dirrm include/webkit-1.0 diff --git a/www/webkit-gtk/buildlink3.mk b/www/webkit-gtk/buildlink3.mk new file mode 100644 index 00000000000..8a7264bb37e --- /dev/null +++ b/www/webkit-gtk/buildlink3.mk @@ -0,0 +1,30 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/12/11 19:38:57 ahoka Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +WEBKIT_GTK_BUILDLINK3_MK:= ${WEBKIT_GTK_BUILDLINK3_MK}+ + +.if ${BUILDLINK_DEPTH} == "+" +BUILDLINK_DEPENDS+= webkit-gtk +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nwebkit-gtk} +BUILDLINK_PACKAGES+= webkit-gtk +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}webkit-gtk + +.if ${WEBKIT_GTK_BUILDLINK3_MK} == "+" +BUILDLINK_API_DEPENDS.webkit-gtk+= webkit-gtk>=1.0.2.35289 +BUILDLINK_PKGSRCDIR.webkit-gtk?= ../../www/webkit-gtk +.endif # WEBKIT_GTK_BUILDLINK3_MK + +.include "../../x11/gtk2/buildlink3.mk" +.include "../../x11/libXt/buildlink3.mk" +.include "../../www/curl/buildlink3.mk" +.include "../../graphics/freetype2/buildlink3.mk" +.include "../../textproc/icu/buildlink3.mk" +.include "../../textproc/libxslt/buildlink3.mk" +.include "../../databases/sqlite3/buildlink3.mk" +.include "../../graphics/jpeg/buildlink3.mk" +.include "../../graphics/png/buildlink3.mk" +.include "../../devel/gperf/buildlink3.mk" + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/www/webkit-gtk/distinfo b/www/webkit-gtk/distinfo new file mode 100644 index 00000000000..bb9c5e37a89 --- /dev/null +++ b/www/webkit-gtk/distinfo @@ -0,0 +1,9 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/12/11 19:38:57 ahoka Exp $ + +SHA1 (WebKit-r35656.tar.bz2) = 38f403fb332cb445467a2bd9a3143ceefca784ff +RMD160 (WebKit-r35656.tar.bz2) = 729f5c7e2ef33b6c841d665c839ef6ee47efb71c +Size (WebKit-r35656.tar.bz2) = 9273112 bytes +SHA1 (patch-aa) = a89653a6cee06a6573fd8111c0dd35f887782337 +SHA1 (patch-ab) = 19d9ac9a362a8c41025775bc60634dc1e5c3c28c +SHA1 (patch-ac) = bea7fc5d165ca6720d06d068868a285890a1b8c9 +SHA1 (patch-ad) = 4ed7d225a499dad3d35ae922a05953cdc7a5b62d diff --git a/www/webkit-gtk/patches/patch-aa b/www/webkit-gtk/patches/patch-aa new file mode 100644 index 00000000000..58937c6f268 --- /dev/null +++ b/www/webkit-gtk/patches/patch-aa @@ -0,0 +1,49 @@ +$NetBSD: patch-aa,v 1.1.1.1 2008/12/11 19:38:57 ahoka Exp $ + +--- WebKitTools/wx/install-unix-extras.orig 2008-04-28 20:40:06.000000000 +0200 ++++ WebKitTools/wx/install-unix-extras +@@ -41,7 +41,7 @@ DL_DIR=/tmp/webkit-deps + DEPS_PREFIX=$WK_ROOT/WebKitLibraries/unix + DLLEXT=so + +-if [ "${OSTYPE:0:6}" == "darwin" ]; then ++if [ "${OSTYPE:0:6}" = "darwin" ]; then + DLLEXT=dylib + fi + +@@ -84,7 +84,7 @@ if [ `which icu-config >/dev/null 2>&1` + + chmod +x configure install-sh + +- if [ "${OSTYPE:0:6}" == "darwin" ]; then ++ if [ "${OSTYPE:0:6}" = "darwin" ]; then + ./configure --prefix=$DEPS_PREFIX --disable-dependency-tracking + make CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" \ + LDFLAGS="-arch i386 -arch ppc" +@@ -107,7 +107,7 @@ if [ ! -f $DEPS_PREFIX/lib/libiconv.$DLL + tar xzvf $DL_DIR/$ICONV_TARBALL + cd $DL_DIR/libiconv-$ICONV_VERSION + +- if [ "${OSTYPE:0:6}" == "darwin" ]; then ++ if [ "${OSTYPE:0:6}" = "darwin" ]; then + ./configure --prefix=$DEPS_PREFIX --disable-dependency-tracking + make CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" \ + LDFLAGS="-arch i386 -arch ppc" +@@ -131,7 +131,7 @@ if [ ! -f $DEPS_PREFIX/lib/libjpeg.a ]; + # jpeg install command expects this to exist. + mkdir -p $DEPS_PREFIX/man/man1 + +- if [ "${OSTYPE:0:6}" == "darwin" ]; then ++ if [ "${OSTYPE:0:6}" = "darwin" ]; then + ./configure --prefix=$DEPS_PREFIX --disable-dependency-tracking + make CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" \ + LDFLAGS="-arch i386 -arch ppc" +@@ -155,7 +155,7 @@ if [ ! -f $DEPS_PREFIX/lib/libpng.a ]; t + tar xzvf $DL_DIR/$LIBPNG_TARBALL + cd $DL_DIR/libpng-$LIBPNG_VERSION + +- if [ "${OSTYPE:0:6}" == "darwin" ]; then ++ if [ "${OSTYPE:0:6}" = "darwin" ]; then + ./configure --prefix=$DEPS_PREFIX --disable-dependency-tracking + make CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" \ + LDFLAGS="-arch i386 -arch ppc" diff --git a/www/webkit-gtk/patches/patch-ab b/www/webkit-gtk/patches/patch-ab new file mode 100644 index 00000000000..166dadf7951 --- /dev/null +++ b/www/webkit-gtk/patches/patch-ab @@ -0,0 +1,10 @@ +$NetBSD: patch-ab,v 1.1.1.1 2008/12/11 19:38:57 ahoka Exp $ + +--- autogen.sh.orig 2008-04-17 23:37:24.000000000 +0200 ++++ autogen.sh +@@ -53,5 +53,3 @@ automake --foreign --add-missing || exit + autoconf || exit $? + + cd $ORIGDIR || exit 1 +- +-$srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $? diff --git a/www/webkit-gtk/patches/patch-ac b/www/webkit-gtk/patches/patch-ac new file mode 100644 index 00000000000..88e37ebffea --- /dev/null +++ b/www/webkit-gtk/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1.1.1 2008/12/11 19:38:57 ahoka Exp $ + +--- JavaScriptCore/kjs/collector.cpp.orig 2008-07-20 06:53:10.000000000 +0200 ++++ JavaScriptCore/kjs/collector.cpp +@@ -386,7 +386,7 @@ static inline void* currentThreadStackBa + if (stackBase == 0 || thread != stackThread) { + pthread_attr_t sattr; + pthread_attr_init(&sattr); +-#if HAVE(PTHREAD_NP_H) ++#if HAVE(PTHREAD_NP_H) || PLATFORM(NETBSD) + // e.g. on FreeBSD 5.4, neundorf@kde.org + pthread_attr_get_np(thread, &sattr); + #else diff --git a/www/webkit-gtk/patches/patch-ad b/www/webkit-gtk/patches/patch-ad new file mode 100644 index 00000000000..a00252e42dc --- /dev/null +++ b/www/webkit-gtk/patches/patch-ad @@ -0,0 +1,30 @@ +$NetBSD: patch-ad,v 1.1.1.1 2008/12/11 19:38:57 ahoka Exp $ + +--- JavaScriptCore/wtf/Platform.h.orig 2008-07-23 07:17:02.000000000 +0200 ++++ JavaScriptCore/wtf/Platform.h +@@ -64,6 +64,13 @@ + #define WTF_PLATFORM_OPENBSD 1 + #endif + ++/* PLATFORM(NETBSD) */ ++/* Operating system level dependencies for OpenBSD systems that */ ++/* should be used regardless of operating environment */ ++#ifdef __NetBSD__ ++#define WTF_PLATFORM_NETBSD 1 ++#endif ++ + /* PLATFORM(SOLARIS) */ + /* Operating system level dependencies for Solaris that should be used */ + /* regardless of operating environment */ +@@ -76,10 +83,10 @@ + /* should be used regardless of operating environment */ + #if PLATFORM(DARWIN) \ + || PLATFORM(FREEBSD) \ ++ || PLATFORM(NETBSD) \ + || defined(unix) \ + || defined(__unix) \ + || defined(__unix__) \ +- || defined (__NetBSD__) \ + || defined(_AIX) + #define WTF_PLATFORM_UNIX 1 + #endif |