From 9989355675855b39bdaed4acfbf7a080fa905b1b Mon Sep 17 00:00:00 2001 From: landry Date: Fri, 25 Jul 2008 12:51:10 +0000 Subject: [PATCH] Import webkit svn rev35249, based on an original work from James Turner (james at bsdgroup dot org), thanks ! Webkit is an open source web rendering engine. All our previous patches have been integrated upstream. Mark it BROKEN on sparc64 until https://bugs.webkit.org/show_bug.cgi?id=19775 is fixed. Not linked to the build yet, a little bit of testing is still needed with latest libc/libm change. Thanks to all who already tested ! ok jdixon@ laurent@ 'import it' robert@ espie@ --- www/webkit/Makefile | 70 +++++++++++++++++++ www/webkit/distinfo | 5 ++ .../patch-JavaScriptCore_GNUmakefile_am | 12 ++++ www/webkit/pkg/DESCR | 3 + www/webkit/pkg/PFRAG.shared | 2 + www/webkit/pkg/PLIST | 29 ++++++++ 6 files changed, 121 insertions(+) create mode 100644 www/webkit/Makefile create mode 100644 www/webkit/distinfo create mode 100644 www/webkit/patches/patch-JavaScriptCore_GNUmakefile_am create mode 100644 www/webkit/pkg/DESCR create mode 100644 www/webkit/pkg/PFRAG.shared create mode 100644 www/webkit/pkg/PLIST diff --git a/www/webkit/Makefile b/www/webkit/Makefile new file mode 100644 index 00000000000..b4e0639c4c0 --- /dev/null +++ b/www/webkit/Makefile @@ -0,0 +1,70 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2008/07/25 12:51:10 landry Exp $ + +COMMENT = open source web browser engine + +V = 35249 +DISTNAME = WebKit-r${V} +PKGNAME = webkit-${V} +CATEGORIES = www +EXTRACT_SUFX = .tar.bz2 + +HOMEPAGE = http://webkit.org/ +MASTER_SITES = http://builds.nightly.webkit.org/files/trunk/src/ + +MAINTAINER = Landry Breuil + +SHARED_LIBS = webkit-1.0 0.0 + +# LGPLv2 / BSD +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM =Yes +PERMIT_DISTFILES_FTP = Yes + +USE_X11 = Yes +USE_GMAKE = Yes +USE_LIBTOOL = Yes + +.if ${MACHINE_ARCH} == "sparc64" +BROKEN = SIGBUS at runtime, being worked on +.endif + +MODULES = converters/libiconv \ + textproc/intltool \ + gcc4 +MODGCC4_ARCHES =* +MODGCC4_LANGS = c c++ + +AUTOMAKE_VERSION = 1.9 +AUTOCONF_VERSION = 2.59 +CONFIGURE_STYLE = gnu + +MAKE_FILE = GNUmakefile + +WANTLIB = ICE SM X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext \ + Xfixes Xi Xinerama Xrandr Xrender Xt atk-1.0 c crypto \ + expat fontconfig freetype glib-2.0 glitz gmodule-2.0 \ + gobject-2.0 gthread-2.0 idn intl jpeg m pango-1.0 pangocairo-1.0 \ + pangoft2-1.0 pcre pthread ssl z cairo pixman-1 png xml2 + +LIB_DEPENDS = gtk-x11-2.0,gdk-x11-2.0,gdk_pixbuf-2.0::x11/gtk+2,-main \ + icudata,icui18n,icuuc::textproc/icu4c \ + sqlite3::databases/sqlite3 \ + xslt::textproc/libxslt \ + curl::net/curl + + +BUILD_DEPENDS = ::devel/bison \ + ::devel/gperf \ + ${MODGNU_AUTOCONF_DEPENDS} \ + ${MODGNU_AUTOMAKE_DEPENDS} + +pre-configure: + cd ${WRKSRC} && ${SETENV} CC=${PREFIX}/bin/egcc CXX=${PREFIX}/bin/eg++ \ + AUTOCONF_VERSION=${AUTOCONF_VERSION} AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \ + autoreconf --install + cd ${WRKSRC} && ${SETENV} CC=${PREFIX}/bin/egcc CXX=${PREFIX}/bin/eg++ \ + AUTOCONF_VERSION=${AUTOCONF_VERSION} AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \ + automake --add-missing --copy + +.include diff --git a/www/webkit/distinfo b/www/webkit/distinfo new file mode 100644 index 00000000000..c0e8f3bf3a1 --- /dev/null +++ b/www/webkit/distinfo @@ -0,0 +1,5 @@ +MD5 (WebKit-r35249.tar.bz2) = MgWsarN1/lcyu/XyybZoIA== +RMD160 (WebKit-r35249.tar.bz2) = bR5hQua8zZBJl9k31k3e2EU9/60= +SHA1 (WebKit-r35249.tar.bz2) = BeKT3ZnEhiujmR4ZXTetoF84uFU= +SHA256 (WebKit-r35249.tar.bz2) = TutYlYVL8oR4yTTllimfuIao2MjaVGe1eYZmKptZOTk= +SIZE (WebKit-r35249.tar.bz2) = 9277788 diff --git a/www/webkit/patches/patch-JavaScriptCore_GNUmakefile_am b/www/webkit/patches/patch-JavaScriptCore_GNUmakefile_am new file mode 100644 index 00000000000..21b6aef7d1b --- /dev/null +++ b/www/webkit/patches/patch-JavaScriptCore_GNUmakefile_am @@ -0,0 +1,12 @@ +$OpenBSD: patch-JavaScriptCore_GNUmakefile_am,v 1.1.1.1 2008/07/25 12:51:10 landry Exp $ +--- JavaScriptCore/GNUmakefile.am.orig Sun Jul 20 10:44:28 2008 ++++ JavaScriptCore/GNUmakefile.am Sun Jul 20 10:44:42 2008 +@@ -211,7 +211,7 @@ Programs_minidom_CXXFLAGS = \ + + Programs_minidom_LDADD = \ + libJavaScriptCore.la \ +- -lstdc++ ++ -lestdc++ + + # jsc + Programs_jsc_SOURCES = JavaScriptCore/kjs/Shell.cpp diff --git a/www/webkit/pkg/DESCR b/www/webkit/pkg/DESCR new file mode 100644 index 00000000000..1f7d74845de --- /dev/null +++ b/www/webkit/pkg/DESCR @@ -0,0 +1,3 @@ +WebKit is an open source web browser rendering engine. WebKit's HTML +and JavaScript code began as a branch of the KHTML and KJS libraries +from KDE. diff --git a/www/webkit/pkg/PFRAG.shared b/www/webkit/pkg/PFRAG.shared new file mode 100644 index 00000000000..4f44725ae25 --- /dev/null +++ b/www/webkit/pkg/PFRAG.shared @@ -0,0 +1,2 @@ +@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2008/07/25 12:51:10 landry Exp $ +@lib lib/libwebkit-1.0.so.${LIBwebkit-1.0_VERSION} diff --git a/www/webkit/pkg/PLIST b/www/webkit/pkg/PLIST new file mode 100644 index 00000000000..fe8e3684009 --- /dev/null +++ b/www/webkit/pkg/PLIST @@ -0,0 +1,29 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2008/07/25 12:51:10 landry Exp $ +%%SHARED%% +@bin bin/jsc +include/webkit-1.0/ +include/webkit-1.0/JavaScriptCore/ +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/webkit/ +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.a +lib/libwebkit-1.0.la +lib/pkgconfig/ +lib/pkgconfig/webkit-1.0.pc