summaryrefslogtreecommitdiff
path: root/devel/xulrunner
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2009-10-11 10:49:56 +0000
committertnn <tnn@pkgsrc.org>2009-10-11 10:49:56 +0000
commit4d1ae4854f86653333d727d7719e2e5a28937199 (patch)
treea0d0712dc4e395f4baec4d686ea48b8a2942f53f /devel/xulrunner
parentb682c86f9626e2554dd5485d05f6780e3b31a0fe (diff)
downloadpkgsrc-4d1ae4854f86653333d727d7719e2e5a28937199.tar.gz
- allow firefox and xulrunner to share some infrastructure
- install headers for plugin and liveconnect (needed by openjdk7-icedtea-plugin) - bump revision for both packages
Diffstat (limited to 'devel/xulrunner')
-rw-r--r--devel/xulrunner/Makefile86
-rw-r--r--devel/xulrunner/PLIST48
-rw-r--r--devel/xulrunner/distinfo8
-rw-r--r--devel/xulrunner/patches/patch-aa22
-rw-r--r--devel/xulrunner/patches/patch-ay40
-rw-r--r--devel/xulrunner/patches/patch-ra9
-rw-r--r--devel/xulrunner/patches/patch-rb7
-rw-r--r--devel/xulrunner/patches/patch-rc12
8 files changed, 156 insertions, 76 deletions
diff --git a/devel/xulrunner/Makefile b/devel/xulrunner/Makefile
index 707a5974393..46a78b6e42e 100644
--- a/devel/xulrunner/Makefile
+++ b/devel/xulrunner/Makefile
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.23 2009/09/27 17:52:22 tnn Exp $
+# $NetBSD: Makefile,v 1.24 2009/10/11 10:49:56 tnn Exp $
#
DISTNAME= firefox-${FIREFOX_VER}.source
PKGNAME= ${DISTNAME:S/firefox/xulrunner/:S/3.5/1.9.1/:S/.source//}
FIREFOX_VER= 3.5.3
-PKGREVISION= 5
+PKGREVISION= 6
CATEGORIES= devel www
MASTER_SITES= ${MASTER_SITE_MOZILLA:=firefox/releases/${FIREFOX_VER}/source/}
EXTRACT_SUFX= .tar.bz2
@@ -14,14 +14,7 @@ HOMEPAGE= http://developer.mozilla.org/en/docs/XULRunner
COMMENT= XML User Interface Language runtime environment
WRKSRC= ${WRKDIR}/mozilla-1.9.1
-GNU_CONFIGURE= yes
-USE_TOOLS+= pkg-config perl gmake autoconf213
-USE_LANGUAGES= c c++
-
-BUILD_DEPENDS+= zip>=2.3:../../archivers/zip
-
-PKG_DESTDIR_SUPPORT= user-destdir
-CHECK_PORTABILITY_SKIP= security/nss/tests/libpkix/libpkix.sh
+MOZILLA_DIR= # empty
PKGCONFIG_OVERRIDE+= xulrunner/installer/libxul-embedding-unstable.pc.in
PKGCONFIG_OVERRIDE+= xulrunner/installer/libxul-embedding.pc.in
@@ -34,62 +27,20 @@ PKGCONFIG_OVERRIDE+= xulrunner/installer/mozilla-nspr.pc.in
PKGCONFIG_OVERRIDE+= xulrunner/installer/mozilla-nss.pc.in
PKGCONFIG_OVERRIDE+= xulrunner/installer/mozilla-plugin.pc.in
-PRIVILEGED_STAGES= clean
-
-CONFIG_GUESS_OVERRIDE= build/autoconf/config.guess
-CONFIG_GUESS_OVERRIDE+= js/src/build/autoconf/config.guess
-CONFIG_GUESS_OVERRIDE+= nsprpub/build/autoconf/config.guess
-CONFIG_SUB_OVERRIDE= build/autoconf/config.sub
-CONFIG_SUB_OVERRIDE+= js/src/build/autoconf/config.sub
-CONFIG_SUB_OVERRIDE+= nsprpub/build/autoconf/config.sub
-
CONFIGURE_ARGS+= --enable-application=xulrunner
CONFIGURE_ARGS+= --enable-libxul
-CONFIGURE_ARGS+= --disable-tests --disable-pedantic
-CONFIGURE_ARGS+= --enable-crypto
-CONFIGURE_ARGS+= --enable-optimize=-O2 --with-pthreads
-CONFIGURE_ARGS+= --disable-javaxpcom
-CONFIGURE_ARGS+= --enable-default-toolkit=cairo-gtk2
-CONFIGURE_ARGS+= --enable-svg --enable-mathml
-CONFIGURE_ARGS+= --enable-system-cairo
-CONFIGURE_ARGS+= --with-system-jpeg
-CONFIGURE_ARGS+= --with-system-zlib --with-system-bz2
-CONFIGURE_ARGS+= --enable-system-sqlite
-CONFIGURE_ARGS+= --disable-crashreporter
ALL_ENV+= MOZILLA_PKG_NAME=xulrunner
-SUBST_CLASSES+= fix-paths
-SUBST_STAGE.fix-paths= pre-configure
-SUBST_MESSAGE.fix-paths= Fixing absolute paths.
-SUBST_FILES.fix-paths= xpcom/build/nsXPCOMPrivate.h
-SUBST_FILES.fix-paths+= xulrunner/app/nsRegisterGREUnix.cpp
-SUBST_FILES.fix-paths+= xulrunner/installer/Makefile.in
-SUBST_FILES.fix-paths+= extensions/java/xpcom/interfaces/org/mozilla/xpcom/Mozilla.java
-SUBST_FILES.fix-paths+= xpcom/io/nsAppFileLocationProvider.cpp
-SUBST_SED.fix-paths= -e 's,/etc/gre.d,${PREFIX}/lib/xulrunner/gre.d,g'
-SUBST_SED.fix-paths+= -e 's,/usr/lib/mozilla/plugins,${PREFIX}/lib/netscape/plugins,g'
-
-PYTHON_FOR_BUILD_ONLY= yes
-.include "../../lang/python/application.mk"
-CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q}
-
-.include "options.mk"
.include "../../mk/bsd.prefs.mk"
+.include "mozilla-common.mk"
+.include "options.mk"
pre-configure:
cd ${WRKSRC} && autoconf
cd ${WRKSRC}/js/src && autoconf
cd ${WRKSRC}/nsprpub && autoconf
-# Makefiles sometimes call "rm -f" without more arguments. Kludge around ...
-.PHONY: create-rm-wrapper
-pre-configure: create-rm-wrapper
-create-rm-wrapper:
- printf '#!/bin/sh\n[ "$$*" = "-f" ] && exit 0\nexec /bin/rm $$@\n' > \
- ${WRAPPER_DIR}/bin/rm
- chmod +x ${WRAPPER_DIR}/bin/rm
-
INCLUDE_SUBDIRS=\
caps chardet commandhandler content cookie docshell dom \
downloads embedcomponents exthandler fastfind find gfx \
@@ -97,34 +48,29 @@ INCLUDE_SUBDIRS=\
locale loginmgr mimetype necko nkcache nspr oji pipboot pipnss \
places pref profdirserviceprovider rdf shistory spellchecker \
string thebes toolkitcomps uconv uriloader webbrowserpersist \
- webbrwsr webshell widget windowwatcher xpcom xpconnect xulapp
+ webbrwsr webshell widget windowwatcher xpcom xpconnect xulapp \
+ plugin liveconnect
post-install:
# XXX fix the pkg-config files instead
rm -f ${DESTDIR}${PREFIX}/lib/xulrunner/libxpcomglue.a
- ln -s ${PREFIX}/lib/xulrunner-sdk/sdk/lib/libxpcomglue.a \
+ ln -s ${PREFIX}/lib/xulrunner-sdk/sdk/lib/libxpcomglue.a \
${DESTDIR}${PREFIX}/lib/xulrunner/libxpcomglue.a
rm -f ${DESTDIR}${PREFIX}/lib/xulrunner/libxpcomglue_s.a
- ln -s ${PREFIX}/lib/xulrunner-sdk/sdk/lib/libxpcomglue_s.a \
+ ln -s ${PREFIX}/lib/xulrunner-sdk/sdk/lib/libxpcomglue_s.a \
${DESTDIR}${PREFIX}/lib/xulrunner/libxpcomglue_s.a
- ${INSTALL_LIB} ${WRKSRC}/dist/lib/libunicharutil_external_s.a \
+ ${INSTALL_LIB} ${WRKSRC}/dist/lib/libunicharutil_external_s.a \
${DESTDIR}${PREFIX}/lib/xulrunner
- cd ${WRKSRC}/dist/include && \
- ${INSTALL_DATA} `find ${INCLUDE_SUBDIRS} -name "*.h" -print` \
+.for dir in ${INCLUDE_SUBDIRS}
+ cd ${WRKSRC}/dist/include && \
+ ${INSTALL_DATA} `find ${dir} -name "*.h" -print` \
+ ${DESTDIR}${PREFIX}/include/xulrunner/unstable
+.endfor
+ cd ${WRKSRC}/dist/include && ${INSTALL_DATA} \
js/jsproto.tbl mozilla-config.h gtkembedmoz/gtkmozembed_glue.cpp \
${DESTDIR}${PREFIX}/include/xulrunner/unstable
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/xulrunner/unstable/obsolete
cd ${WRKSRC}/dist/include/nspr/obsolete && ${INSTALL_DATA} protypes.h \
${DESTDIR}${PREFIX}/include/xulrunner/unstable/obsolete
-.if ${OPSYS} == "Linux"
-.include "../../audio/alsa-lib/buildlink3.mk"
-.endif
-.include "../../archivers/bzip2/buildlink3.mk"
-BUILDLINK_API_DEPENDS.sqlite3+= sqlite3>=3.6.10
-.include "../../databases/sqlite3/buildlink3.mk"
-.include "../../devel/zlib/buildlink3.mk"
-.include "../../net/libIDL/buildlink3.mk"
-.include "../../x11/gtk2/buildlink3.mk"
-.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/xulrunner/PLIST b/devel/xulrunner/PLIST
index 1ac61a13648..a2e89d6ae96 100644
--- a/devel/xulrunner/PLIST
+++ b/devel/xulrunner/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.16 2009/10/06 15:46:32 tnn Exp $
+@comment $NetBSD: PLIST,v 1.17 2009/10/11 10:49:56 tnn Exp $
bin/xulrunner
include/xulrunner/stable/base64.h
include/xulrunner/stable/blapit.h
@@ -572,6 +572,7 @@ include/xulrunner/unstable/jsgc.h
include/xulrunner/unstable/jshash.h
include/xulrunner/unstable/jsinterp.h
include/xulrunner/unstable/jsiter.h
+include/xulrunner/unstable/jsjava.h
include/xulrunner/unstable/jslock.h
include/xulrunner/unstable/jslong.h
include/xulrunner/unstable/jsmath.h
@@ -619,6 +620,12 @@ include/xulrunner/unstable/mozilla-config.h
${PLIST.jit}include/xulrunner/unstable/nanojit.h
include/xulrunner/unstable/necko-config.h
include/xulrunner/unstable/netCore.h
+include/xulrunner/unstable/netscape_javascript_JSException.h
+include/xulrunner/unstable/netscape_javascript_JSObject.h
+include/xulrunner/unstable/npapi.h
+include/xulrunner/unstable/npfunctions.h
+include/xulrunner/unstable/npruntime.h
+include/xulrunner/unstable/nptypes.h
include/xulrunner/unstable/nsASocketHandler.h
include/xulrunner/unstable/nsAString.h
include/xulrunner/unstable/nsAXPCNativeCallContext.h
@@ -717,6 +724,7 @@ include/xulrunner/unstable/nsDataHashtable.h
include/xulrunner/unstable/nsDateTimeFormatCID.h
include/xulrunner/unstable/nsDebug.h
include/xulrunner/unstable/nsDebugImpl.h
+include/xulrunner/unstable/nsDefaultPlugin.h
include/xulrunner/unstable/nsDependentString.h
include/xulrunner/unstable/nsDependentSubstring.h
include/xulrunner/unstable/nsDeque.h
@@ -872,6 +880,7 @@ include/xulrunner/unstable/nsIChromeRegistry.h
include/xulrunner/unstable/nsICipherInfo.h
include/xulrunner/unstable/nsIClassInfo.h
include/xulrunner/unstable/nsIClassInfoImpl.h
+include/xulrunner/unstable/nsIClassicPluginFactory.h
include/xulrunner/unstable/nsIClientAuthDialogs.h
include/xulrunner/unstable/nsIClipboard.h
include/xulrunner/unstable/nsIClipboardCommands.h
@@ -924,6 +933,7 @@ include/xulrunner/unstable/nsICookieManager2.h
include/xulrunner/unstable/nsICookiePermission.h
include/xulrunner/unstable/nsICookiePromptService.h
include/xulrunner/unstable/nsICookieService.h
+include/xulrunner/unstable/nsICookieStorage.h
include/xulrunner/unstable/nsICryptoFIPSInfo.h
include/xulrunner/unstable/nsICryptoHMAC.h
include/xulrunner/unstable/nsICryptoHash.h
@@ -1345,6 +1355,7 @@ include/xulrunner/unstable/nsIEntropyCollector.h
include/xulrunner/unstable/nsIEnumerator.h
include/xulrunner/unstable/nsIEnvironment.h
include/xulrunner/unstable/nsIErrorService.h
+include/xulrunner/unstable/nsIEventHandler.h
include/xulrunner/unstable/nsIEventListener.h
include/xulrunner/unstable/nsIEventListenerManager.h
include/xulrunner/unstable/nsIEventStateManager.h
@@ -1369,6 +1380,7 @@ include/xulrunner/unstable/nsIFilePicker.h
include/xulrunner/unstable/nsIFileProtocolHandler.h
include/xulrunner/unstable/nsIFileStreams.h
include/xulrunner/unstable/nsIFileURL.h
+include/xulrunner/unstable/nsIFileUtilities.h
include/xulrunner/unstable/nsIFind.h
include/xulrunner/unstable/nsIFocusController.h
include/xulrunner/unstable/nsIFocusEventSuppressor.h
@@ -1405,6 +1417,7 @@ include/xulrunner/unstable/nsIHTMLCollection.h
include/xulrunner/unstable/nsIHTMLContentSink.h
include/xulrunner/unstable/nsIHTMLDocument.h
include/xulrunner/unstable/nsIHTMLToTextSink.h
+include/xulrunner/unstable/nsIHTTPHeaderListener.h
include/xulrunner/unstable/nsIHandlerService.h
include/xulrunner/unstable/nsIHashable.h
include/xulrunner/unstable/nsIHelperAppLauncherDialog.h
@@ -1441,12 +1454,15 @@ include/xulrunner/unstable/nsIInterfaceInfo.h
include/xulrunner/unstable/nsIInterfaceInfoManager.h
include/xulrunner/unstable/nsIInterfaceRequestor.h
include/xulrunner/unstable/nsIInterfaceRequestorUtils.h
+include/xulrunner/unstable/nsIJRILiveConnectPIPeer.h
+include/xulrunner/unstable/nsIJRILiveConnectPlugin.h
include/xulrunner/unstable/nsIJRIPlugin.h
include/xulrunner/unstable/nsIJSContextStack.h
include/xulrunner/unstable/nsIJSEventListener.h
include/xulrunner/unstable/nsIJSNativeInitializer.h
include/xulrunner/unstable/nsIJSON.h
include/xulrunner/unstable/nsIJSRuntimeService.h
+include/xulrunner/unstable/nsIJVMAuthTools.h
include/xulrunner/unstable/nsIJVMConfigManager.h
include/xulrunner/unstable/nsIJVMConsole.h
include/xulrunner/unstable/nsIJVMManager.h
@@ -1468,6 +1484,7 @@ include/xulrunner/unstable/nsILinkHandler.h
include/xulrunner/unstable/nsIListBoxObject.h
include/xulrunner/unstable/nsIListControlFrame.h
include/xulrunner/unstable/nsILiveConnectManager.h
+include/xulrunner/unstable/nsILiveconnect.h
include/xulrunner/unstable/nsILivemarkService.h
include/xulrunner/unstable/nsILoadContext.h
include/xulrunner/unstable/nsILoadGroup.h
@@ -1550,6 +1567,22 @@ include/xulrunner/unstable/nsIPersistentProperties2.h
include/xulrunner/unstable/nsIPhonetic.h
include/xulrunner/unstable/nsIPipe.h
include/xulrunner/unstable/nsIPlatformCharset.h
+include/xulrunner/unstable/nsIPlugin.h
+include/xulrunner/unstable/nsIPluginDocument.h
+include/xulrunner/unstable/nsIPluginHost.h
+include/xulrunner/unstable/nsIPluginInputStream.h
+include/xulrunner/unstable/nsIPluginInstance.h
+include/xulrunner/unstable/nsIPluginInstanceInternal.h
+include/xulrunner/unstable/nsIPluginInstanceOwner.h
+include/xulrunner/unstable/nsIPluginInstancePeer.h
+include/xulrunner/unstable/nsIPluginInstancePeer2.h
+include/xulrunner/unstable/nsIPluginManager.h
+include/xulrunner/unstable/nsIPluginManager2.h
+include/xulrunner/unstable/nsIPluginStreamInfo.h
+include/xulrunner/unstable/nsIPluginStreamListener.h
+include/xulrunner/unstable/nsIPluginTag.h
+include/xulrunner/unstable/nsIPluginTagInfo.h
+include/xulrunner/unstable/nsIPluginTagInfo2.h
include/xulrunner/unstable/nsIPluginWidget.h
include/xulrunner/unstable/nsIPopupBoxObject.h
include/xulrunner/unstable/nsIPosixLocale.h
@@ -1681,6 +1714,7 @@ include/xulrunner/unstable/nsIScriptTimeoutHandler.h
include/xulrunner/unstable/nsIScriptableDateFormat.h
include/xulrunner/unstable/nsIScriptableInputStream.h
include/xulrunner/unstable/nsIScriptableInterfaces.h
+include/xulrunner/unstable/nsIScriptablePlugin.h
include/xulrunner/unstable/nsIScriptableRegion.h
include/xulrunner/unstable/nsIScriptableUConv.h
include/xulrunner/unstable/nsIScrollBoxObject.h
@@ -1691,7 +1725,9 @@ include/xulrunner/unstable/nsIScrollbarMediator.h
include/xulrunner/unstable/nsISecretDecoderRing.h
include/xulrunner/unstable/nsISecureBrowserUI.h
include/xulrunner/unstable/nsISecureEnv.h
+include/xulrunner/unstable/nsISecureLiveconnect.h
include/xulrunner/unstable/nsISecurityCheckedComponent.h
+include/xulrunner/unstable/nsISecurityContext.h
include/xulrunner/unstable/nsISecurityEventSink.h
include/xulrunner/unstable/nsISecurityInfoProvider.h
include/xulrunner/unstable/nsISecurityPref.h
@@ -1837,6 +1873,7 @@ include/xulrunner/unstable/nsIWebShellServices.h
include/xulrunner/unstable/nsIWidget.h
include/xulrunner/unstable/nsIWin32Locale.h
include/xulrunner/unstable/nsIWindowWatcher.h
+include/xulrunner/unstable/nsIWindowlessPlugInstPeer.h
include/xulrunner/unstable/nsIWritablePropertyBag.h
include/xulrunner/unstable/nsIWritablePropertyBag2.h
include/xulrunner/unstable/nsIWyciwygChannel.h
@@ -1920,6 +1957,8 @@ include/xulrunner/unstable/nsPIDOMEventTarget.h
include/xulrunner/unstable/nsPIDOMStorage.h
include/xulrunner/unstable/nsPIDOMWindow.h
include/xulrunner/unstable/nsPIPlacesDatabase.h
+include/xulrunner/unstable/nsPIPluginHost.h
+include/xulrunner/unstable/nsPIPluginInstancePeer.h
include/xulrunner/unstable/nsPIPromptService.h
include/xulrunner/unstable/nsPISocketTransportService.h
include/xulrunner/unstable/nsPIWindowRoot.h
@@ -1929,6 +1968,10 @@ include/xulrunner/unstable/nsPSPrinters.h
include/xulrunner/unstable/nsPaperPS.h
include/xulrunner/unstable/nsParserCIID.h
include/xulrunner/unstable/nsParserDataListener.h
+include/xulrunner/unstable/nsPluginError.h
+include/xulrunner/unstable/nsPluginLogging.h
+include/xulrunner/unstable/nsPluginNativeWindow.h
+include/xulrunner/unstable/nsPluginsCID.h
include/xulrunner/unstable/nsPoint.h
include/xulrunner/unstable/nsPrefsCID.h
include/xulrunner/unstable/nsPresContext.h
@@ -2053,6 +2096,9 @@ include/xulrunner/unstable/nsXULAppAPI.h
include/xulrunner/unstable/nsXULPopupManager.h
include/xulrunner/unstable/nscore.h
include/xulrunner/unstable/nsjvm.h
+include/xulrunner/unstable/nsplugin.h
+include/xulrunner/unstable/nsplugindefs.h
+include/xulrunner/unstable/nspluginroot.h
include/xulrunner/unstable/nspr.h
include/xulrunner/unstable/nspr_md.h
include/xulrunner/unstable/nsrootidl.h
diff --git a/devel/xulrunner/distinfo b/devel/xulrunner/distinfo
index 14c34c899a8..b8b8237e464 100644
--- a/devel/xulrunner/distinfo
+++ b/devel/xulrunner/distinfo
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.12 2009/09/27 17:52:22 tnn Exp $
+$NetBSD: distinfo,v 1.13 2009/10/11 10:49:56 tnn Exp $
SHA1 (firefox-3.5.3.source.tar.bz2) = 83b2625eb74e81b473ac40ac52505e5fc9a497eb
RMD160 (firefox-3.5.3.source.tar.bz2) = c2487c90b4a9490840817c7b00dcccd68a0c4422
Size (firefox-3.5.3.source.tar.bz2) = 46766383 bytes
-SHA1 (patch-aa) = 3bcbced4642b8814f5255973d45a0ac1eaded64d
+SHA1 (patch-aa) = 1a103647b3ce602e1bf2d22f6486a6649a68878b
SHA1 (patch-ab) = 5331bae45501013d3ca13d161226e311bc10aafe
SHA1 (patch-ac) = e50356963fd235ea11fa45baae356fcf21c6669d
SHA1 (patch-ad) = 7afb960af4e4a311481e7a7b25008ca9b9f7fba1
@@ -27,6 +27,7 @@ SHA1 (patch-au) = f27b6c8b2c744da388e1d15d0776929e7165ee76
SHA1 (patch-av) = e22c544894123a6ab8fc428067716b9e68685771
SHA1 (patch-aw) = eed2f98b732fa776d2ca64d2b82e88677a207657
SHA1 (patch-ax) = 579041ecba36dfa0d42d3ab576e79ecf2321749d
+SHA1 (patch-ay) = 6ddcbbd3f0197fb88622fc32d6d0fd602ec4ad34
SHA1 (patch-ma) = a20b263ff14c841fd0ae1634962b90a41173b524
SHA1 (patch-mb) = 05298c1ec02363ff0bada87337cf0ccb5b42c55b
SHA1 (patch-md) = 6bf5242245b17fbd868a6a978eb5849726f81393
@@ -51,6 +52,9 @@ SHA1 (patch-pd) = b87adef8cfb53d4a1926f4bab5481dd1b9cf14ab
SHA1 (patch-pe) = 3e4db1032a1e1f26f3a4e86653804b435aaf3ee8
SHA1 (patch-pf) = 95b3f07dfd0e3de9961181ec6e42f7174180942d
SHA1 (patch-pg) = 33f0664512c94b1f1b7b65f43accc1dae457a2d0
+SHA1 (patch-ra) = b215219b8429274ca3aa81790b62531aaf189127
+SHA1 (patch-rb) = 15970b5fe79621d47e573ddec074a6e67e8c5146
+SHA1 (patch-rc) = 890012b4fca22d965a40262830aabbb06a2da36e
SHA1 (patch-xa) = ae5ed1f0fb9a0fd45242a94739853b199ed7da72
SHA1 (patch-xb) = c09bd676d21bef02e04c68c2362e32f408ea9201
SHA1 (patch-xc) = 6e1d6b21d7ded744b082173ea6f35b45999fa965
diff --git a/devel/xulrunner/patches/patch-aa b/devel/xulrunner/patches/patch-aa
index 87de079f073..0429df19326 100644
--- a/devel/xulrunner/patches/patch-aa
+++ b/devel/xulrunner/patches/patch-aa
@@ -1,6 +1,6 @@
-$NetBSD: patch-aa,v 1.1.1.1 2009/08/05 02:59:48 tnn Exp $
+$NetBSD: patch-aa,v 1.2 2009/10/11 10:49:56 tnn Exp $
---- configure.in.orig 2009-06-29 18:14:41.000000000 +0200
+--- configure.in.orig 2009-08-24 17:52:36.000000000 +0200
+++ configure.in
@@ -1799,7 +1799,7 @@ case "$target" in
fi
@@ -47,10 +47,26 @@ $NetBSD: patch-aa,v 1.1.1.1 2009/08/05 02:59:48 tnn Exp $
*)
AC_CHECK_LIB(c_r, gethostbyname_r)
;;
-@@ -8468,6 +8481,7 @@ if test -z "$MOZ_NATIVE_NSPR"; then
+@@ -4160,6 +4173,14 @@ else
+ fi
+ fi
+
++if test -n "${LIBXUL_SDK_DIR}"; then
++ AC_MSG_WARN([pkgsrc: LIBXUL_SDK_DIR is set; assuming we want nss and nspr from xulrunner.])
++ NSPR_CFLAGS="-I${prefix}/include/xulrunner/unstable `pkg-config --cflags mozilla-nspr`"
++ NSPR_LIBS="`pkg-config --libs mozilla-nspr`"
++ NSS_CFLAGS="`pkg-config --cflags mozilla-nss`"
++ NSS_LIBS="`pkg-config --libs mozilla-nss`"
++fi
++
+ if test -z "$SKIP_LIBRARY_CHECKS"; then
+ dnl system JPEG support
+ dnl ========================================================
+@@ -8468,6 +8489,8 @@ if test -z "$MOZ_NATIVE_NSPR"; then
AC_MSG_WARN([Recreating autoconf.mk with updated nspr-config output])
if test "$OS_ARCH" != "WINNT" && test "$OS_ARCH" != "WINCE"; then
NSPR_LIBS=`./nsprpub/config/nspr-config --prefix=$LIBXUL_DIST --exec-prefix=$MOZ_BUILD_ROOT/dist --libdir=$LIBXUL_DIST/lib --libs`
++ AC_MSG_WARN([pkgsrc: adding run path to NSPR_LIBS for bundled NSPR.])
+ NSPR_LIBS="-Wl,-R${prefix}/lib/\${MOZILLA_PKG_NAME} ${NSPR_LIBS}"
$PERL -pi.bak -e "s '^NSPR_LIBS\\s*=.*'NSPR_LIBS = $NSPR_LIBS'" config/autoconf.mk
NSPR_CFLAGS=`./nsprpub/config/nspr-config --prefix=$LIBXUL_DIST --exec-prefix=$MOZ_BUILD_ROOT/dist --includedir=$LIBXUL_DIST/include/nspr --cflags`
diff --git a/devel/xulrunner/patches/patch-ay b/devel/xulrunner/patches/patch-ay
new file mode 100644
index 00000000000..51dacdfcd3d
--- /dev/null
+++ b/devel/xulrunner/patches/patch-ay
@@ -0,0 +1,40 @@
+$NetBSD: patch-ay,v 1.1 2009/10/11 10:49:56 tnn Exp $
+
+--- browser/app/nsBrowserApp.cpp.orig 2009-06-29 18:14:40.000000000 +0200
++++ browser/app/nsBrowserApp.cpp
+@@ -44,6 +44,27 @@
+
+ #include <stdio.h>
+ #include <stdarg.h>
++#include <sys/resource.h>
++/*
++ * On netbsd-4, ulimit -n is 64 by default; too few for us.
++ */
++static void netbsd_fixrlimit(void) {
++ struct rlimit rlp;
++ if (getrlimit(RLIMIT_NOFILE, &rlp) == -1) {
++ fprintf(stderr, "warning: getrlimit failed\n");
++ return;
++ }
++ if (rlp.rlim_cur >= 512)
++ return;
++ if (rlp.rlim_max < 512) {
++ fprintf(stderr, "warning: hard limit of 'ulimit -n' too low\n");
++ rlp.rlim_cur = rlp.rlim_max;
++ }
++ else
++ rlp.rlim_cur = 512;
++ if (setrlimit(RLIMIT_NOFILE, &rlp) == -1)
++ fprintf(stderr, "warning: setrlimit failed\n");
++}
+
+ #include "plstr.h"
+ #include "prprf.h"
+@@ -106,6 +127,7 @@ public:
+
+ int main(int argc, char* argv[])
+ {
++ netbsd_fixrlimit();
+ ScopedLogging log;
+
+ nsCOMPtr<nsILocalFile> appini;
diff --git a/devel/xulrunner/patches/patch-ra b/devel/xulrunner/patches/patch-ra
new file mode 100644
index 00000000000..f92420ad61c
--- /dev/null
+++ b/devel/xulrunner/patches/patch-ra
@@ -0,0 +1,9 @@
+$NetBSD: patch-ra,v 1.1 2009/10/11 10:49:56 tnn Exp $
+
+--- browser/branding/unofficial/locales/browserconfig.properties.orig 2009-08-24 17:52:36.000000000 +0200
++++ browser/branding/unofficial/locales/browserconfig.properties
+@@ -1,3 +1,3 @@
+ # Do NOT localize or otherwise change these values
+-browser.startup.homepage=http://www.mozilla.org/projects/shiretoko/
++browser.startup.homepage=http://www.google.com/firefox
+
diff --git a/devel/xulrunner/patches/patch-rb b/devel/xulrunner/patches/patch-rb
new file mode 100644
index 00000000000..b919a29fcb6
--- /dev/null
+++ b/devel/xulrunner/patches/patch-rb
@@ -0,0 +1,7 @@
+$NetBSD: patch-rb,v 1.1 2009/10/11 10:49:56 tnn Exp $
+
+--- browser/branding/unofficial/configure.sh.orig 2009-08-24 17:52:35.000000000 +0200
++++ browser/branding/unofficial/configure.sh
+@@ -1 +1 @@
+-MOZ_APP_DISPLAYNAME="Shiretoko"
++MOZ_APP_DISPLAYNAME="Browser"
diff --git a/devel/xulrunner/patches/patch-rc b/devel/xulrunner/patches/patch-rc
new file mode 100644
index 00000000000..69d6ef5ed3e
--- /dev/null
+++ b/devel/xulrunner/patches/patch-rc
@@ -0,0 +1,12 @@
+$NetBSD: patch-rc,v 1.1 2009/10/11 10:49:56 tnn Exp $
+
+--- browser/branding/unofficial/locales/en-US/brand.dtd.orig 2009-08-24 17:52:36.000000000 +0200
++++ browser/branding/unofficial/locales/en-US/brand.dtd
+@@ -1,5 +1,5 @@
+-<!ENTITY brandShortName "Shiretoko">
+-<!ENTITY brandFullName "Shiretoko">
++<!ENTITY brandShortName "Browser">
++<!ENTITY brandFullName "Browser">
+ <!ENTITY vendorShortName "mozilla.org">
+ <!ENTITY logoCopyright " ">
+