summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authortnn <tnn>2011-07-11 20:46:35 +0000
committertnn <tnn>2011-07-11 20:46:35 +0000
commitba932f82a9e5f5851260bc109cc9be5b3c9457ef (patch)
treee3ccc8e2df3a97e039799fabde69a1e0bfbccde8 /www
parent59a57b2a109310c0328af51813680951ffba9837 (diff)
downloadpkgsrc-ba932f82a9e5f5851260bc109cc9be5b3c9457ef.tar.gz
Update to seamonkey-2.2.
Based on the mozilla-5.0 branch. SeaMonkey 2.2 contains the following major changes relative to SeaMonkey 2.1: Windows: Bundled extensions/add-ons are no longer optional in SeaMonkey's installer. Archive options can now be changed from the Copies & Folders Account Settings pane. Mozilla platform changes CSS Animations are now supported. Improved canvas, JavaScript, memory, and networking performance. Improved standards support for HTML5, XHR, MathML, SMIL, and canvas. Improved spell checking for some locales. WebGL content can no longer load cross-domain textures. Background tabs have setTimeout and setInterval clamped to 1000ms to improve performance.
Diffstat (limited to 'www')
-rw-r--r--www/seamonkey/Makefile14
-rw-r--r--www/seamonkey/PLIST252
-rw-r--r--www/seamonkey/distinfo87
-rw-r--r--www/seamonkey/options.mk4
-rw-r--r--www/seamonkey/patches/patch-aa30
-rw-r--r--www/seamonkey/patches/patch-aa-toplevel24
-rw-r--r--www/seamonkey/patches/patch-ab28
-rw-r--r--www/seamonkey/patches/patch-ac14
-rw-r--r--www/seamonkey/patches/patch-ad2
-rw-r--r--www/seamonkey/patches/patch-ae13
-rw-r--r--www/seamonkey/patches/patch-aj10
-rw-r--r--www/seamonkey/patches/patch-ak30
-rw-r--r--www/seamonkey/patches/patch-al16
-rw-r--r--www/seamonkey/patches/patch-ao19
-rw-r--r--www/seamonkey/patches/patch-ap13
-rw-r--r--www/seamonkey/patches/patch-aq16
-rw-r--r--www/seamonkey/patches/patch-ar39
-rw-r--r--www/seamonkey/patches/patch-as37
-rw-r--r--www/seamonkey/patches/patch-at20
-rw-r--r--www/seamonkey/patches/patch-au24
-rw-r--r--www/seamonkey/patches/patch-ax10
-rw-r--r--www/seamonkey/patches/patch-bb19
-rw-r--r--www/seamonkey/patches/patch-bd27
-rw-r--r--www/seamonkey/patches/patch-be16
-rw-r--r--www/seamonkey/patches/patch-bf13
-rw-r--r--www/seamonkey/patches/patch-bg24
-rw-r--r--www/seamonkey/patches/patch-bi13
-rw-r--r--www/seamonkey/patches/patch-directory_c-sdk_configure.in24
-rw-r--r--www/seamonkey/patches/patch-directory_c-sdk_ldap_include_portable.h31
-rw-r--r--www/seamonkey/patches/patch-directory_c-sdk_ldap_libraries_libldap_Makefile.in18
-rw-r--r--www/seamonkey/patches/patch-ipc_chromium_src_base_debug__util__posic.cc35
-rw-r--r--www/seamonkey/patches/patch-ipc_chromium_src_base_file__util.h15
-rw-r--r--www/seamonkey/patches/patch-ipc_chromium_src_base_file__util__posix.cc14
-rw-r--r--www/seamonkey/patches/patch-ipc_chromium_src_base_platform__thread__posix.cc24
-rw-r--r--www/seamonkey/patches/patch-ipc_chromium_src_base_sys__info__posix.cc37
-rw-r--r--www/seamonkey/patches/patch-ipc_chromium_src_base_third__party_nspr_prcpucfg.h13
-rw-r--r--www/seamonkey/patches/patch-ipc_chromium_src_build_build__config.h34
-rw-r--r--www/seamonkey/patches/patch-ipc_chromium_src_chrome_common_ipc__channel__posix.h13
-rw-r--r--www/seamonkey/patches/patch-ma-toplevel6
-rw-r--r--www/seamonkey/patches/patch-mb55
-rw-r--r--www/seamonkey/patches/patch-me18
-rw-r--r--www/seamonkey/patches/patch-mh13
-rw-r--r--www/seamonkey/patches/patch-mk2
-rw-r--r--www/seamonkey/patches/patch-mm26
-rw-r--r--www/seamonkey/patches/patch-mp30
-rw-r--r--www/seamonkey/patches/patch-na122
-rw-r--r--www/seamonkey/patches/patch-nd37
-rw-r--r--www/seamonkey/patches/patch-pa11
-rw-r--r--www/seamonkey/patches/patch-pb12
-rw-r--r--www/seamonkey/patches/patch-pc11
-rw-r--r--www/seamonkey/patches/patch-pd6
-rw-r--r--www/seamonkey/patches/patch-pe11
-rw-r--r--www/seamonkey/patches/patch-pf11
-rw-r--r--www/seamonkey/patches/patch-pg6
-rw-r--r--www/seamonkey/patches/patch-ra9
-rw-r--r--www/seamonkey/patches/patch-rc13
-rw-r--r--www/seamonkey/patches/patch-toolkit_toolkit-tiers.mk13
-rw-r--r--www/seamonkey/patches/patch-xg2
-rw-r--r--www/seamonkey/patches/patch-xh181
-rw-r--r--www/seamonkey/patches/patch-xi213
-rw-r--r--www/seamonkey/patches/patch-xn53
-rw-r--r--www/seamonkey/patches/patch-xo53
62 files changed, 718 insertions, 1268 deletions
diff --git a/www/seamonkey/Makefile b/www/seamonkey/Makefile
index 2391780b546..d1068b1602b 100644
--- a/www/seamonkey/Makefile
+++ b/www/seamonkey/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.49 2011/05/03 12:15:17 tnn Exp $
+# $NetBSD: Makefile,v 1.50 2011/07/11 20:46:35 tnn Exp $
#
DISTNAME= seamonkey-${SM_VER}.source
PKGNAME= seamonkey-${SM_VER}
-SM_VER= 2.0.14
+SM_VER= 2.2
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_MOZILLA:=seamonkey/releases/${SM_VER}/source/}
EXTRACT_SUFX= .tar.bz2
@@ -12,24 +12,22 @@ MAINTAINER= tnn@NetBSD.org
HOMEPAGE= http://www.seamonkey-project.org/
COMMENT= Full-featured gecko-based browser
-WRKSRC= ${WRKDIR}/comm-1.9.1
+WRKSRC= ${WRKDIR}/comm-release
MOZILLA_DIR= mozilla/
-CONFIG_GUESS_OVERRIDE+= directory/c-sdk/config/autoconf/config.guess
-CONFIG_SUB_OVERRIDE+= directory/c-sdk/config/autoconf/config.sub
+CONFIG_GUESS_OVERRIDE+= ldap/sdks/c-sdk/config/autoconf/config.guess
+CONFIG_SUB_OVERRIDE+= ldap/sdks/c-sdk/config/autoconf/config.sub
CONFIGURE_ARGS+= --enable-application=suite
-CONFIGURE_ARGS+= --enable-static
ALL_ENV+= MOZILLA_PKG_NAME=seamonkey
pre-configure:
- cd ${WRKSRC}/directory/c-sdk && ${SETENV} ${CONFIGURE_ENV} autoconf
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} autoconf
cd ${WRKSRC}/mozilla && ${SETENV} ${CONFIGURE_ENV} autoconf
cd ${WRKSRC}/mozilla/js/src && ${SETENV} ${CONFIGURE_ENV} autoconf
cd ${WRKSRC}/mozilla/nsprpub && ${SETENV} ${CONFIGURE_ENV} autoconf
- cd ${WRKSRC}/directory/c-sdk && ${SETENV} ${CONFIGURE_ENV} autoconf
+ cd ${WRKSRC}/ldap/sdks/c-sdk && ${SETENV} ${CONFIGURE_ENV} autoconf
do-build:
# XXX for some reason it doesn't work unless -j is explicitly specified
diff --git a/www/seamonkey/PLIST b/www/seamonkey/PLIST
index 95da5d44ce8..6824f0c6c5f 100644
--- a/www/seamonkey/PLIST
+++ b/www/seamonkey/PLIST
@@ -1,17 +1,9 @@
-@comment $NetBSD: PLIST,v 1.20 2009/12/16 10:11:01 tnn Exp $
+@comment $NetBSD: PLIST,v 1.21 2011/07/11 20:46:35 tnn Exp $
bin/seamonkey
-lib/seamonkey/.autoreg
lib/seamonkey/README
lib/seamonkey/application.ini
lib/seamonkey/blocklist.xml
-lib/seamonkey/chrome/classic.jar
-lib/seamonkey/chrome/classic.manifest
-lib/seamonkey/chrome/comm.jar
-lib/seamonkey/chrome/comm.manifest
-lib/seamonkey/chrome/en-US.jar
-lib/seamonkey/chrome/en-US.manifest
-lib/seamonkey/chrome/gloda.jar
-lib/seamonkey/chrome/gloda.manifest
+lib/seamonkey/chrome.manifest
lib/seamonkey/chrome/icons/default/JSConsoleWindow.png
lib/seamonkey/chrome/icons/default/JSConsoleWindow16.png
lib/seamonkey/chrome/icons/default/JSConsoleWindow48.png
@@ -61,132 +53,23 @@ lib/seamonkey/chrome/icons/default/seamonkey.png
lib/seamonkey/chrome/icons/default/venkman-window.png
lib/seamonkey/chrome/icons/default/venkman-window16.png
lib/seamonkey/chrome/icons/default/venkman-window48.png
-lib/seamonkey/chrome/messenger.jar
-lib/seamonkey/chrome/messenger.manifest
-lib/seamonkey/chrome/newsblog.jar
-lib/seamonkey/chrome/newsblog.manifest
-lib/seamonkey/chrome/pippki.jar
-lib/seamonkey/chrome/pippki.manifest
-lib/seamonkey/chrome/reporter.jar
-lib/seamonkey/chrome/reporter.manifest
-lib/seamonkey/chrome/toolkit.jar
-lib/seamonkey/chrome/toolkit.manifest
-lib/seamonkey/components/FeedConverter.js
-lib/seamonkey/components/FeedProcessor.js
-lib/seamonkey/components/FeedWriter.js
-lib/seamonkey/components/NetworkGeolocationProvider.js
-lib/seamonkey/components/WebContentConverter.js
-lib/seamonkey/components/browser.xpt
-lib/seamonkey/components/glautocomp.js
-lib/seamonkey/components/jsconsole-clhandler.js
-lib/seamonkey/components/jsmimeemitter.js
+lib/seamonkey/components/binary.manifest
${PLIST.gnome}lib/seamonkey/components/libdbusservice.so
-lib/seamonkey/components/libimgicon.so
-lib/seamonkey/components/libjsd.so
${PLIST.gnome}lib/seamonkey/components/libmozgnome.so
${PLIST.gnome}lib/seamonkey/components/libnkgnomevfs.so
lib/seamonkey/components/libsuite.so
-lib/seamonkey/components/libxpinstall.so
-lib/seamonkey/components/mail.xpt
-lib/seamonkey/components/mdn-service.js
-lib/seamonkey/components/newsblog.js
-lib/seamonkey/components/nsAbAutoCompleteMyDomain.js
-lib/seamonkey/components/nsAbAutoCompleteSearch.js
-lib/seamonkey/components/nsAbLDAPAttributeMap.js
-lib/seamonkey/components/nsAboutAbout.js
-lib/seamonkey/components/nsAboutCertError.js
-lib/seamonkey/components/nsAboutFeeds.js
-lib/seamonkey/components/nsAboutRights.js
-lib/seamonkey/components/nsAboutSessionRestore.js
-lib/seamonkey/components/nsAddonRepository.js
-lib/seamonkey/components/nsBadCertHandler.js
-lib/seamonkey/components/nsBlocklistService.js
-lib/seamonkey/components/nsBrowserContentHandler.js
-lib/seamonkey/components/nsComposerCmdLineHandler.js
-lib/seamonkey/components/nsContentDispatchChooser.js
-lib/seamonkey/components/nsContentPrefService.js
-lib/seamonkey/components/nsDefaultCLH.js
-lib/seamonkey/components/nsExtensionManager.js
-lib/seamonkey/components/nsFilePicker.js
-lib/seamonkey/components/nsHandlerService.js
-lib/seamonkey/components/nsHelperAppDlg.js
-lib/seamonkey/components/nsLDAPProtocolHandler.js
-lib/seamonkey/components/nsLivemarkService.js
-lib/seamonkey/components/nsLoginInfo.js
-lib/seamonkey/components/nsLoginManager.js
-lib/seamonkey/components/nsLoginManagerPrompter.js
-lib/seamonkey/components/nsMailNewsCommandLineHandler.js
-lib/seamonkey/components/nsMsgTraitService.js
-lib/seamonkey/components/nsPlacesDBFlush.js
-lib/seamonkey/components/nsProgressDialog.js
-lib/seamonkey/components/nsProxyAutoConfig.js
-lib/seamonkey/components/nsSMTPProtocolHandler.js
-lib/seamonkey/components/nsSessionStartup.js
-lib/seamonkey/components/nsSessionStore.js
-lib/seamonkey/components/nsSidebar.js
-lib/seamonkey/components/nsSuiteDownloadManagerUI.js
-lib/seamonkey/components/nsSuiteGlue.js
-lib/seamonkey/components/nsTaggingService.js
-lib/seamonkey/components/nsTryToClose.js
-lib/seamonkey/components/nsTypeAheadFind.js
-lib/seamonkey/components/nsURLFormatter.js
-lib/seamonkey/components/nsUpdateService.js
-lib/seamonkey/components/nsWebHandlerApp.js
-lib/seamonkey/components/offlineStartup.js
-lib/seamonkey/components/pluginGlue.js
-lib/seamonkey/components/smileApplication.js
-lib/seamonkey/components/smime-service.js
-lib/seamonkey/components/storage-Legacy.js
-lib/seamonkey/components/storage-mozStorage.js
-lib/seamonkey/components/txEXSLTRegExFunctions.js
-lib/seamonkey/defaults/autoconfig/platform.js
-lib/seamonkey/defaults/autoconfig/prefcalls.js
lib/seamonkey/defaults/messenger/mailViews.dat
-lib/seamonkey/defaults/pref/browser-prefs.js
lib/seamonkey/defaults/pref/channel-prefs.js
-lib/seamonkey/defaults/pref/composer.js
-lib/seamonkey/defaults/pref/mailnews.js
-lib/seamonkey/defaults/pref/mdn.js
-lib/seamonkey/defaults/pref/reporter.js
-lib/seamonkey/defaults/pref/smime.js
-lib/seamonkey/defaults/pref/suite-l10n.js
-lib/seamonkey/defaults/profile/bookmarks.html
-lib/seamonkey/defaults/profile/chrome/userChrome-example.css
-lib/seamonkey/defaults/profile/chrome/userContent-example.css
lib/seamonkey/defaults/profile/localstore.rdf
-lib/seamonkey/defaults/profile/mimeTypes.rdf
lib/seamonkey/defaults/profile/panels.rdf
-lib/seamonkey/defaults/profile/search.rdf
+lib/seamonkey/dependentlibs.list
lib/seamonkey/dictionaries/en-US.aff
lib/seamonkey/dictionaries/en-US.dic
-lib/seamonkey/extensions/inspector@mozilla.org/chrome.manifest
-lib/seamonkey/extensions/inspector@mozilla.org/chrome/inspector.jar
-lib/seamonkey/extensions/inspector@mozilla.org/components/inspector-cmdline.js
-lib/seamonkey/extensions/inspector@mozilla.org/defaults/preferences/inspector.js
-lib/seamonkey/extensions/inspector@mozilla.org/install.rdf
-lib/seamonkey/extensions/inspector@mozilla.org/platform/Linux/chrome/icons/default/winInspectorMain.xpm
-lib/seamonkey/extensions/inspector@mozilla.org/platform/Linux/chrome/icons/default/winInspectorMain16.xpm
-lib/seamonkey/extensions/modern@themes.mozilla.org/chrome.manifest
-lib/seamonkey/extensions/modern@themes.mozilla.org/chrome/modern.jar
-lib/seamonkey/extensions/modern@themes.mozilla.org/icon.png
-lib/seamonkey/extensions/modern@themes.mozilla.org/install.rdf
-lib/seamonkey/extensions/modern@themes.mozilla.org/preview.png
-lib/seamonkey/extensions/{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}/chrome.manifest
-lib/seamonkey/extensions/{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}/chrome/chatzilla.jar
-lib/seamonkey/extensions/{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}/chrome/icons/default/chatzilla-window.xpm
-lib/seamonkey/extensions/{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}/chrome/icons/default/chatzilla-window16.xpm
-lib/seamonkey/extensions/{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}/components/chatzilla-service.js
-lib/seamonkey/extensions/{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}/install.rdf
-lib/seamonkey/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/icon.png
-lib/seamonkey/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/install.rdf
-lib/seamonkey/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/preview.png
-lib/seamonkey/extensions/{f13b157f-b174-47e7-a34d-4815ddfdfeb8}/chrome.manifest
-lib/seamonkey/extensions/{f13b157f-b174-47e7-a34d-4815ddfdfeb8}/chrome/venkman.jar
-lib/seamonkey/extensions/{f13b157f-b174-47e7-a34d-4815ddfdfeb8}/components/venkman-service.js
-lib/seamonkey/extensions/{f13b157f-b174-47e7-a34d-4815ddfdfeb8}/install.rdf
-lib/seamonkey/greprefs/all.js
-lib/seamonkey/greprefs/security-prefs.js
-lib/seamonkey/greprefs/xpinstall.js
+lib/seamonkey/distribution/extensions/inspector@mozilla.org.xpi
+lib/seamonkey/distribution/extensions/{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}.xpi
+lib/seamonkey/distribution/extensions/{f13b157f-b174-47e7-a34d-4815ddfdfeb8}.xpi
+lib/seamonkey/extensions/modern@themes.mozilla.org.xpi
+lib/seamonkey/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
lib/seamonkey/icons/updater.png
lib/seamonkey/isp/SpamAssassin.sfd
lib/seamonkey/isp/SpamPal.sfd
@@ -196,7 +79,7 @@ lib/seamonkey/libfreebl3.chk
lib/seamonkey/libfreebl3.so
lib/seamonkey/libldap60.so
lib/seamonkey/libldif60.so
-lib/seamonkey/libmozjs.so
+lib/seamonkey/libmozalloc.so
lib/seamonkey/libnspr4.so
lib/seamonkey/libnss3.so
lib/seamonkey/libnssckbi.so
@@ -211,121 +94,20 @@ lib/seamonkey/libsoftokn3.chk
lib/seamonkey/libsoftokn3.so
lib/seamonkey/libssl3.so
lib/seamonkey/libxpcom.so
-lib/seamonkey/libxpcom_core.so
+lib/seamonkey/libxul.so
lib/seamonkey/license.txt
-lib/seamonkey/modules/DownloadLastDir.jsm
-lib/seamonkey/modules/DownloadUtils.jsm
-lib/seamonkey/modules/ISO8601DateUtils.jsm
-lib/seamonkey/modules/MailUtils.js
-lib/seamonkey/modules/Microformats.js
-lib/seamonkey/modules/PlacesDBUtils.jsm
-lib/seamonkey/modules/PluralForm.jsm
-lib/seamonkey/modules/Sanitizer.jsm
-lib/seamonkey/modules/SpatialNavigation.js
-lib/seamonkey/modules/StringBundle.js
-lib/seamonkey/modules/WindowDraggingUtils.jsm
-lib/seamonkey/modules/XPCOMUtils.jsm
-lib/seamonkey/modules/autoconfigUtils.jsm
-lib/seamonkey/modules/debug.js
-lib/seamonkey/modules/errUtils.js
-lib/seamonkey/modules/folderUtils.jsm
-lib/seamonkey/modules/gloda/collection.js
-lib/seamonkey/modules/gloda/connotent.js
-lib/seamonkey/modules/gloda/databind.js
-lib/seamonkey/modules/gloda/datamodel.js
-lib/seamonkey/modules/gloda/datastore.js
-lib/seamonkey/modules/gloda/dbview.js
-lib/seamonkey/modules/gloda/everybody.js
-lib/seamonkey/modules/gloda/explattr.js
-lib/seamonkey/modules/gloda/facet.js
-lib/seamonkey/modules/gloda/fundattr.js
-lib/seamonkey/modules/gloda/gloda.js
-lib/seamonkey/modules/gloda/index_ab.js
-lib/seamonkey/modules/gloda/index_msg.js
-lib/seamonkey/modules/gloda/indexer.js
-lib/seamonkey/modules/gloda/log4moz.js
-lib/seamonkey/modules/gloda/mimeTypeCategories.js
-lib/seamonkey/modules/gloda/mimemsg.js
-lib/seamonkey/modules/gloda/msg_search.js
-lib/seamonkey/modules/gloda/noun_freetag.js
-lib/seamonkey/modules/gloda/noun_mimetype.js
-lib/seamonkey/modules/gloda/noun_tag.js
-lib/seamonkey/modules/gloda/public.js
-lib/seamonkey/modules/gloda/query.js
-lib/seamonkey/modules/gloda/suffixtree.js
-lib/seamonkey/modules/gloda/utils.js
-lib/seamonkey/modules/iteratorUtils.jsm
-lib/seamonkey/modules/jsTreeSelection.js
-lib/seamonkey/modules/templateUtils.js
-lib/seamonkey/modules/traceHelper.js
-lib/seamonkey/modules/utils.js
-lib/seamonkey/modules/virtualFolderWrapper.js
lib/seamonkey/mozilla-xremote-client
+lib/seamonkey/omni.jar
lib/seamonkey/platform.ini
-lib/seamonkey/plugins/libnullplugin.so
+lib/seamonkey/plugin-container
lib/seamonkey/removed-files
-lib/seamonkey/res/EditorOverride.css
-lib/seamonkey/res/arrow.gif
-lib/seamonkey/res/arrowd.gif
-lib/seamonkey/res/broken-image.gif
-lib/seamonkey/res/charsetData.properties
-lib/seamonkey/res/charsetalias.properties
-lib/seamonkey/res/contenteditable.css
-lib/seamonkey/res/designmode.css
-lib/seamonkey/res/dtd/mathml.dtd
-lib/seamonkey/res/dtd/xhtml11.dtd
-lib/seamonkey/res/entityTables/html40Latin1.properties
-lib/seamonkey/res/entityTables/html40Special.properties
-lib/seamonkey/res/entityTables/html40Symbols.properties
-lib/seamonkey/res/entityTables/htmlEntityVersions.properties
-lib/seamonkey/res/entityTables/mathml20.properties
-lib/seamonkey/res/entityTables/transliterate.properties
-lib/seamonkey/res/fonts/mathfont.properties
-lib/seamonkey/res/fonts/mathfontSTIXNonUnicode.properties
-lib/seamonkey/res/fonts/mathfontSTIXSize1.properties
-lib/seamonkey/res/fonts/mathfontStandardSymbolsL.properties
-lib/seamonkey/res/fonts/mathfontUnicode.properties
-lib/seamonkey/res/forms.css
-lib/seamonkey/res/grabber.gif
-lib/seamonkey/res/hiddenWindow.html
-lib/seamonkey/res/html.css
-lib/seamonkey/res/html/folder.png
-lib/seamonkey/res/langGroups.properties
-lib/seamonkey/res/language.properties
-lib/seamonkey/res/loading-image.gif
-lib/seamonkey/res/mathml.css
-lib/seamonkey/res/quirk.css
-lib/seamonkey/res/svg.css
-lib/seamonkey/res/table-add-column-after-active.gif
-lib/seamonkey/res/table-add-column-after-hover.gif
-lib/seamonkey/res/table-add-column-after.gif
-lib/seamonkey/res/table-add-column-before-active.gif
-lib/seamonkey/res/table-add-column-before-hover.gif
-lib/seamonkey/res/table-add-column-before.gif
-lib/seamonkey/res/table-add-row-after-active.gif
-lib/seamonkey/res/table-add-row-after-hover.gif
-lib/seamonkey/res/table-add-row-after.gif
-lib/seamonkey/res/table-add-row-before-active.gif
-lib/seamonkey/res/table-add-row-before-hover.gif
-lib/seamonkey/res/table-add-row-before.gif
-lib/seamonkey/res/table-remove-column-active.gif
-lib/seamonkey/res/table-remove-column-hover.gif
-lib/seamonkey/res/table-remove-column.gif
-lib/seamonkey/res/table-remove-row-active.gif
-lib/seamonkey/res/table-remove-row-hover.gif
-lib/seamonkey/res/table-remove-row.gif
-lib/seamonkey/res/ua.css
-lib/seamonkey/res/unixcharset.properties
-lib/seamonkey/res/viewsource.css
lib/seamonkey/run-mozilla.sh
lib/seamonkey/seamonkey
lib/seamonkey/seamonkey-bin
-lib/seamonkey/searchplugins/dmoz.png
-lib/seamonkey/searchplugins/dmoz.src
-lib/seamonkey/searchplugins/google.png
-lib/seamonkey/searchplugins/google.src
-lib/seamonkey/searchplugins/jeeves.png
-lib/seamonkey/searchplugins/jeeves.src
+lib/seamonkey/searchplugins/creativecommons.xml
+lib/seamonkey/searchplugins/google.xml
+lib/seamonkey/searchplugins/wikipedia.xml
+lib/seamonkey/searchplugins/yahoo.xml
lib/seamonkey/update.locale
lib/seamonkey/updater
lib/seamonkey/updater.ini
diff --git a/www/seamonkey/distinfo b/www/seamonkey/distinfo
index e57764f2130..09fc2a98d5d 100644
--- a/www/seamonkey/distinfo
+++ b/www/seamonkey/distinfo
@@ -1,64 +1,69 @@
-$NetBSD: distinfo,v 1.60 2011/05/03 12:15:17 tnn Exp $
+$NetBSD: distinfo,v 1.61 2011/07/11 20:46:36 tnn Exp $
-SHA1 (seamonkey-2.0.14.source.tar.bz2) = 363b63c16f8e23c84cf55f886b1ae4b9ea266d46
-RMD160 (seamonkey-2.0.14.source.tar.bz2) = 7f40af9c3b838b687b80c3b307f170b06d9d3255
-Size (seamonkey-2.0.14.source.tar.bz2) = 61744542 bytes
-SHA1 (patch-aa) = 0d46562e73fce3fc1bf590ac93a28b2202a8e214
-SHA1 (patch-aa-toplevel) = 458051a1b3318b49124192c6e97cb9ed0d92dead
-SHA1 (patch-ab) = c7a6961362b131f0a39f65355562b115fae3be85
-SHA1 (patch-ac) = e181323e153ee061b7f3644b599294a4c4a3e3e8
+SHA1 (seamonkey-2.2.source.tar.bz2) = bb2181fbbb4aa16e51899b483acadb31f7e0cbbc
+RMD160 (seamonkey-2.2.source.tar.bz2) = cfad0460357c357df7a5936c0bd10374c18eac04
+Size (seamonkey-2.2.source.tar.bz2) = 87478968 bytes
+SHA1 (patch-aa) = e706aec36f62f3c96998a50d907bb4bd1452f156
+SHA1 (patch-aa-toplevel) = 8089c05ca0e49b695f8ea5e5e62925ff291fc11c
+SHA1 (patch-ab) = c2bffac6626ce22d15855a80d84ffac6cbd52fe2
+SHA1 (patch-ac) = cbbc17c71dd96969079fc7268b15f822a29d01aa
SHA1 (patch-ad) = f49147e2fa28400986b659ec50918e3835db0105
-SHA1 (patch-ae) = cf4cb737fc29ef7ac6ffe1b3bc504743441e4828
+SHA1 (patch-ae) = fbac9ab81d0c098d29d9f8fa1af47bed634e8bfd
SHA1 (patch-af) = 16cae98e043dedeb6331212fd15ce914196fe8c7
SHA1 (patch-ag) = 22cca24b67c85fbf9bafb35441dfcb460ecde6bf
SHA1 (patch-ah) = 10c80ec60801295b037b4a45fbad8937922da235
SHA1 (patch-ai) = 4d701ece9a2aaa0b640c189745fa7e731617fb7c
-SHA1 (patch-aj) = 89d390f7eeeb52256265955610b3cad4b62c5aa7
-SHA1 (patch-ak) = dca377e3cb733a48c3aa071a74bba8d2535ee161
+SHA1 (patch-aj) = c6d14934700c2f9fc12c00474ef321f8265f4527
+SHA1 (patch-ak) = 0f379cc1e9d972dbb3e18a04605e4c19b3dc54ee
+SHA1 (patch-al) = 616f500ba2af8f522454858ed0d845a127f41a96
SHA1 (patch-am) = 81bcda476a7b54050ed1ae87bd47cf9de8f19919
SHA1 (patch-an) = e30362e1a07c6c8e96dc81d134517685c3f19ca9
-SHA1 (patch-ao) = 6307d82a2eb65131908b0d4d05da7433b6cf38d1
-SHA1 (patch-ap) = 3397db3184919afa73767c8c68c6c75c4a0ba33a
-SHA1 (patch-aq) = ac5cd0e83f0c166fae6b033ad960d7820bb7add6
-SHA1 (patch-ar) = dab688f86340bccb80db5531f4e36cb8f50254e4
-SHA1 (patch-as) = 7e283a79231909ab5fb60740b5e36c8c0744e025
-SHA1 (patch-at) = 569a874251a1920fa916d448c108910348cd75dc
-SHA1 (patch-au) = d381e6c0d6a791c2d72754f847df0e2210265fd8
+SHA1 (patch-ao) = 42c268711a8bb24c3bde3c5bf74bb5a9f73ff21a
+SHA1 (patch-as) = 501c9379a31c32dae38a9ccfd0305f3cc45d3e4b
+SHA1 (patch-at) = fbc5f5fd4d242d4178406d427b848aca205792c5
+SHA1 (patch-au) = c0b96c657e2ea5fd4fe552c0551420c0d385966a
SHA1 (patch-av) = 2cb2e3d5b94f7b83117eb752d4410638daa6ae73
SHA1 (patch-aw) = 55d2769dfb6d0c65bd2072c1a7c82cfef0fd5404
-SHA1 (patch-ax) = 1dbdcd2e9a791a686fd42452ccf486d14cdf2a57
+SHA1 (patch-ax) = 4d0b83ab7592ee8c674a176e64dbc3ddb5b9d3b5
SHA1 (patch-ay) = 5aaeb992cab024fb2b6035ddee239a8534b23aee
SHA1 (patch-az) = 0e04c1c740ad3f1462a6cda4a3832378acefb600
SHA1 (patch-ba) = fd28f3b24848e7221078ef692eef7ccae8625987
-SHA1 (patch-bb) = 70d1d1fed2f611fa0185ca5736dae26c8cbc2f12
-SHA1 (patch-directory_c-sdk_configure.in) = 4d8d8c1425ca26036d8f5179f954dbea2203de36
-SHA1 (patch-directory_c-sdk_ldap_include_portable.h) = 0e1c188af241289ce0a9fc252a063a69f3d504a4
-SHA1 (patch-directory_c-sdk_ldap_libraries_libldap_Makefile.in) = 6e9788e5e9575fc0813f5f0e178cc2f5659ea781
+SHA1 (patch-bd) = c2296fe47f6f9e38d424ef27ca367a257188e2d1
+SHA1 (patch-be) = 8783683729e40b5deec2e33fbc50e63e1357aea3
+SHA1 (patch-bf) = 1286afe7d7858d287f0368cff2262d5ad1c4725e
+SHA1 (patch-bg) = b30ecac3ee44d749a3eb125bbcd5e24e31b23243
+SHA1 (patch-bi) = c47064c71c6fc960a1a9afb735f249f3f7d0d09d
+SHA1 (patch-directory_c-sdk_ldap_include_portable.h) = 5f9f69ac57da0c830f2fa33e82057a1eb5907249
+SHA1 (patch-ipc_chromium_src_base_debug__util__posic.cc) = bc98be56df67b1a3c2b1174613f0d6c3134a2c8e
+SHA1 (patch-ipc_chromium_src_base_file__util.h) = 51dc4a5a32da8e7d7eb3c026e3ebaae7858564cf
+SHA1 (patch-ipc_chromium_src_base_file__util__posix.cc) = ce60e80e3ddc417c1fa867f6f4258aece166fc51
+SHA1 (patch-ipc_chromium_src_base_platform__thread__posix.cc) = a68ba3b5b891bed422c751a924a7d1b792211db1
+SHA1 (patch-ipc_chromium_src_base_sys__info__posix.cc) = 2dc6cd2bac4bc45406709090369f2901090d855f
+SHA1 (patch-ipc_chromium_src_base_third__party_nspr_prcpucfg.h) = 648804b5b2cccba36ac14e693f5dac16c55dcb32
+SHA1 (patch-ipc_chromium_src_build_build__config.h) = a1a2a267b89533d6097edb0fa8e5480ddba51291
+SHA1 (patch-ipc_chromium_src_chrome_common_ipc__channel__posix.h) = 202f215aa78b3325b1ea1d68be5b49d46bc10dd0
SHA1 (patch-ma) = 9b9bc5e5ced5831aa14e1549ed2ddf0b9c2ce986
-SHA1 (patch-ma-toplevel) = 460326a0551fecd13ca188cff907c89cce359c31
-SHA1 (patch-mb) = 8bdd47c4e57ae63c971766286ce8626d3341c92e
+SHA1 (patch-ma-toplevel) = 67ea79e29f6e9737ce76b8541ab8b3860eb02561
+SHA1 (patch-mb) = 8481afe61902cb16dfe35a5ee015cb4d43a54236
SHA1 (patch-md) = 932c2b0237c9690da06533f0abfeabddf32d8f3e
-SHA1 (patch-me) = b7b853887b08fc55b45dbd19cd5a4a24f6c5224d
+SHA1 (patch-me) = 66c15af6d7b07a4fec7ecd06cb9c9278b35a123e
SHA1 (patch-mf) = bc693a247f306f414f54bf515eeb8f36841a46b8
SHA1 (patch-mg) = f33a92539ebe171b7bbbd83a54ad9ac2fdca249a
+SHA1 (patch-mh) = 36a434488f3389407c6ebce610c176464bc03c45
SHA1 (patch-mi) = c49e917409c0542e69f57fe5571a16b6c2e4aa9a
SHA1 (patch-mj) = 9b28802eb665a7a77e879ec44e9da52e2e79ec8b
SHA1 (patch-mk) = 3c25934e0c7b9277d96a5635b961e1fb6682ab7b
SHA1 (patch-ml) = ef7d87fff48f298f4c1ed037439eaf8c7c574f68
-SHA1 (patch-mm) = 1ef13fbf0872484778cb8edfff769214ea9a39a4
+SHA1 (patch-mm) = f54286fe1acef3202d728b3e83cbd65cffe8ab12
SHA1 (patch-mn) = 3a1c25a3f5a1532331424fc1e720f35cd0ed5d5b
-SHA1 (patch-mp) = 24bac4975548f0a058c2770865706fedb27aa0e6
-SHA1 (patch-na) = b7c0feed9546ca1168c696bf7ea6bbc8ea4564c4
-SHA1 (patch-nd) = 007b8d1310990253e86dab579397b02ced42cb71
-SHA1 (patch-pa) = ee713ec24b453aaf3f1964e8100b26ecae3bf6a4
-SHA1 (patch-pb) = fede79d8fec147b4f79edbdf571474365a6dba25
-SHA1 (patch-pc) = 5a74b0476c0be0bf4e0c22fbe78b6dbe63beae08
-SHA1 (patch-pd) = b2e18e7b09123576d07ae052b2f2599217d6f3ce
-SHA1 (patch-pe) = 218275a25df933ed548395f4338a5cb2f045d4a6
-SHA1 (patch-pf) = 88c39f735087fa285f3f75bfdaa6dc571da67eb9
-SHA1 (patch-pg) = 5268f7e7b22f89f55db44537c32bf5ac73630168
-SHA1 (patch-ra) = 70d5130250a4ac6825112e64006b233f4b802e9c
-SHA1 (patch-rc) = 7e6a38bd3eabe500bcf3c47be7f4bd5768f24c39
+SHA1 (patch-mp) = 673ba7fb0426d13699ead5fbcf762d8adb6baf40
+SHA1 (patch-pa) = a41a2dadd3b1c902f85632a4b57008a789b269bc
+SHA1 (patch-pb) = 11dada932534519ccf54998d027cf6f69d7b0d1d
+SHA1 (patch-pc) = 44e3f13be743971839e62fa313000ebc30275ed4
+SHA1 (patch-pd) = 1f12080244c75f42e4edbe623a15fd2ac6abd6d4
+SHA1 (patch-pg) = e022af26945893d2a61ec4ca3a414ccb6150a235
+SHA1 (patch-rc) = b3b0577e9421fcdcab5bcd29ab7fa12d2ba2ac45
+SHA1 (patch-toolkit_toolkit-tiers.mk) = 76de271f8a2b08cc3b809e3c1635a1313d3feced
SHA1 (patch-xa) = 0acaf27d8687c7cb5a46fc3773097a3dea4c75d9
SHA1 (patch-xb) = 07a90e393dbb38a98e8d9954387757d21d3e65cf
SHA1 (patch-xc) = 98c8b4193dde73f28747c8ac870071f1debbe9f0
@@ -66,11 +71,11 @@ SHA1 (patch-xd) = 927a73f9ba1f516a10e83dbe5f00744acc6a88df
SHA1 (patch-xe) = 945bce0dc7347392b992b9698597d8584557d51e
SHA1 (patch-xf) = 34d671d4e615a694e3add3303eaae5e23c7df3ac
SHA1 (patch-xg) = 4fdf27307cfb3bf3cb33440da75704b149fc2aaa
-SHA1 (patch-xh) = a5a2923069d5819e979a445d0ea35cde74699bd7
-SHA1 (patch-xi) = db8359452da08413ac6672010f2f05766571464c
SHA1 (patch-xj) = 452d87313b29510fb02e804545c17193e2c822bf
SHA1 (patch-xk) = b50b34041b75b1590f021592b1e26893ae458a01
SHA1 (patch-xl) = 1425f9e5fd0dc49f3204730d1d88b9600d6475e4
SHA1 (patch-xm) = 270e762936fe686cc55b820d52e15421b27c7c2c
+SHA1 (patch-xn) = edd741e4e71ecb44fc58750727aac473ff2e628e
+SHA1 (patch-xo) = 02c913b01bba8afd70ea28c0dd752ebf4b696e0c
SHA1 (patch-za) = ae79f952b5a66655ecaf9671b98ebc91406ba085
SHA1 (patch-zc) = 2f73cb72bd6c10830e7a2b8ad3b1f769c6afdb3c
diff --git a/www/seamonkey/options.mk b/www/seamonkey/options.mk
index 2ccc9a918b9..3fc05cd54b6 100644
--- a/www/seamonkey/options.mk
+++ b/www/seamonkey/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.17 2009/11/29 02:22:35 tnn Exp $
+# $NetBSD: options.mk,v 1.18 2011/07/11 20:46:36 tnn Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.seamonkey
PKG_SUPPORTED_OPTIONS= debug mozilla-jemalloc gnome
@@ -10,7 +10,7 @@ PKG_SUGGESTED_OPTIONS+= mozilla-jemalloc
.endif
.if !empty(MACHINE_ARCH:Mi386) || !empty(MACHINE_ARCH:Msparc) || \
- !empty(MACHINE_ARCH:Marm)
+ !empty(MACHINE_ARCH:Marm) || !empty(MACHINE_ARCH:Mx86_64)
PKG_SUPPORTED_OPTIONS+= mozilla-jit
PKG_SUGGESTED_OPTIONS+= mozilla-jit
.endif
diff --git a/www/seamonkey/patches/patch-aa b/www/seamonkey/patches/patch-aa
index 2755f8124e1..f1481ae6b21 100644
--- a/www/seamonkey/patches/patch-aa
+++ b/www/seamonkey/patches/patch-aa
@@ -1,9 +1,9 @@
-$NetBSD: patch-aa,v 1.3 2010/03/16 10:59:10 tnn Exp $
+$NetBSD: patch-aa,v 1.4 2011/07/11 20:46:36 tnn Exp $
---- mozilla/configure.in.orig 2009-10-16 17:13:35.000000000 +0200
+--- mozilla/configure.in.orig 2010-12-15 01:02:33.000000000 +0000
+++ mozilla/configure.in
-@@ -1799,7 +1799,7 @@ case "$target" in
- fi
+@@ -2076,7 +2076,7 @@ case "$target" in
+ MOZ_FIX_LINK_PATHS='-Wl,-executable_path,$(LIBXUL_DIST)/bin'
;;
-*-freebsd*)
@@ -11,17 +11,17 @@ $NetBSD: patch-aa,v 1.3 2010/03/16 10:59:10 tnn Exp $
if test `test -x /usr/bin/objformat && /usr/bin/objformat || echo elf` != "elf"; then
DLL_SUFFIX=".so.1.0"
DSO_LDOPTS="-shared"
-@@ -1813,6 +1813,9 @@ case "$target" in
- # MKSHLIB_FORCE_ALL='-Wl,-Bforcearchive'
- # MKSHLIB_UNFORCE_ALL=''
- # fi
+@@ -2084,6 +2084,9 @@ case "$target" in
+ if test ! "$GNU_CC"; then
+ DSO_LDOPTS="-Bshareable $DSO_LDOPTS"
+ fi
+ if test "$LIBRUNPATH"; then
+ DSO_LDOPTS="-Wl,-R$LIBRUNPATH $DSO_LDOPTS"
+ fi
;;
- *-hpux*)
-@@ -3043,6 +3046,9 @@ dnl ====================================
+ ia64*-hpux*)
+@@ -3380,6 +3383,9 @@ dnl ====================================
case $target in
*-hpux11.*)
;;
@@ -31,8 +31,8 @@ $NetBSD: patch-aa,v 1.3 2010/03/16 10:59:10 tnn Exp $
*)
AC_CHECK_LIB(c_r, gethostbyname_r)
;;
-@@ -4158,6 +4164,14 @@ else
- fi
+@@ -4727,6 +4733,14 @@ if test -n "$YASM"; then
+ _YASM_BUILD=` echo ${YASM_VERSION} | $AWK -F\. '{ print $4 }'`
fi
+if test -n "${LIBXUL_SDK_DIR}"; then
@@ -46,7 +46,7 @@ $NetBSD: patch-aa,v 1.3 2010/03/16 10:59:10 tnn Exp $
if test -z "$SKIP_LIBRARY_CHECKS"; then
dnl system JPEG support
dnl ========================================================
-@@ -8375,7 +8389,8 @@ rm -f confdefs.h.save
+@@ -9383,7 +9397,8 @@ rm -f confdefs.h.save
mv confdefs.h confdefs.h.save
egrep -v "$_EGREP_PATTERN" confdefs.h.save > confdefs.h
AC_OUTPUT_MAKE_DEFS()
@@ -56,9 +56,9 @@ $NetBSD: patch-aa,v 1.3 2010/03/16 10:59:10 tnn Exp $
AC_SUBST(MOZ_DEFINES)
rm -f confdefs.h
mv confdefs.h.save confdefs.h
-@@ -8466,6 +8481,8 @@ if test -z "$MOZ_NATIVE_NSPR"; then
+@@ -9493,6 +9508,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
+ if test "$OS_ARCH" != "WINNT" -a "$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}"
diff --git a/www/seamonkey/patches/patch-aa-toplevel b/www/seamonkey/patches/patch-aa-toplevel
index 6e109e638d8..9bd3018481d 100644
--- a/www/seamonkey/patches/patch-aa-toplevel
+++ b/www/seamonkey/patches/patch-aa-toplevel
@@ -1,9 +1,9 @@
-$NetBSD: patch-aa-toplevel,v 1.1 2009/11/29 00:40:42 tnn Exp $
+$NetBSD: patch-aa-toplevel,v 1.2 2011/07/11 20:46:36 tnn Exp $
---- configure.in.orig 2009-10-25 15:29:01.000000000 +0100
+--- configure.in.orig 2011-07-06 08:40:27.000000000 +0000
+++ configure.in
-@@ -1963,7 +1963,7 @@ case "$target" in
- fi
+@@ -1974,7 +1974,7 @@ ld.])
+ MOZ_FIX_LINK_PATHS='-Wl,-executable_path,$(LIBXUL_DIST)/bin'
;;
-*-freebsd*)
@@ -11,17 +11,17 @@ $NetBSD: patch-aa-toplevel,v 1.1 2009/11/29 00:40:42 tnn Exp $
if test `test -x /usr/bin/objformat && /usr/bin/objformat || echo elf` != "elf"; then
DLL_SUFFIX=".so.1.0"
DSO_LDOPTS="-shared"
-@@ -1977,6 +1977,9 @@ case "$target" in
- # MKSHLIB_FORCE_ALL='-Wl,-Bforcearchive'
- # MKSHLIB_UNFORCE_ALL=''
- # fi
+@@ -1982,6 +1982,9 @@ ld.])
+ if test ! "$GNU_CC"; then
+ DSO_LDOPTS="-Bshareable $DSO_LDOPTS"
+ fi
+ if test "$LIBRUNPATH"; then
+ DSO_LDOPTS="-Wl,-R$LIBRUNPATH $DSO_LDOPTS"
+ fi
;;
- *-hpux*)
-@@ -3173,6 +3176,9 @@ dnl ====================================
+ ia64*-hpux*)
+@@ -3222,6 +3225,9 @@ dnl ====================================
case $target in
*-hpux11.*)
;;
@@ -31,7 +31,7 @@ $NetBSD: patch-aa-toplevel,v 1.1 2009/11/29 00:40:42 tnn Exp $
*)
AC_CHECK_LIB(c_r, gethostbyname_r)
;;
-@@ -4233,6 +4239,14 @@ else
+@@ -4333,6 +4339,14 @@ else
fi
fi
@@ -46,7 +46,7 @@ $NetBSD: patch-aa-toplevel,v 1.1 2009/11/29 00:40:42 tnn Exp $
if test -z "$SKIP_LIBRARY_CHECKS"; then
dnl system JPEG support
dnl ========================================================
-@@ -7513,7 +7527,8 @@ rm -f confdefs.h.save
+@@ -7294,7 +7308,8 @@ rm -f confdefs.h.save
mv confdefs.h confdefs.h.save
egrep -v "$_EGREP_PATTERN" confdefs.h.save > confdefs.h
AC_OUTPUT_MAKE_DEFS()
diff --git a/www/seamonkey/patches/patch-ab b/www/seamonkey/patches/patch-ab
index 806aebe8155..d626f33034e 100644
--- a/www/seamonkey/patches/patch-ab
+++ b/www/seamonkey/patches/patch-ab
@@ -1,21 +1,17 @@
-$NetBSD: patch-ab,v 1.10 2010/03/16 10:59:10 tnn Exp $
+$NetBSD: patch-ab,v 1.11 2011/07/11 20:46:36 tnn Exp $
---- mozilla/nsprpub/pr/include/md/_netbsd.h.orig 2009-06-29 18:15:06.000000000 +0200
+--- mozilla/nsprpub/pr/include/md/_netbsd.h.orig 2010-05-03 18:21:00.000000000 +0000
+++ mozilla/nsprpub/pr/include/md/_netbsd.h
-@@ -94,6 +94,12 @@
- #define _PR_INET6_PROBE
- #endif
-
-+#if __NetBSD_Version__ >= 106370000
-+/* NetBSD 1.6ZK */
-+#define _PR_HAVE_GETPROTO_R
-+#define _PR_HAVE_GETPROTO_R_INT
-+#endif
-+
- #define USE_SETJMP
-
- #ifndef _PR_PTHREADS
-@@ -107,6 +113,8 @@
+@@ -79,7 +79,7 @@
+ #define HAVE_DLL
+ #define USE_DLFCN
+ #define _PR_HAVE_SOCKADDR_LEN
+-#define _PR_NO_LARGE_FILES
++#define _PR_HAVE_LARGE_OFF_T
+ #define _PR_STAT_HAS_ST_ATIMESPEC
+ #define _PR_POLL_AVAILABLE
+ #define _PR_USE_POLL
+@@ -107,6 +107,8 @@
#define JB_SP_INDEX 2
#elif defined(__mips__)
#define JB_SP_INDEX 4
diff --git a/www/seamonkey/patches/patch-ac b/www/seamonkey/patches/patch-ac
index 32200c1dba0..33b1ba19be4 100644
--- a/www/seamonkey/patches/patch-ac
+++ b/www/seamonkey/patches/patch-ac
@@ -1,6 +1,6 @@
-$NetBSD: patch-ac,v 1.6 2010/03/16 10:59:10 tnn Exp $
+$NetBSD: patch-ac,v 1.7 2011/07/11 20:46:36 tnn Exp $
---- mozilla/nsprpub/configure.in.orig 2009-06-29 18:15:05.000000000 +0200
+--- mozilla/nsprpub/configure.in.orig 2011-02-03 20:12:03.000000000 +0000
+++ mozilla/nsprpub/configure.in
@@ -71,7 +71,7 @@ OBJDIR_NAME=.
OBJDIR_SUFFIX=OBJ
@@ -11,7 +11,7 @@ $NetBSD: patch-ac,v 1.6 2010/03/16 10:59:10 tnn Exp $
LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)'
CYGWIN_WRAPPER=
MACOS_SDK_DIR=
-@@ -1160,6 +1160,34 @@ tools are selected during the Xcode/Deve
+@@ -1311,6 +1311,34 @@ tools are selected during the Xcode/Deve
DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
MDCPUCFG_H=_freebsd.cfg
PR_MD_CSRCS=freebsd.c
@@ -46,7 +46,7 @@ $NetBSD: patch-ac,v 1.6 2010/03/16 10:59:10 tnn Exp $
;;
*-hpux*)
-@@ -1731,6 +1759,7 @@ mips-nec-sysv*)
+@@ -1925,6 +1953,7 @@ mips-nec-sysv*)
AC_DEFINE(XP_UNIX)
AC_DEFINE(NETBSD)
AC_DEFINE(HAVE_BSD_FLOCK)
@@ -54,7 +54,7 @@ $NetBSD: patch-ac,v 1.6 2010/03/16 10:59:10 tnn Exp $
if test -z "$USE_NSPR_THREADS"; then
USE_PTHREADS=1
fi
-@@ -2511,7 +2540,7 @@ if test -n "$USE_PTHREADS"; then
+@@ -2730,7 +2759,7 @@ if test -n "$USE_PTHREADS"; then
if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
ac_cv_have_dash_pthread=yes
case "$target_os" in
@@ -63,7 +63,7 @@ $NetBSD: patch-ac,v 1.6 2010/03/16 10:59:10 tnn Exp $
# Freebsd doesn't use -pthread for compiles, it uses them for linking
;;
*)
-@@ -2549,7 +2578,7 @@ if test -n "$USE_PTHREADS"; then
+@@ -2768,7 +2797,7 @@ if test -n "$USE_PTHREADS"; then
_PTHREAD_LDFLAGS=
fi
;;
@@ -72,7 +72,7 @@ $NetBSD: patch-ac,v 1.6 2010/03/16 10:59:10 tnn Exp $
AC_DEFINE(_REENTRANT)
AC_DEFINE(_THREAD_SAFE)
dnl -pthread links in -lc_r, so don't specify it explicitly.
-@@ -2630,7 +2659,7 @@ case "$target" in
+@@ -2849,7 +2878,7 @@ case "$target" in
AC_DEFINE(_PR_NEED_PTHREAD_INIT)
fi
;;
diff --git a/www/seamonkey/patches/patch-ad b/www/seamonkey/patches/patch-ad
index 0b0f5a75bc3..85cfc9af0e5 100644
--- a/www/seamonkey/patches/patch-ad
+++ b/www/seamonkey/patches/patch-ad
@@ -1,4 +1,4 @@
-$NetBSD: patch-ad,v 1.3 2010/03/16 10:59:10 tnn Exp $
+$NetBSD: patch-ad,v 1.4 2011/07/11 20:46:36 tnn Exp $
--- mozilla/xpcom/io/nsLocalFileUnix.h.orig 2009-06-29 18:15:32.000000000 +0200
+++ mozilla/xpcom/io/nsLocalFileUnix.h
diff --git a/www/seamonkey/patches/patch-ae b/www/seamonkey/patches/patch-ae
index 2fbd43f2187..6b6de9c609f 100644
--- a/www/seamonkey/patches/patch-ae
+++ b/www/seamonkey/patches/patch-ae
@@ -1,7 +1,16 @@
-$NetBSD: patch-ae,v 1.3 2010/03/16 10:59:10 tnn Exp $
+$NetBSD: patch-ae,v 1.4 2011/07/11 20:46:36 tnn Exp $
---- mozilla/nsprpub/pr/src/misc/prnetdb.c.orig 2009-06-29 18:15:07.000000000 +0200
+--- mozilla/nsprpub/pr/src/misc/prnetdb.c.orig 2010-05-03 18:21:00.000000000 +0000
+++ mozilla/nsprpub/pr/src/misc/prnetdb.c
+@@ -104,7 +104,7 @@ PRLock *_pr_dnsLock = NULL;
+ || defined(AIX4_3_PLUS) || (defined(AIX) && defined(_THREAD_SAFE)) \
+ || (defined(HPUX10_10) && defined(_REENTRANT)) \
+ || (defined(HPUX10_20) && defined(_REENTRANT)) \
+- || defined(OPENBSD)
++ || defined(OPENBSD) || defined(NETBSD)
+ #define _PR_HAVE_GETPROTO_R
+ #define _PR_HAVE_GETPROTO_R_INT
+ #endif
@@ -114,6 +114,11 @@ PRLock *_pr_dnsLock = NULL;
#define _PR_HAVE_5_ARG_GETPROTO_R
#endif
diff --git a/www/seamonkey/patches/patch-aj b/www/seamonkey/patches/patch-aj
index 0c2cf457a3c..6975e514b8f 100644
--- a/www/seamonkey/patches/patch-aj
+++ b/www/seamonkey/patches/patch-aj
@@ -1,16 +1,16 @@
-$NetBSD: patch-aj,v 1.3 2010/03/16 10:59:10 tnn Exp $
+$NetBSD: patch-aj,v 1.4 2011/07/11 20:46:36 tnn Exp $
---- mozilla/profile/dirserviceprovider/src/nsProfileLock.cpp.orig 2009-06-29 18:15:11.000000000 +0200
+--- mozilla/profile/dirserviceprovider/src/nsProfileLock.cpp.orig 2010-12-15 01:03:34.000000000 +0000
+++ mozilla/profile/dirserviceprovider/src/nsProfileLock.cpp
-@@ -391,6 +391,7 @@ nsresult nsProfileLock::LockWithSymlink(
- act.sa_flags = 0;
+@@ -405,6 +405,7 @@ nsresult nsProfileLock::LockWithSymlink(
+ #endif
sigfillset(&act.sa_mask);
+#ifndef DEBUG
#define CATCH_SIGNAL(signame) \
PR_BEGIN_MACRO \
if (sigaction(signame, NULL, &oldact) == 0 && \
-@@ -409,6 +410,7 @@ PR_BEGIN_MACRO
+@@ -423,6 +424,7 @@ PR_BEGIN_MACRO
CATCH_SIGNAL(SIGTERM);
#undef CATCH_SIGNAL
diff --git a/www/seamonkey/patches/patch-ak b/www/seamonkey/patches/patch-ak
index a976311d611..f8f5bdd7a8e 100644
--- a/www/seamonkey/patches/patch-ak
+++ b/www/seamonkey/patches/patch-ak
@@ -1,19 +1,13 @@
-$NetBSD: patch-ak,v 1.3 2010/03/16 10:59:10 tnn Exp $
+$NetBSD: patch-ak,v 1.4 2011/07/11 20:46:36 tnn Exp $
---- mozilla/toolkit/components/places/src/nsMorkHistoryImporter.cpp.orig 2009-06-29 18:15:22.000000000 +0200
-+++ mozilla/toolkit/components/places/src/nsMorkHistoryImporter.cpp
-@@ -148,9 +148,12 @@ AddToHistoryCB(const nsCSubstring &aRowI
- }
-
- PRTime date;
-- if (PR_sscanf(values[kLastVisitColumn].get(), "%lld", &date) != 1) {
-+ long long ld;
-+ if (PR_sscanf(values[kLastVisitColumn].get(), "%lld", &ld) != 1) {
- date = -1;
-- }
-+ } else {
-+ date = ld;
-+ }
-
- PRBool isTyped = values[kTypedColumn].EqualsLiteral("1");
- PRInt32 transition = isTyped ?
+--- mozilla/js/src/ctypes/libffi/configure.orig 2010-03-16 01:02:50.000000000 +0000
++++ mozilla/js/src/ctypes/libffi/configure
+@@ -12232,7 +12232,7 @@ case "$host" in
+ powerpc-*-aix* | rs6000-*-aix*)
+ TARGET=POWERPC_AIX; TARGETDIR=powerpc
+ ;;
+- powerpc-*-freebsd*)
++ powerpc-*-freebsd* | powerpc-*-netbsd*)
+ TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
+ ;;
+ powerpc*-*-rtems*)
diff --git a/www/seamonkey/patches/patch-al b/www/seamonkey/patches/patch-al
new file mode 100644
index 00000000000..d53695dd4d4
--- /dev/null
+++ b/www/seamonkey/patches/patch-al
@@ -0,0 +1,16 @@
+$NetBSD: patch-al,v 1.5 2011/07/11 20:46:36 tnn Exp $
+
+--- mozilla/storage/src/mozStorageConnection.cpp.orig 2011-06-15 21:57:54.000000000 +0000
++++ mozilla/storage/src/mozStorageConnection.cpp
+@@ -595,6 +595,11 @@ Connection::initialize(nsIFile *aDatabas
+ (void)::NS_RegisterMemoryReporter(mMemoryReporters[i]);
+ }
+
++ // XXX tnn: the configure script demands that sqlite3 is compiled with
++ // SECURE_DELETE on by default. sqlite3 in pkgsrc does not have that,
++ // so instead we enable secure_delete manually here.
++ (void)ExecuteSimpleSQL(NS_LITERAL_CSTRING("PRAGMA secure_delete = 1;"));
++
+ return NS_OK;
+ }
+
diff --git a/www/seamonkey/patches/patch-ao b/www/seamonkey/patches/patch-ao
index a3d5ce5d67c..ed8d9f5c6b8 100644
--- a/www/seamonkey/patches/patch-ao
+++ b/www/seamonkey/patches/patch-ao
@@ -1,8 +1,8 @@
-$NetBSD: patch-ao,v 1.3 2010/03/16 10:59:10 tnn Exp $
+$NetBSD: patch-ao,v 1.4 2011/07/11 20:46:36 tnn Exp $
---- mozilla/toolkit/mozapps/installer/packager.mk.orig 2009-06-29 18:15:27.000000000 +0200
+--- mozilla/toolkit/mozapps/installer/packager.mk.orig 2009-10-29 23:11:21.000000000 +0100
+++ mozilla/toolkit/mozapps/installer/packager.mk
-@@ -449,8 +449,8 @@ endif
+@@ -441,8 +441,8 @@ endif
(cd $(DIST)/$(MOZ_PKG_DIR) && tar $(TAR_CREATE_FLAGS) - .) | \
(cd $(DESTDIR)$(installdir) && tar -xf -)
$(NSINSTALL) -D $(DESTDIR)$(bindir)
@@ -11,14 +11,5 @@ $NetBSD: patch-ao,v 1.3 2010/03/16 10:59:10 tnn Exp $
+ $(RM) -f $(DESTDIR)$(bindir)/$(MOZILLA_PKG_NAME)
+ ln -s $(installdir)/$(MOZ_APP_NAME) $(DESTDIR)$(bindir)/$(MOZILLA_PKG_NAME)
ifdef INSTALL_SDK # Here comes the hard part
- # include directory is stable (dist/sdk/include) and unstable (dist/include)
- $(NSINSTALL) -D $(DESTDIR)$(includedir)/stable
-@@ -458,7 +458,7 @@ ifdef INSTALL_SDK # Here comes the hard
- (cd $(DIST)/sdk/include && tar $(TAR_CREATE_FLAGS) - .) | \
- (cd $(DESTDIR)$(includedir)/stable && tar -xf -)
- # The dist/include has module subdirectories that we need to flatten
-- find $(DIST)/include -xtype f -exec $(SYSINSTALL) $(IFLAGS1) {} $(DESTDIR)$(includedir)/unstable \;
-+ find $(DIST)/include -type f -exec $(SYSINSTALL) $(IFLAGS1) {} $(DESTDIR)$(includedir)/unstable \;
- # IDL directory is stable (dist/sdk/idl) and unstable (dist/idl)
- $(NSINSTALL) -D $(DESTDIR)$(idldir)/stable
- $(NSINSTALL) -D $(DESTDIR)$(idldir)/unstable
+ $(NSINSTALL) -D $(DESTDIR)$(includedir)
+ (cd $(DIST)/include && tar $(TAR_CREATE_FLAGS) - .) | \
diff --git a/www/seamonkey/patches/patch-ap b/www/seamonkey/patches/patch-ap
deleted file mode 100644
index c5a443cbb5c..00000000000
--- a/www/seamonkey/patches/patch-ap
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ap,v 1.8 2010/09/09 11:12:27 tnn Exp $
-
---- mozilla/media/liboggz/include/oggz/oggz_off_t_generated.h.orig 2010-08-24 21:32:05.000000000 +0000
-+++ mozilla/media/liboggz/include/oggz/oggz_off_t_generated.h
-@@ -59,7 +59,7 @@
-
- #include <sys/types.h>
-
--#if defined(__APPLE__) || defined(SOLARIS) || defined(OS2) || defined (_AIX)
-+#if defined(__APPLE__) || defined(SOLARIS) || defined(OS2) || defined (_AIX) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__FreeBSD__)
- typedef off_t oggz_off_t;
- #else
- typedef loff_t oggz_off_t;
diff --git a/www/seamonkey/patches/patch-aq b/www/seamonkey/patches/patch-aq
deleted file mode 100644
index fbb12cf1bea..00000000000
--- a/www/seamonkey/patches/patch-aq
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-aq,v 1.4 2010/03/16 10:59:10 tnn Exp $
-
---- mozilla/media/liboggplay/src/liboggplay/std_semaphore.h.orig 2009-10-16 17:14:09.000000000 +0200
-+++ mozilla/media/liboggplay/src/liboggplay/std_semaphore.h
-@@ -74,9 +74,9 @@
- * @retval non-zero on error
- */
-
--#if defined(linux) || defined(SOLARIS) || defined(AIX) || defined(__FreeBSD__)
-+#if defined(linux) || defined(SOLARIS) || defined(AIX) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__)
- #include <semaphore.h>
--#if defined(__FreeBSD__)
-+#if defined(__FreeBSD__) || defined(__NetBSD__)
- #define SEM_CREATE(p,s) sem_init(&(p), 0, s)
- #else
- #define SEM_CREATE(p,s) sem_init(&(p), 1, s)
diff --git a/www/seamonkey/patches/patch-ar b/www/seamonkey/patches/patch-ar
deleted file mode 100644
index f93b5f3693b..00000000000
--- a/www/seamonkey/patches/patch-ar
+++ /dev/null
@@ -1,39 +0,0 @@
-$NetBSD: patch-ar,v 1.1 2010/03/16 10:59:10 tnn Exp $
-
-Enable the sunaudio module to build on NetBSD.
-
---- mozilla/media/libsydneyaudio/src/sydney_audio_sunaudio.c.orig 2009-06-29 18:15:03.000000000 +0200
-+++ mozilla/media/libsydneyaudio/src/sydney_audio_sunaudio.c
-@@ -38,9 +38,14 @@
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <fcntl.h>
-+#if defined(__NetBSD__)
-+#include <sys/ioctl.h>
-+#include <sys/audioio.h>
-+#else
- #include <stropts.h>
- #include <sys/audio.h>
- #include <sys/mixer.h>
-+#endif
- #include <errno.h>
- #include <stdio.h>
- #include <pthread.h>
-@@ -197,7 +202,7 @@ sa_stream_open(sa_stream_t *s)
- s->default_rate = audio_info.play.sample_rate;
- s->default_precision = audio_info.play.precision;
-
-- AUDIO_INITINFO(&audio_info)
-+ AUDIO_INITINFO(&audio_info);
-
- audio_info.play.sample_rate = s->rate;
- audio_info.play.channels = s->n_channels;
-@@ -210,7 +215,7 @@ sa_stream_open(sa_stream_t *s)
- if (err== -1)
- return SA_ERROR_NOT_SUPPORTED;
-
-- AUDIO_INITINFO(&audio_info)
-+ AUDIO_INITINFO(&audio_info);
- err=ioctl(fd,AUDIO_GETINFO,&audio_info);
- if (err== -1)
- {
diff --git a/www/seamonkey/patches/patch-as b/www/seamonkey/patches/patch-as
index 0f41a75558e..5737e4cbfff 100644
--- a/www/seamonkey/patches/patch-as
+++ b/www/seamonkey/patches/patch-as
@@ -1,11 +1,20 @@
-$NetBSD: patch-as,v 1.1 2010/03/16 10:59:10 tnn Exp $
+$NetBSD: patch-as,v 1.2 2011/07/11 20:46:36 tnn Exp $
Treat DragonFly like FreeBSD.
---- mozilla/js/src/configure.in.orig 2009-06-29 18:14:51.000000000 +0200
+--- mozilla/js/src/configure.in.orig 2010-12-15 01:03:04.000000000 +0000
+++ mozilla/js/src/configure.in
-@@ -1693,7 +1693,7 @@ case "$target" in
- fi
+@@ -769,7 +769,7 @@ EOF
+ AC_LANG_RESTORE
+ ])
+
+- if test "$ac_cv_have_std__Throw" == "yes"; then
++ if test "$ac_cv_have_std__Throw" = "yes"; then
+ AC_CACHE_CHECK(for |class __declspec(dllimport) exception| bug,
+ ac_cv_have_dllimport_exception_bug,
+ [
+@@ -2059,7 +2059,7 @@ case "$target" in
+ MOZ_FIX_LINK_PATHS='-Wl,-executable_path,$(LIBXUL_DIST)/bin'
;;
-*-freebsd*)
@@ -13,21 +22,21 @@ Treat DragonFly like FreeBSD.
if test `test -x /usr/bin/objformat && /usr/bin/objformat || echo elf` != "elf"; then
DLL_SUFFIX=".so.1.0"
DSO_LDOPTS="-shared"
-@@ -2504,7 +2504,7 @@ darwin*)
- solaris*)
+@@ -3018,7 +3018,7 @@ case "$target" in
+ *-solaris*)
AC_DEFINE(AVMPLUS_UNIX)
;;
--freebsd*|kfreebsd*)
-+freebsd*|kfreebsd*|netbsd*|dragonfly*)
+-*-freebsd*|*-kfreebsd*)
++*-freebsd*|*-kfreebsd*|*-netbsd*|*-dragonfly*)
AC_DEFINE(AVMPLUS_UNIX)
;;
- *cygwin*|*mingw*|*mks*|*msvc*|*wince)
-@@ -4185,7 +4185,7 @@ if test "$MOZ_MEMORY"; then
- darwin*)
+ *-gnu*)
+@@ -4880,7 +4880,7 @@ if test "$MOZ_MEMORY"; then
+ *-darwin*)
AC_DEFINE(MOZ_MEMORY_DARWIN)
;;
-- *freebsd*)
-+ *freebsd*|dragonfly*)
+- *-*freebsd*)
++ *-*freebsd*|*-*dragonfly*)
AC_DEFINE(MOZ_MEMORY_BSD)
;;
- *linux*)
+ *-*linux*)
diff --git a/www/seamonkey/patches/patch-at b/www/seamonkey/patches/patch-at
index 675edf0329d..a2cb4631fd6 100644
--- a/www/seamonkey/patches/patch-at
+++ b/www/seamonkey/patches/patch-at
@@ -1,9 +1,8 @@
-$NetBSD: patch-at,v 1.5 2010/03/16 10:59:10 tnn Exp $
+$NetBSD: patch-at,v 1.6 2011/07/11 20:46:36 tnn Exp $
-Treat DragonFly like FreeBSD.
Avoid silly redefinitions of standard types on NetBSD.
---- mozilla/gfx/qcms/qcmstypes.h.orig 2009-08-24 17:52:41.000000000 +0200
+--- mozilla/gfx/qcms/qcmstypes.h.orig 2010-11-04 19:20:39.000000000 +0000
+++ mozilla/gfx/qcms/qcmstypes.h
@@ -10,6 +10,8 @@
#if defined (__SVR4) && defined (__sun)
@@ -11,15 +10,6 @@ Avoid silly redefinitions of standard types on NetBSD.
#include <sys/int_types.h>
+#elif defined(__NetBSD__)
+#include <stdint.h>
- #else
- typedef PRInt8 int8_t;
- typedef PRUint8 uint8_t;
-@@ -23,7 +25,7 @@ typedef PRUint64 uint64_t;
- #ifdef __OS2__
- /* OS/2's stdlib typdefs uintptr_t. So we'll just include that so we don't collide */
- #include <stdlib.h>
--#elif defined(__FreeBSD__)
-+#elif defined(__FreeBSD__) || defined(__DragonFly__)
- /* FreeBSD typedefs uintptr_t in /usr/include/sys/types.h */
- #else
- typedef PRUptrdiff uintptr_t;
+ #elif defined (_AIX)
+ #include <sys/types.h>
+ #elif !defined(ANDROID)
diff --git a/www/seamonkey/patches/patch-au b/www/seamonkey/patches/patch-au
index b7a37d19e27..dbfcd8324dc 100644
--- a/www/seamonkey/patches/patch-au
+++ b/www/seamonkey/patches/patch-au
@@ -1,9 +1,10 @@
-$NetBSD: patch-au,v 1.1 2010/03/16 10:59:10 tnn Exp $
+$NetBSD: patch-au,v 1.2 2011/07/11 20:46:36 tnn Exp $
-SOUND_VERSION just isn't a reliable way to detect features supported by
-particular OSS implementation.
+- Fix device name on NetBSD
+- SOUND_VERSION just isn't a reliable way to detect features supported by
+ particular OSS implementation.
---- mozilla/media/libsydneyaudio/src/sydney_audio_oss.c.orig 2009-06-29 18:15:03.000000000 +0200
+--- mozilla/media/libsydneyaudio/src/sydney_audio_oss.c.orig 2010-07-21 00:52:30.000000000 +0000
+++ mozilla/media/libsydneyaudio/src/sydney_audio_oss.c
@@ -51,9 +51,9 @@
// support only versions newer than 3.6.1
@@ -18,7 +19,20 @@ particular OSS implementation.
typedef struct sa_buf sa_buf;
struct sa_buf {
-@@ -716,4 +716,4 @@ UNSUPPORTED(int sa_stream_drain(sa_strea
+@@ -201,7 +201,12 @@ sa_stream_create_pcm(
+ return SA_ERROR_SYSTEM;
+ }
+
++#if defined(__NetBSD__)
++ /* XXX should use DEVOSSAUDIO provided by pkgsrc. */
++ s->output_unit = "/dev/audio";
++#else
+ s->output_unit = "/dev/dsp";
++#endif
+ s->output_fd = -1;
+ s->thread_id = 0;
+ s->playing = 0;
+@@ -721,4 +726,4 @@ UNSUPPORTED(int sa_stream_drain(sa_strea
const char *sa_strerror(int code) { return NULL; }
diff --git a/www/seamonkey/patches/patch-ax b/www/seamonkey/patches/patch-ax
index 7efbfbd9b5a..db81d3d5af5 100644
--- a/www/seamonkey/patches/patch-ax
+++ b/www/seamonkey/patches/patch-ax
@@ -1,13 +1,13 @@
-$NetBSD: patch-ax,v 1.6 2010/03/16 10:59:10 tnn Exp $
+$NetBSD: patch-ax,v 1.7 2011/07/11 20:46:36 tnn Exp $
---- mozilla/xpcom/base/nsStackWalk.cpp.orig 2009-08-24 17:53:27.000000000 +0200
+--- mozilla/xpcom/base/nsStackWalk.cpp.orig 2010-12-15 01:03:41.000000000 +0000
+++ mozilla/xpcom/base/nsStackWalk.cpp
-@@ -1124,7 +1124,7 @@ NS_FormatCodeAddressDetails(void *aPC, c
+@@ -1137,7 +1137,7 @@ NS_FormatCodeAddressDetails(void *aPC, c
#define __USE_GNU
#endif
--#if defined(HAVE_LIBDL) || defined(XP_MACOSX)
-+#if defined(HAVE_LIBDL) || defined(XP_MACOSX) || defined(__NetBSD__)
+-#if defined(HAVE_DLOPEN) || defined(XP_MACOSX)
++#if defined(HAVE_DLOPEN) || defined(XP_MACOSX) || defined(__NetBSD__)
#include <dlfcn.h>
#endif
diff --git a/www/seamonkey/patches/patch-bb b/www/seamonkey/patches/patch-bb
deleted file mode 100644
index 06b5770b2a7..00000000000
--- a/www/seamonkey/patches/patch-bb
+++ /dev/null
@@ -1,19 +0,0 @@
-$NetBSD: patch-bb,v 1.3 2010/03/16 10:59:10 tnn Exp $
-
-Fix build using Sun Studio C++.
-
---- mozilla/memory/jemalloc/jemalloc.h.orig 2009-12-02 04:29:06.000000000 +0000
-+++ mozilla/memory/jemalloc/jemalloc.h 2010-01-09 23:24:34.000000000 +0000
-@@ -1,3 +1,4 @@
-+#ifndef __cplusplus
- #ifndef MOZ_MEMORY_WINDOWS
- # include <stdbool.h>
- #else
-@@ -6,6 +7,7 @@
- # define bool BOOL
- # endif
- #endif
-+#endif
-
- extern const char *_malloc_options;
-
diff --git a/www/seamonkey/patches/patch-bd b/www/seamonkey/patches/patch-bd
new file mode 100644
index 00000000000..6e9912fcdd1
--- /dev/null
+++ b/www/seamonkey/patches/patch-bd
@@ -0,0 +1,27 @@
+$NetBSD: patch-bd,v 1.1 2011/07/11 20:46:36 tnn Exp $
+
+--- mozilla/js/src/ctypes/CTypes.cpp.orig 2010-11-04 19:20:39.000000000 +0000
++++ mozilla/js/src/ctypes/CTypes.cpp
+@@ -36,6 +36,22 @@
+ *
+ * ***** END LICENSE BLOCK ***** */
+
++#if defined(__NetBSD__)
++#include <stdint.h>
++/* XXX why do we have those funky __ #defines in stdint.h? */
++#warning this is a retarded workaround
++#define uint8_t uint8_t
++#define uint16_t uint16_t
++#define uint32_t uint32_t
++#define uint64_t uint64_t
++#define int8_t int8_t
++#define int16_t int16_t
++#define int32_t int32_t
++#define int64_t int64_t
++#define intptr_t intptr_t
++#define uintptr_t uintptr_t
++#endif
++
+ #include "CTypes.h"
+ #include "Library.h"
+ #include "jsnum.h"
diff --git a/www/seamonkey/patches/patch-be b/www/seamonkey/patches/patch-be
new file mode 100644
index 00000000000..7d2227df8a1
--- /dev/null
+++ b/www/seamonkey/patches/patch-be
@@ -0,0 +1,16 @@
+$NetBSD: patch-be,v 1.1 2011/07/11 20:46:36 tnn Exp $
+
+Disable all sound support for now since it causes
+crashes and doesn't work correctly anyway ...
+
+--- mozilla/widget/src/gtk2/nsSound.cpp.orig 2010-08-06 01:09:23.000000000 +0000
++++ mozilla/widget/src/gtk2/nsSound.cpp
+@@ -138,6 +138,8 @@ nsSound::Init()
+
+ mInited = PR_TRUE;
+
++ return NS_OK;
++
+ if (!elib) {
+ elib = PR_LoadLibrary("libesd.so.0");
+ }
diff --git a/www/seamonkey/patches/patch-bf b/www/seamonkey/patches/patch-bf
new file mode 100644
index 00000000000..3a225757328
--- /dev/null
+++ b/www/seamonkey/patches/patch-bf
@@ -0,0 +1,13 @@
+$NetBSD: patch-bf,v 1.1 2011/07/11 20:46:36 tnn Exp $
+
+--- mozilla/js/src/jsnativestack.cpp.orig 2011-06-15 21:57:29.000000000 +0000
++++ mozilla/js/src/jsnativestack.cpp
+@@ -145,7 +145,7 @@ GetNativeStackBaseImpl()
+ pthread_attr_init(&sattr);
+ # if defined(__OpenBSD__)
+ stack_t ss;
+-# elif defined(PTHREAD_NP_H) || defined(_PTHREAD_NP_H_) || defined(NETBSD)
++# elif defined(PTHREAD_NP_H) || defined(_PTHREAD_NP_H_) || defined(NETBSD) || defined(__NetBSD__) /* XXX tnn not sure why NETBSD isn't defined, it looks like it should be ... */
+ /* e.g. on FreeBSD 4.8 or newer, neundorf@kde.org */
+ pthread_attr_get_np(thread, &sattr);
+ # else
diff --git a/www/seamonkey/patches/patch-bg b/www/seamonkey/patches/patch-bg
new file mode 100644
index 00000000000..df412f59a3f
--- /dev/null
+++ b/www/seamonkey/patches/patch-bg
@@ -0,0 +1,24 @@
+$NetBSD: patch-bg,v 1.1 2011/07/11 20:46:36 tnn Exp $
+
+--- mozilla/storage/src/SQLiteMutex.h.orig 2010-05-28 13:22:58.000000000 +0000
++++ mozilla/storage/src/SQLiteMutex.h
+@@ -141,15 +141,19 @@ public:
+ void assertCurrentThreadOwns()
+ {
+ NS_ASSERTION(mMutex, "No mutex associated with this wrapper!");
++#if 0 /* XXX tnn: this breaks the debug build. */
+ NS_ASSERTION(sqlite3_mutex_held(mMutex),
+ "Mutex is not held, but we expect it to be!");
++#endif
+ }
+
+ void assertNotCurrentThreadOwns()
+ {
+ NS_ASSERTION(mMutex, "No mutex associated with this wrapper!");
++#if 0 /* XXX tnn: this breaks the debug build. */
+ NS_ASSERTION(sqlite3_mutex_notheld(mMutex),
+ "Mutex is held, but we expect it to not be!");
++#endif
+ }
+ #endif // ifndef DEBUG
+
diff --git a/www/seamonkey/patches/patch-bi b/www/seamonkey/patches/patch-bi
new file mode 100644
index 00000000000..d5cb4c78003
--- /dev/null
+++ b/www/seamonkey/patches/patch-bi
@@ -0,0 +1,13 @@
+$NetBSD: patch-bi,v 1.1 2011/07/11 20:46:36 tnn Exp $
+
+--- mozilla/gfx/angle/src/compiler/osinclude.h.orig 2010-12-15 01:02:57.000000000 +0000
++++ mozilla/gfx/angle/src/compiler/osinclude.h
+@@ -16,7 +16,7 @@
+ #define ANGLE_OS_WIN
+ #elif defined(__APPLE__) || defined(__linux__) || \
+ defined(__FreeBSD__) || defined(__OpenBSD__) || \
+- defined(__sun)
++ defined(__sun) || defined(__NetBSD__) || defined(__DragonFly__)
+ #define ANGLE_OS_POSIX
+ #else
+ #error Unsupported platform.
diff --git a/www/seamonkey/patches/patch-directory_c-sdk_configure.in b/www/seamonkey/patches/patch-directory_c-sdk_configure.in
deleted file mode 100644
index 86e3cbf1ca9..00000000000
--- a/www/seamonkey/patches/patch-directory_c-sdk_configure.in
+++ /dev/null
@@ -1,24 +0,0 @@
-$NetBSD$
-
-Add DragonFly support.
-https://bugzilla.mozilla.org/show_bug.cgi?id=577298
-
---- directory/c-sdk/configure.in.orig 2009-10-06 21:43:08.000000000 +0000
-+++ directory/c-sdk/configure.in
-@@ -1233,6 +1233,16 @@ tools are selected during the Xcode/Deve
- _DEBUG_FLAGS=
- ;;
-
-+*-dragonfly*)
-+ if test -z "$USE_NSPR_THREADS"; then
-+ USE_PTHREADS=1
-+ fi
-+ AC_DEFINE(XP_UNIX)
-+ AC_DEFINE(DRAGONFLY)
-+ DSO_CFLAGS=-fPIC
-+ DSO_LDOPTS='-shared'
-+ ;;
-+
- *-freebsd*)
- if test -z "$USE_NSPR_THREADS"; then
- USE_PTHREADS=1
diff --git a/www/seamonkey/patches/patch-directory_c-sdk_ldap_include_portable.h b/www/seamonkey/patches/patch-directory_c-sdk_ldap_include_portable.h
index 0156efaf5ad..9054947e003 100644
--- a/www/seamonkey/patches/patch-directory_c-sdk_ldap_include_portable.h
+++ b/www/seamonkey/patches/patch-directory_c-sdk_ldap_include_portable.h
@@ -1,16 +1,13 @@
-$NetBSD: patch-directory_c-sdk_ldap_include_portable.h,v 1.3 2010/07/21 11:48:05 tnn Exp $
+$NetBSD: patch-directory_c-sdk_ldap_include_portable.h,v 1.4 2011/07/11 20:46:36 tnn Exp $
-Add DragonFly support.
-https://bugzilla.mozilla.org/show_bug.cgi?id=577298
-
---- directory/c-sdk/ldap/include/portable.h.orig 2006-10-03 20:43:40.000000000 +0000
-+++ directory/c-sdk/ldap/include/portable.h
+--- ldap/sdks/c-sdk/ldap/include/portable.h.orig 2011-07-06 08:51:23.000000000 +0000
++++ ldap/sdks/c-sdk/ldap/include/portable.h
@@ -122,8 +122,11 @@
* some systems don't have the BSD re_comp and re_exec routines
*/
#ifndef NEED_BSDREGEX
--#if ( defined( SYSV ) || defined( NETBSD ) || defined( freebsd ) || defined( linux ) || defined( DARWIN )) && !defined(sgi)
-+#if ( defined( SYSV ) || defined( NETBSD ) || defined( freebsd ) || defined(DRAGONFLY) || defined( linux ) || defined( DARWIN )) && !defined(sgi)
+-#if ( defined( SYSV ) || defined( NETBSD ) || defined( FREEBSD ) || defined(__OpenBSD__) || defined( linux ) || defined( DARWIN )) && !defined(sgi)
++#if ( defined( SYSV ) || defined( NETBSD ) || defined(DRAGONFLY) || defined( FREEBSD ) || defined(__OpenBSD__) || defined( linux ) || defined( DARWIN )) && !defined(sgi)
#define NEED_BSDREGEX
+/* there are conflicting prototypes in unistd.h on DragonFly */
+#define re_comp ldap_compat_re_comp
@@ -18,21 +15,3 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=577298
#endif
#endif
-@@ -295,7 +298,7 @@ typedef char GETHOSTBYNAME_buf_t [NSLDAP
- #elif defined(HPUX10)
- #define GETHOSTBYNAME_BUF_T struct hostent_data
- #define GETHOSTBYNAME( n, r, b, l, e ) nsldapi_compat_gethostbyname_r( n, r, (char *)&b, l, e )
--#elif defined(LINUX)
-+#elif defined(LINUX) || defined(DRAGONFLY)
- typedef char GETHOSTBYNAME_buf_t [NSLDAPI_NETDB_BUF_SIZE];
- #define GETHOSTBYNAME_BUF_T GETHOSTBYNAME_buf_t
- #define GETHOSTBYNAME( n, r, b, l, rp, e ) gethostbyname_r( n, r, b, l, rp, e )
-@@ -317,7 +320,7 @@ typedef char GETHOSTBYNAME_buf_t [NSLDAP
- || defined(OSF1V4) || defined(AIX) || defined(UnixWare) \
- || defined(hpux) || defined(HPUX11) || defined(NETBSD) \
- || defined(IRIX6) || defined(FREEBSD) || defined(VMS) \
-- || defined(NTO) || defined(OPENBSD)
-+ || defined(NTO) || defined(OPENBSD) || defined(DRAGONFLY)
- #define NSLDAPI_CTIME( c, b, l ) ctime_r( c, b )
- #elif defined( OSF1V3 )
- #define NSLDAPI_CTIME( c, b, l ) (ctime_r( c, b, l ) ? NULL : b)
diff --git a/www/seamonkey/patches/patch-directory_c-sdk_ldap_libraries_libldap_Makefile.in b/www/seamonkey/patches/patch-directory_c-sdk_ldap_libraries_libldap_Makefile.in
deleted file mode 100644
index b28f2bf66ed..00000000000
--- a/www/seamonkey/patches/patch-directory_c-sdk_ldap_libraries_libldap_Makefile.in
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD$
-
-Add DragonFly support.
-https://bugzilla.mozilla.org/show_bug.cgi?id=577298
-
---- directory/c-sdk/ldap/libraries/libldap/Makefile.in.orig 2008-12-24 09:39:55.000000000 +0000
-+++ directory/c-sdk/ldap/libraries/libldap/Makefile.in
-@@ -262,6 +262,10 @@ ifeq ($(OS_ARCH), OpenBSD)
- EXTRA_LIBS = -L$(dist_libdir) -l$(LBER_LIBNAME) -pthread
- endif
-
-+ifeq ($(OS_ARCH), DragonFly)
-+EXTRA_LIBS = -L$(dist_libdir) -l$(LBER_LIBNAME)
-+endif
-+
- ifeq ($(HAVE_SASL), 1)
- EXTRA_LIBS += $(SASL_LINK)
- endif
diff --git a/www/seamonkey/patches/patch-ipc_chromium_src_base_debug__util__posic.cc b/www/seamonkey/patches/patch-ipc_chromium_src_base_debug__util__posic.cc
new file mode 100644
index 00000000000..587a62073aa
--- /dev/null
+++ b/www/seamonkey/patches/patch-ipc_chromium_src_base_debug__util__posic.cc
@@ -0,0 +1,35 @@
+$NetBSD: patch-ipc_chromium_src_base_debug__util__posic.cc,v 1.1 2011/07/11 20:46:36 tnn Exp $
+
+--- mozilla/ipc/chromium/src/base/debug_util_posix.cc.orig 2011-06-15 21:57:27.000000000 +0000
++++ mozilla/ipc/chromium/src/base/debug_util_posix.cc
+@@ -11,10 +11,10 @@
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ #include <unistd.h>
+-#ifndef ANDROID
++#ifdef __linux__
+ #include <execinfo.h>
+-#include <sys/sysctl.h>
+ #endif
++#include <sys/sysctl.h>
+
+ #include "base/basictypes.h"
+ #include "base/eintr_wrapper.h"
+@@ -119,7 +119,7 @@ StackTrace::StackTrace() {
+ const int kMaxCallers = 256;
+
+ void* callers[kMaxCallers];
+-#ifndef ANDROID
++#ifdef __GLIBC__
+ int count = backtrace(callers, kMaxCallers);
+ #else
+ int count = 0;
+@@ -138,7 +138,7 @@ StackTrace::StackTrace() {
+
+ void StackTrace::PrintBacktrace() {
+ fflush(stderr);
+-#ifndef ANDROID
++#ifdef __GLIBC__
+ backtrace_symbols_fd(&trace_[0], trace_.size(), STDERR_FILENO);
+ #endif
+ }
diff --git a/www/seamonkey/patches/patch-ipc_chromium_src_base_file__util.h b/www/seamonkey/patches/patch-ipc_chromium_src_base_file__util.h
new file mode 100644
index 00000000000..b424ad824db
--- /dev/null
+++ b/www/seamonkey/patches/patch-ipc_chromium_src_base_file__util.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-ipc_chromium_src_base_file__util.h,v 1.1 2011/07/11 20:46:36 tnn Exp $
+
+--- mozilla/ipc/chromium/src/base/file_util.h.orig 2011-06-15 21:57:27.000000000 +0000
++++ mozilla/ipc/chromium/src/base/file_util.h
+@@ -15,8 +15,9 @@
+ #elif defined(ANDROID)
+ #include <sys/stat.h>
+ #elif defined(OS_POSIX)
+-#include <fts.h>
++#include <sys/types.h>
+ #include <sys/stat.h>
++#include <fts.h>
+ #endif
+
+ #include <stdio.h>
diff --git a/www/seamonkey/patches/patch-ipc_chromium_src_base_file__util__posix.cc b/www/seamonkey/patches/patch-ipc_chromium_src_base_file__util__posix.cc
new file mode 100644
index 00000000000..54e3a83547a
--- /dev/null
+++ b/www/seamonkey/patches/patch-ipc_chromium_src_base_file__util__posix.cc
@@ -0,0 +1,14 @@
+$NetBSD: patch-ipc_chromium_src_base_file__util__posix.cc,v 1.1 2011/07/11 20:46:36 tnn Exp $
+
+--- mozilla/ipc/chromium/src/base/file_util_posix.cc.orig 2011-06-15 21:57:27.000000000 +0000
++++ mozilla/ipc/chromium/src/base/file_util_posix.cc
+@@ -30,6 +30,9 @@
+ #include "base/string_util.h"
+ #include "base/time.h"
+
++#ifndef __linux__
++#define stat64 stat
++#endif
+ namespace file_util {
+
+ #if defined(GOOGLE_CHROME_BUILD)
diff --git a/www/seamonkey/patches/patch-ipc_chromium_src_base_platform__thread__posix.cc b/www/seamonkey/patches/patch-ipc_chromium_src_base_platform__thread__posix.cc
new file mode 100644
index 00000000000..50e43660b1f
--- /dev/null
+++ b/www/seamonkey/patches/patch-ipc_chromium_src_base_platform__thread__posix.cc
@@ -0,0 +1,24 @@
+$NetBSD: patch-ipc_chromium_src_base_platform__thread__posix.cc,v 1.1 2011/07/11 20:46:36 tnn Exp $
+
+--- mozilla/ipc/chromium/src/base/platform_thread_posix.cc.orig 2011-06-15 21:57:27.000000000 +0000
++++ mozilla/ipc/chromium/src/base/platform_thread_posix.cc
+@@ -9,6 +9,8 @@
+
+ #if defined(OS_MACOSX)
+ #include <mach/mach.h>
++#elif defined(OS_NETBSD)
++#include <lwp.h>
+ #elif defined(OS_LINUX)
+ #include <sys/syscall.h>
+ #include <unistd.h>
+@@ -33,6 +35,10 @@ PlatformThreadId PlatformThread::Current
+ // into the kernel.
+ #if defined(OS_MACOSX)
+ return mach_thread_self();
++#elif defined(OS_NETBSD)
++ return _lwp_self();
++#elif defined(OS_DRAGONFLY)
++#error No DragonFly support. hint: look at FreeBSD ports.
+ #elif defined(OS_LINUX)
+ return syscall(__NR_gettid);
+ #endif
diff --git a/www/seamonkey/patches/patch-ipc_chromium_src_base_sys__info__posix.cc b/www/seamonkey/patches/patch-ipc_chromium_src_base_sys__info__posix.cc
new file mode 100644
index 00000000000..912548bda3c
--- /dev/null
+++ b/www/seamonkey/patches/patch-ipc_chromium_src_base_sys__info__posix.cc
@@ -0,0 +1,37 @@
+$NetBSD: patch-ipc_chromium_src_base_sys__info__posix.cc,v 1.1 2011/07/11 20:46:36 tnn Exp $
+
+--- mozilla/ipc/chromium/src/base/sys_info_posix.cc.orig 2011-06-15 21:57:27.000000000 +0000
++++ mozilla/ipc/chromium/src/base/sys_info_posix.cc
+@@ -18,6 +18,11 @@
+ #include <mach/mach_init.h>
+ #endif
+
++#if defined(OS_NETBSD)
++#include <sys/param.h>
++#include <sys/sysctl.h>
++#endif
++
+ #include "base/logging.h"
+ #include "base/string_util.h"
+
+@@ -52,6 +57,20 @@ int64 SysInfo::AmountOfPhysicalMemory()
+ }
+
+ return static_cast<int64>(hostinfo.max_mem);
++#elif defined(OS_NETBSD)
++ int mib[2];
++ int rc;
++ int64_t memSize;
++ size_t len = sizeof(memSize);
++
++ mib[0] = CTL_HW;
++ mib[1] = HW_PHYSMEM64;
++ rc = sysctl( mib, 2, &memSize, &len, NULL, 0 );
++ if (-1 != rc) {
++ return memSize;
++ }
++ return 0;
++
+ #else
+ long pages = sysconf(_SC_PHYS_PAGES);
+ long page_size = sysconf(_SC_PAGE_SIZE);
diff --git a/www/seamonkey/patches/patch-ipc_chromium_src_base_third__party_nspr_prcpucfg.h b/www/seamonkey/patches/patch-ipc_chromium_src_base_third__party_nspr_prcpucfg.h
new file mode 100644
index 00000000000..ee79fa2f957
--- /dev/null
+++ b/www/seamonkey/patches/patch-ipc_chromium_src_base_third__party_nspr_prcpucfg.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-ipc_chromium_src_base_third__party_nspr_prcpucfg.h,v 1.1 2011/07/11 20:46:36 tnn Exp $
+
+--- mozilla/ipc/chromium/src/base/third_party/nspr/prcpucfg.h.orig 2011-06-15 21:57:27.000000000 +0000
++++ mozilla/ipc/chromium/src/base/third_party/nspr/prcpucfg.h
+@@ -34,7 +34,7 @@
+ #include "base/third_party/nspr/prcpucfg_win.h"
+ #elif defined(__APPLE__)
+ #include "base/third_party/nspr/prcpucfg_mac.h"
+-#elif defined(__linux__) || defined(ANDROID)
++#elif defined(__linux__) || defined(ANDROID) || defined(__NetBSD__) || defined(__DragonFly__)
+ #include "base/third_party/nspr/prcpucfg_linux.h"
+ #else
+ #error Provide a prcpucfg.h appropriate for your platform
diff --git a/www/seamonkey/patches/patch-ipc_chromium_src_build_build__config.h b/www/seamonkey/patches/patch-ipc_chromium_src_build_build__config.h
new file mode 100644
index 00000000000..ce9726ea4e1
--- /dev/null
+++ b/www/seamonkey/patches/patch-ipc_chromium_src_build_build__config.h
@@ -0,0 +1,34 @@
+$NetBSD: patch-ipc_chromium_src_build_build__config.h,v 1.1 2011/07/11 20:46:36 tnn Exp $
+
+--- mozilla/ipc/chromium/src/build/build_config.h.orig 2011-06-15 21:57:27.000000000 +0000
++++ mozilla/ipc/chromium/src/build/build_config.h
+@@ -19,6 +19,10 @@
+ #define OS_MACOSX 1
+ #elif defined(__linux__) || defined(ANDROID)
+ #define OS_LINUX 1
++#elif defined(__NetBSD__)
++#define OS_NETBSD 1
++#elif defined(__DragonFly__)
++#define OS_DRAGONFLY 1
+ #elif defined(_WIN32)
+ #define OS_WIN 1
+ #else
+@@ -27,7 +31,7 @@
+
+ // For access to standard POSIX features, use OS_POSIX instead of a more
+ // specific macro.
+-#if defined(OS_MACOSX) || defined(OS_LINUX)
++#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_NETBSD) || defined(OS_DRAGONFLY)
+ #define OS_POSIX 1
+ #endif
+
+@@ -60,6 +64,9 @@
+ #elif defined(__ppc__)
+ #define ARCH_CPU_PPC 1
+ #define ARCH_CPU_32_BITS 1
++#elif defined(__sparc64__)
++#define ARCH_CPU_SPARC 1
++#define ARCH_CPU_64_BITS 1
+ #else
+ #error Please add support for your architecture in build/build_config.h
+ #endif
diff --git a/www/seamonkey/patches/patch-ipc_chromium_src_chrome_common_ipc__channel__posix.h b/www/seamonkey/patches/patch-ipc_chromium_src_chrome_common_ipc__channel__posix.h
new file mode 100644
index 00000000000..59f23b7ecd3
--- /dev/null
+++ b/www/seamonkey/patches/patch-ipc_chromium_src_chrome_common_ipc__channel__posix.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-ipc_chromium_src_chrome_common_ipc__channel__posix.h,v 1.1 2011/07/11 20:46:36 tnn Exp $
+
+--- mozilla/ipc/chromium/src/chrome/common/ipc_channel_posix.h.orig 2011-06-15 21:57:27.000000000 +0000
++++ mozilla/ipc/chromium/src/chrome/common/ipc_channel_posix.h
+@@ -92,7 +92,7 @@ class Channel::ChannelImpl : public Mess
+ };
+
+ // This is a control message buffer large enough to hold kMaxReadFDs
+-#if defined(OS_MACOSX)
++#if defined(OS_MACOSX) || defined(OS_NETBSD)
+ // TODO(agl): OSX appears to have non-constant CMSG macros!
+ char input_cmsg_buf_[1024];
+ #else
diff --git a/www/seamonkey/patches/patch-ma-toplevel b/www/seamonkey/patches/patch-ma-toplevel
index 79cbdac5a7f..1a26a51accb 100644
--- a/www/seamonkey/patches/patch-ma-toplevel
+++ b/www/seamonkey/patches/patch-ma-toplevel
@@ -1,8 +1,8 @@
-$NetBSD: patch-ma-toplevel,v 1.1 2009/11/29 00:40:48 tnn Exp $
+$NetBSD: patch-ma-toplevel,v 1.2 2011/07/11 20:46:36 tnn Exp $
---- config/autoconf.mk.in.orig 2009-10-25 15:29:01.000000000 +0100
+--- config/autoconf.mk.in.orig 2011-07-06 08:40:27.000000000 +0000
+++ config/autoconf.mk.in
-@@ -62,14 +62,14 @@ MOZ_PKG_SPECIAL = @MOZ_PKG_SPECIAL@
+@@ -60,14 +60,14 @@ MOZ_PKG_SPECIAL = @MOZ_PKG_SPECIAL@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
diff --git a/www/seamonkey/patches/patch-mb b/www/seamonkey/patches/patch-mb
index 923f91f43dc..1d908699500 100644
--- a/www/seamonkey/patches/patch-mb
+++ b/www/seamonkey/patches/patch-mb
@@ -1,32 +1,39 @@
-$NetBSD: patch-mb,v 1.1 2010/03/16 10:59:10 tnn Exp $
+$NetBSD: patch-mb,v 1.2 2011/07/11 20:46:36 tnn Exp $
---- mozilla/xpcom/reflect/xptcall/src/md/unix/Makefile.in.orig 2009-06-29 18:15:32.000000000 +0200
+--- mozilla/xpcom/reflect/xptcall/src/md/unix/Makefile.in.orig 2011-06-15 21:58:01.000000000 +0000
+++ mozilla/xpcom/reflect/xptcall/src/md/unix/Makefile.in
-@@ -64,14 +64,21 @@ include $(topsrcdir)/config/config.mk
- #
- # Lots of Unixish x86 flavors
- #
--ifneq (,$(filter FreeBSD NetBSD OpenBSD BSD_OS Darwin,$(OS_ARCH)))
-+ifneq (,$(filter DragonFly FreeBSD NetBSD OpenBSD BSD_OS Darwin,$(OS_ARCH)))
-+ifeq (x86_64,$(OS_TEST))
-+CPPSRCS := xptcinvoke_x86_64_linux.cpp xptcstubs_x86_64_linux.cpp
-+else
+@@ -97,7 +97,7 @@ endif
+ endif
+ endif
+
+-ifneq (,$(filter NetBSD OpenBSD BSD_OS GNU,$(OS_ARCH)))
++ifneq (,$(filter BSD_OS GNU,$(OS_ARCH)))
ifeq (86,$(findstring 86,$(OS_TEST)))
CPPSRCS := xptcinvoke_unixish_x86.cpp xptcstubs_unixish_x86.cpp
-+endif
-+ifeq (amd64,$(OS_TEST))
-+CPPSRCS := xptcinvoke_x86_64_linux.cpp xptcstubs_x86_64_linux.cpp
-+endif
-+endif
- ifeq (Darwin,$(OS_ARCH))
- DEFINES += -DKEEP_STACK_16_BYTE_ALIGNED
+ endif
+@@ -106,7 +106,7 @@ endif
+ # New code for Linux, et. al., with gcc
+ # Migrate other platforms here after testing
+ #
+-ifneq (,$(filter Linux FreeBSD GNU_%,$(OS_ARCH)))
++ifneq (,$(filter Linux NetBSD DragonFly FreeBSD OpenBSD GNU_%,$(OS_ARCH)))
+ # Linux/x86-64
+ ifeq (x86_64,$(OS_TEST))
+ CPPSRCS := xptcinvoke_x86_64_unix.cpp xptcstubs_x86_64_linux.cpp
+@@ -124,12 +124,6 @@ ASFILES := xptcstubs_asm_ipf64.s xptcin
endif
endif
+ #
+-# OpenBSD/amd64
+-#
+-ifeq ($(OS_ARCH)$(OS_TEST),OpenBSDx86_64)
+-CPPSRCS := xptcinvoke_amd64_openbsd.cpp xptcstubs_amd64_openbsd.cpp
-endif
+-#
+ # Neutrino/Intel (uses the same unixish_x86 code)
#
- # New code for Linux, et. al., with gcc
- # Migrate other platforms here after testing
-@@ -185,7 +192,7 @@ endif
+ ifeq ($(OS_TARGET),NTO)
+@@ -212,7 +206,7 @@ endif
# NetBSD/ARM
#
ifeq ($(OS_ARCH),NetBSD)
@@ -35,7 +42,7 @@ $NetBSD: patch-mb,v 1.1 2010/03/16 10:59:10 tnn Exp $
CPPSRCS := xptcinvoke_arm_netbsd.cpp xptcstubs_arm_netbsd.cpp
endif
endif
-@@ -240,7 +247,7 @@ endif
+@@ -269,7 +263,7 @@ endif
# NetBSD/m68k
#
ifeq ($(OS_ARCH),NetBSD)
@@ -44,7 +51,7 @@ $NetBSD: patch-mb,v 1.1 2010/03/16 10:59:10 tnn Exp $
CPPSRCS := xptcinvoke_netbsd_m68k.cpp xptcstubs_netbsd_m68k.cpp
endif
endif
-@@ -325,9 +332,10 @@ endif
+@@ -359,9 +353,10 @@ endif
#
# NetBSD/PPC
#
@@ -56,7 +63,7 @@ $NetBSD: patch-mb,v 1.1 2010/03/16 10:59:10 tnn Exp $
endif
#
-@@ -399,6 +407,13 @@ CPPSRCS := xptcinvoke_sparc64_openbsd.c
+@@ -433,6 +428,13 @@ CPPSRCS := xptcinvoke_sparc64_openbsd.c
ASFILES := xptcinvoke_asm_sparc64_openbsd.s xptcstubs_asm_sparc64_openbsd.s
endif
#
diff --git a/www/seamonkey/patches/patch-me b/www/seamonkey/patches/patch-me
index 791bfa895bf..8ea8e7d089e 100644
--- a/www/seamonkey/patches/patch-me
+++ b/www/seamonkey/patches/patch-me
@@ -1,22 +1,10 @@
-$NetBSD: patch-me,v 1.2 2010/04/26 12:38:00 tnn Exp $
+$NetBSD: patch-me,v 1.3 2011/07/11 20:46:36 tnn Exp $
Add DragonFly support.
-Disable assembly routines in freebl on Linux (PR pkg/43146)
---- mozilla/security/nss/lib/freebl/Makefile.orig 2010-03-17 18:33:57.000000000 +0000
+--- mozilla/security/nss/lib/freebl/Makefile.orig 2009-06-29 18:15:13.000000000 +0200
+++ mozilla/security/nss/lib/freebl/Makefile
-@@ -154,7 +154,9 @@ ifeq ($(USE_N32),1)
- endif
- endif
-
--ifeq ($(OS_TARGET),Linux)
-+# pkgsrc PR pkg/43146
-+#ifeq ($(OS_TARGET),Linux)
-+ifeq (true, false)
- ifeq ($(CPU_ARCH),x86_64)
- ASFILES = arcfour-amd64-gas.s mpi_amd64_gas.s
- ASFLAGS += -march=opteron -m64 -fPIC -Wa,--noexecstack
-@@ -224,7 +226,7 @@ endif
+@@ -212,7 +212,7 @@ endif
# to bind the blapi function references in FREEBLVector vector
# (ldvector.c) to the blapi functions defined in the freebl
# shared libraries.
diff --git a/www/seamonkey/patches/patch-mh b/www/seamonkey/patches/patch-mh
new file mode 100644
index 00000000000..0893ecee650
--- /dev/null
+++ b/www/seamonkey/patches/patch-mh
@@ -0,0 +1,13 @@
+$NetBSD: patch-mh,v 1.1 2011/07/11 20:46:36 tnn Exp $
+
+--- mozilla/security/nss/lib/Makefile.orig 2011-03-18 23:34:05.000000000 +0000
++++ mozilla/security/nss/lib/Makefile
+@@ -70,7 +70,7 @@ endif
+
+ ifndef MOZILLA_CLIENT
+ ifeq ($(OS_ARCH),Linux)
+-SYSINIT_SRCDIR = sysinit # Add the sysinit directory to DIRS.
++#SYSINIT_SRCDIR = sysinit # Add the sysinit directory to DIRS.
+ endif
+ endif
+
diff --git a/www/seamonkey/patches/patch-mk b/www/seamonkey/patches/patch-mk
index b537247517b..6cdde250a41 100644
--- a/www/seamonkey/patches/patch-mk
+++ b/www/seamonkey/patches/patch-mk
@@ -1,4 +1,4 @@
-$NetBSD: patch-mk,v 1.1 2010/03/16 10:59:10 tnn Exp $
+$NetBSD: patch-mk,v 1.2 2011/07/11 20:46:36 tnn Exp $
Treat DragonFly like FreeBSD.
diff --git a/www/seamonkey/patches/patch-mm b/www/seamonkey/patches/patch-mm
index 821c33332bc..260181342a1 100644
--- a/www/seamonkey/patches/patch-mm
+++ b/www/seamonkey/patches/patch-mm
@@ -1,30 +1,18 @@
-$NetBSD: patch-mm,v 1.2 2010/09/09 11:12:27 tnn Exp $
+$NetBSD: patch-mm,v 1.3 2011/07/11 20:46:36 tnn Exp $
-Don't link with -lCstd on Solaris when using GCC. From Tim Zingelman.
-part of PR pkg/39085
-
---- mozilla/toolkit/library/Makefile.in.orig 2010-08-24 21:32:11.000000000 +0000
+--- mozilla/toolkit/library/Makefile.in.orig 2011-06-15 21:58:10.000000000 +0000
+++ mozilla/toolkit/library/Makefile.in
-@@ -253,7 +253,10 @@ EXTRA_DSO_LDOPTS += -lbe -ltracker
- endif
-
- ifeq ($(OS_ARCH),SunOS)
--EXTRA_DSO_LDOPTS += -lelf -ldemangle -lCstd
-+EXTRA_DSO_LDOPTS += -lelf -ldemangle
-+ifndef GNU_CC
-+EXTRA_DSO_LDOPTS += -lCstd
-+endif
- endif
-
- ifeq ($(OS_ARCH),AIX)
-@@ -262,6 +265,10 @@ EXTRA_DSO_LDOPTS += -bbigtoc
+@@ -216,6 +216,13 @@ EXTRA_DSO_LDOPTS += -lelf -ldemangle
endif
endif
+ifeq ($(OS_ARCH),NetBSD)
+EXTRA_DSO_LDOPTS += -lossaudio
+endif
++ifdef PKGSRC_PULSEAUDIO
++EXTRA_DSO_LDOPTS += -lpulse
++endif
+
ifeq ($(OS_ARCH),WINNT)
- EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME,shell32 ole32 uuid version winspool comdlg32 imm32 winmm wsock32 msimg32)
+ OS_LIBS += $(call EXPAND_LIBNAME,shell32 ole32 uuid version winspool comdlg32 imm32 winmm wsock32 msimg32 shlwapi psapi ws2_32 dbghelp)
ifneq (,$(MOZ_DEBUG)$(NS_TRACE_MALLOC))
diff --git a/www/seamonkey/patches/patch-mp b/www/seamonkey/patches/patch-mp
index 92a1e8f2262..c8c8e676bd6 100644
--- a/www/seamonkey/patches/patch-mp
+++ b/www/seamonkey/patches/patch-mp
@@ -1,29 +1,17 @@
-$NetBSD: patch-mp,v 1.2 2010/07/21 18:25:05 tnn Exp $
+$NetBSD: patch-mp,v 1.3 2011/07/11 20:46:36 tnn Exp $
---- mozilla/media/libsydneyaudio/src/Makefile.in.orig 2010-07-13 19:10:28.000000000 +0000
+--- mozilla/media/libsydneyaudio/src/Makefile.in.orig 2010-07-21 00:52:30.000000000 +0000
+++ mozilla/media/libsydneyaudio/src/Makefile.in
-@@ -83,6 +83,24 @@ CSRCS = \
- $(NULL)
+@@ -97,6 +97,12 @@ ifeq ($(OS_ARCH),WINNT)
+ OS_LIBS += winmm.lib
endif
-+ifeq ($(OS_ARCH),DragonFly)
-+CSRCS = \
-+ sydney_audio_oss.c \
-+ $(NULL)
-+endif
-+
-+ifeq ($(OS_ARCH),FreeBSD)
-+CSRCS = \
-+ sydney_audio_oss.c \
-+ $(NULL)
-+endif
-+
-+ifeq ($(OS_ARCH),NetBSD)
++ifdef PKGSRC_PULSEAUDIO
+CSRCS = \
-+ sydney_audio_oss.c \
++ sydney_audio_pulseaudio.c \
+ $(NULL)
+endif
+
- ifeq ($(OS_ARCH),WINNT)
- OS_LIBS += winmm.lib
- endif
+ include $(topsrcdir)/config/rules.mk
+
+ LOCAL_INCLUDES += -I$(srcdir)/../include
diff --git a/www/seamonkey/patches/patch-na b/www/seamonkey/patches/patch-na
deleted file mode 100644
index c17401d28de..00000000000
--- a/www/seamonkey/patches/patch-na
+++ /dev/null
@@ -1,122 +0,0 @@
-$NetBSD: patch-na,v 1.1 2010/03/16 10:59:10 tnn Exp $
-
-# reported upstream as:
-# https://bugzilla.mozilla.org/show_bug.cgi?id=512802
-
---- mozilla/js/src/jsscript.cpp.orig 2009-08-24 01:32:14.000000000 +0200
-+++ mozilla/js/src/jsscript.cpp 2009-08-24 01:36:20.000000000 +0200
-@@ -1370,19 +1370,49 @@ js_NewScript(JSContext *cx, uint32 lengt
- size_t size, vectorSize;
- JSScript *script;
- uint8 *cursor;
-+#ifdef _LP64
-+#define LP64_ALIGN(V) if ((V) & 7) (V) = (((V)|7) + 1)
-+#define LP64_ALIGNP(P) if ((uintptr_t)(P) & 7) (P) = (uint8*)(((uintptr_t)(P)|7) + 1)
-+#else
-+#define LP64_ALIGN(V)
-+#define LP64_ALIGNP(V)
-+#endif
-
-- size = sizeof(JSScript) +
-- sizeof(JSAtom *) * natoms +
-- length * sizeof(jsbytecode) +
-- nsrcnotes * sizeof(jssrcnote);
-- if (nobjects != 0)
-- size += sizeof(JSObjectArray) + nobjects * sizeof(JSObject *);
-- if (nupvars != 0)
-- size += sizeof(JSUpvarArray) + nupvars * sizeof(uint32);
-- if (nregexps != 0)
-- size += sizeof(JSObjectArray) + nregexps * sizeof(JSObject *);
-- if (ntrynotes != 0)
-- size += sizeof(JSTryNoteArray) + ntrynotes * sizeof(JSTryNote);
-+ size = sizeof(JSScript);
-+ if (nobjects != 0) {
-+ LP64_ALIGN(size);
-+ size += sizeof(JSObjectArray);
-+ }
-+ if (nupvars != 0) {
-+ LP64_ALIGN(size);
-+ size += sizeof(JSUpvarArray);
-+ }
-+ if (nregexps != 0) {
-+ LP64_ALIGN(size);
-+ size += sizeof(JSObjectArray);
-+ }
-+ if (ntrynotes != 0) {
-+ LP64_ALIGN(size);
-+ size += sizeof(JSTryNoteArray);
-+ }
-+ if (natoms != 0) {
-+ LP64_ALIGN(size);
-+ size += sizeof(JSAtom *) * natoms;
-+ }
-+ if (nobjects != 0) {
-+ LP64_ALIGN(size);
-+ size += nobjects * sizeof(JSObject *);
-+ }
-+ if (nupvars != 0) {
-+ size += nupvars * sizeof(uint32);
-+ }
-+ if (nregexps != 0) {
-+ LP64_ALIGN(size);
-+ size += nregexps * sizeof(JSObject *);
-+ }
-+ size += length * sizeof(jsbytecode) +
-+ nsrcnotes * sizeof(jssrcnote) +
-+ ntrynotes * sizeof(JSTryNote);
-
- script = (JSScript *) JS_malloc(cx, size);
- if (!script)
-@@ -1393,23 +1423,28 @@ js_NewScript(JSContext *cx, uint32 lengt
-
- cursor = (uint8 *)script + sizeof(JSScript);
- if (nobjects != 0) {
-+ LP64_ALIGNP(cursor);
- script->objectsOffset = (uint8)(cursor - (uint8 *)script);
- cursor += sizeof(JSObjectArray);
- }
- if (nupvars != 0) {
-+ LP64_ALIGNP(cursor);
- script->upvarsOffset = (uint8)(cursor - (uint8 *)script);
- cursor += sizeof(JSUpvarArray);
- }
- if (nregexps != 0) {
-+ LP64_ALIGNP(cursor);
- script->regexpsOffset = (uint8)(cursor - (uint8 *)script);
- cursor += sizeof(JSObjectArray);
- }
- if (ntrynotes != 0) {
-+ LP64_ALIGNP(cursor);
- script->trynotesOffset = (uint8)(cursor - (uint8 *)script);
- cursor += sizeof(JSTryNoteArray);
- }
-
- if (natoms != 0) {
-+ LP64_ALIGNP(cursor);
- script->atomMap.length = natoms;
- script->atomMap.vector = (JSAtom **)cursor;
- vectorSize = natoms * sizeof(script->atomMap.vector[0]);
-@@ -1423,6 +1458,7 @@ js_NewScript(JSContext *cx, uint32 lengt
- }
-
- if (nobjects != 0) {
-+ LP64_ALIGNP(cursor);
- JS_SCRIPT_OBJECTS(script)->length = nobjects;
- JS_SCRIPT_OBJECTS(script)->vector = (JSObject **)cursor;
- vectorSize = nobjects * sizeof(JS_SCRIPT_OBJECTS(script)->vector[0]);
-@@ -1431,6 +1467,7 @@ js_NewScript(JSContext *cx, uint32 lengt
- }
-
- if (nupvars != 0) {
-+ LP64_ALIGNP(cursor);
- JS_SCRIPT_UPVARS(script)->length = nupvars;
- JS_SCRIPT_UPVARS(script)->vector = (uint32 *)cursor;
- vectorSize = nupvars * sizeof(JS_SCRIPT_UPVARS(script)->vector[0]);
-@@ -1439,6 +1476,7 @@ js_NewScript(JSContext *cx, uint32 lengt
- }
-
- if (nregexps != 0) {
-+ LP64_ALIGNP(cursor);
- JS_SCRIPT_REGEXPS(script)->length = nregexps;
- JS_SCRIPT_REGEXPS(script)->vector = (JSObject **)cursor;
- vectorSize = nregexps * sizeof(JS_SCRIPT_REGEXPS(script)->vector[0]);
diff --git a/www/seamonkey/patches/patch-nd b/www/seamonkey/patches/patch-nd
deleted file mode 100644
index 0f39fdf193a..00000000000
--- a/www/seamonkey/patches/patch-nd
+++ /dev/null
@@ -1,37 +0,0 @@
-$NetBSD: patch-nd,v 1.1 2010/03/16 10:59:10 tnn Exp $
-
-# reported upstream as
-# https://bugzilla.mozilla.org/show_bug.cgi?id=514002
-
---- mozilla/gfx/qcms/iccread.c.orig 2009-07-30 17:30:16.000000000 +0200
-+++ mozilla/gfx/qcms/iccread.c 2009-09-01 21:29:29.000000000 +0200
-@@ -23,6 +23,7 @@
- #include <math.h>
- #include <assert.h>
- #include <stdlib.h>
-+#include <string.h>
- #include "qcmsint.h"
-
- //XXX: use a better typename
-@@ -84,7 +85,9 @@ static uint32_t read_u32(struct mem_sour
- invalid_source(mem, "Invalid offset");
- return 0;
- } else {
-- return be32_to_cpu(*(__be32*)(mem->buf + offset));
-+ uint32_t v;
-+ memcpy(&v, mem->buf + offset, 4);
-+ return be32_to_cpu(v);
- }
- }
-
-@@ -94,7 +97,9 @@ static uint16_t read_u16(struct mem_sour
- invalid_source(mem, "Invalid offset");
- return 0;
- } else {
-- return be16_to_cpu(*(__be16*)(mem->buf + offset));
-+ uint16_t v;
-+ memcpy(&v, mem->buf + offset, 2);
-+ return be16_to_cpu(v);
- }
- }
-
diff --git a/www/seamonkey/patches/patch-pa b/www/seamonkey/patches/patch-pa
index 4520459181c..0ba6e64d61f 100644
--- a/www/seamonkey/patches/patch-pa
+++ b/www/seamonkey/patches/patch-pa
@@ -1,12 +1,11 @@
-$NetBSD: patch-pa,v 1.1 2010/03/16 10:59:10 tnn Exp $
+$NetBSD: patch-pa,v 1.2 2011/07/11 20:46:36 tnn Exp $
---- mozilla/xulrunner/installer/mozilla-js.pc.in.orig 2009-06-29 18:15:36.000000000 +0200
+--- mozilla/xulrunner/installer/mozilla-js.pc.in.orig 2010-11-04 19:20:39.000000000 +0000
+++ mozilla/xulrunner/installer/mozilla-js.pc.in
@@ -6,5 +6,5 @@ Name: JavaScript
Description: The Mozilla JavaScript Library
Version: %MOZILLA_VERSION%
Requires: %NSPR_NAME% >= %NSPR_VERSION%
--Libs: -L${sdkdir}/lib -lmozjs
--Cflags: -I${includedir}/stable -DXP_UNIX -DJS_THREADSAFE
-+Libs: -Wl,-R${prefix}/lib/xulrunner -L${prefix}/lib/xulrunner -lmozjs
-+Cflags: -I${includedir}/stable -I${includedir}/unstable -DXP_UNIX -DJS_THREADSAFE
+-Libs: -L${sdkdir}/lib %MOZ_JS_LINK%
++Libs: -Wl,-R${prefix}/lib/xulrunner -L${prefix}/lib/xulrunner %MOZ_JS_LINK%
+ Cflags: -I${includedir} -DXP_UNIX -DJS_THREADSAFE
diff --git a/www/seamonkey/patches/patch-pb b/www/seamonkey/patches/patch-pb
index e5e5f3d107a..aca92870ce3 100644
--- a/www/seamonkey/patches/patch-pb
+++ b/www/seamonkey/patches/patch-pb
@@ -1,11 +1,11 @@
-$NetBSD: patch-pb,v 1.1 2010/03/16 10:59:10 tnn Exp $
+$NetBSD: patch-pb,v 1.2 2011/07/11 20:46:36 tnn Exp $
---- mozilla/xulrunner/installer/libxul.pc.in.orig 2009-06-29 18:15:36.000000000 +0200
+--- mozilla/xulrunner/installer/libxul.pc.in.orig 2010-11-04 19:20:39.000000000 +0000
+++ mozilla/xulrunner/installer/libxul.pc.in
-@@ -12,5 +12,5 @@ Name: libxul
+@@ -7,5 +7,5 @@ Name: libxul
Description: The Mozilla Runtime and Embedding Engine
Version: %MOZILLA_VERSION%
Requires: %NSPR_NAME% >= %NSPR_VERSION%
--Libs: -L${sdkdir}/lib -lxpcomglue_s -lxul -lxpcom
-+Libs: -Wl,-R${prefix}/lib/xulrunner -L${prefix}/lib/xulrunner -lxpcomglue_s -lxul -lxpcom
- Cflags: -I${includedir}/${includetype} %WCHAR_CFLAGS%
+-Libs: -L${sdkdir}/lib %MOZ_XUL_LINK%
++Libs: -Wl,-R${prefix}/lib/xulrunner -L${prefix}/lib/xulrunner %MOZ_XUL_LINK%
+ Cflags: -I${includedir} %WCHAR_CFLAGS%
diff --git a/www/seamonkey/patches/patch-pc b/www/seamonkey/patches/patch-pc
index 955b5095ff2..c89a17b3831 100644
--- a/www/seamonkey/patches/patch-pc
+++ b/www/seamonkey/patches/patch-pc
@@ -1,11 +1,12 @@
-$NetBSD: patch-pc,v 1.1 2010/03/16 10:59:10 tnn Exp $
+$NetBSD: patch-pc,v 1.2 2011/07/11 20:46:36 tnn Exp $
---- mozilla/xulrunner/installer/libxul-embedding.pc.in.orig 2009-06-29 18:15:36.000000000 +0200
+--- mozilla/xulrunner/installer/libxul-embedding.pc.in.orig 2010-04-21 09:07:48.000000000 +0000
+++ mozilla/xulrunner/installer/libxul-embedding.pc.in
-@@ -11,5 +11,5 @@ includetype=stable
+@@ -6,5 +6,6 @@ idldir=%idldir%
Name: libxul-embedding
Description: Static library for version-independent embedding of the Mozilla runtime
Version: %MOZILLA_VERSION%
--Libs: -L${sdkdir}/lib -lxpcomglue
+-Libs: -L${sdkdir}/lib -lxpcomglue -ldl
++# XXXtnn -ldl removed
+Libs: -Wl,-R${prefix}/lib/xulrunner -L${prefix}/lib/xulrunner -lxpcomglue
- Cflags: -DXPCOM_GLUE -I${includedir}/${includetype} %WCHAR_CFLAGS%
+ Cflags: -DXPCOM_GLUE -I${includedir} %WCHAR_CFLAGS%
diff --git a/www/seamonkey/patches/patch-pd b/www/seamonkey/patches/patch-pd
index dc3231e9e9c..df2a232a47d 100644
--- a/www/seamonkey/patches/patch-pd
+++ b/www/seamonkey/patches/patch-pd
@@ -1,6 +1,6 @@
-$NetBSD: patch-pd,v 1.1 2010/03/16 10:59:10 tnn Exp $
+$NetBSD: patch-pd,v 1.2 2011/07/11 20:46:36 tnn Exp $
---- mozilla/xulrunner/installer/mozilla-nss.pc.in.orig 2009-10-16 17:14:30.000000000 +0200
+--- mozilla/xulrunner/installer/mozilla-nss.pc.in.orig 2009-10-29 23:11:24.000000000 +0100
+++ mozilla/xulrunner/installer/mozilla-nss.pc.in
@@ -6,5 +6,5 @@ Name: NSS
Description: Mozilla Network Security Services
@@ -8,4 +8,4 @@ $NetBSD: patch-pd,v 1.1 2010/03/16 10:59:10 tnn Exp $
Requires: %NSPR_NAME% >= %NSPR_VERSION%
-Libs: -L${sdkdir}/lib -lsmime3 -lssl3 -lnss3 -lnssutil3
+Libs: -Wl,-R${prefix}/lib/xulrunner -L${prefix}/lib/xulrunner -lsmime3 -lssl3 -lnss3 -lnssutil3
- Cflags: -I${includedir}/stable
+ Cflags: -I${includedir}
diff --git a/www/seamonkey/patches/patch-pe b/www/seamonkey/patches/patch-pe
deleted file mode 100644
index dc72fa52bd6..00000000000
--- a/www/seamonkey/patches/patch-pe
+++ /dev/null
@@ -1,11 +0,0 @@
-$NetBSD: patch-pe,v 1.1 2010/03/16 10:59:10 tnn Exp $
-
---- mozilla/xulrunner/installer/libxul-unstable.pc.in.orig 2009-06-29 18:15:36.000000000 +0200
-+++ mozilla/xulrunner/installer/libxul-unstable.pc.in
-@@ -8,5 +8,5 @@ Name: libxul
- Description: The Mozilla Runtime and Embedding Engine (unstable API)
- Version: %MOZILLA_VERSION%
- Requires: %NSPR_NAME% >= %NSPR_VERSION%
--Libs: -L${sdkdir}/lib -lxpcomglue_s -lxul -lxpcom
-+Libs: -Wl,-R${prefix}/lib/xulrunner -L${prefix}/lib/xulrunner -lxpcomglue_s -lxul -lxpcom
- Cflags: -I${includedir}/${includetype} %WCHAR_CFLAGS%
diff --git a/www/seamonkey/patches/patch-pf b/www/seamonkey/patches/patch-pf
deleted file mode 100644
index 46216305beb..00000000000
--- a/www/seamonkey/patches/patch-pf
+++ /dev/null
@@ -1,11 +0,0 @@
-$NetBSD: patch-pf,v 1.1 2010/03/16 10:59:10 tnn Exp $
-
---- mozilla/xulrunner/installer/libxul-embedding-unstable.pc.in.orig 2009-06-29 18:15:36.000000000 +0200
-+++ mozilla/xulrunner/installer/libxul-embedding-unstable.pc.in
-@@ -7,5 +7,5 @@ includetype=unstable
- Name: libxul-embedding-unstable
- Description: Static library for version-independent embedding of the Mozilla runtime (unstable API)
- Version: %MOZILLA_VERSION%
--Libs: -L${sdkdir}/lib -lxpcomglue
-+Libs: -Wl,-R${prefix}/lib/xulrunner -L${prefix}/lib/xulrunner -lxpcomglue
- Cflags: -DXPCOM_GLUE -I${includedir}/${includetype} %WCHAR_CFLAGS%
diff --git a/www/seamonkey/patches/patch-pg b/www/seamonkey/patches/patch-pg
index 849e71901be..9db755ee691 100644
--- a/www/seamonkey/patches/patch-pg
+++ b/www/seamonkey/patches/patch-pg
@@ -1,6 +1,6 @@
-$NetBSD: patch-pg,v 1.1 2010/03/16 10:59:10 tnn Exp $
+$NetBSD: patch-pg,v 1.2 2011/07/11 20:46:36 tnn Exp $
---- mozilla/xulrunner/installer/mozilla-nspr.pc.in.orig 2009-06-29 18:15:36.000000000 +0200
+--- mozilla/xulrunner/installer/mozilla-nspr.pc.in.orig 2009-10-29 23:11:24.000000000 +0100
+++ mozilla/xulrunner/installer/mozilla-nspr.pc.in
@@ -5,7 +5,5 @@ includedir=%includedir%
Name: NSPR
@@ -11,4 +11,4 @@ $NetBSD: patch-pg,v 1.1 2010/03/16 10:59:10 tnn Exp $
-
-
+Libs: -Wl,-R${prefix}/lib/xulrunner -L${prefix}/lib/xulrunner -lplds4 -lplc4 -lnspr4 -pthread
-+Cflags: -I${includedir}/stable
++Cflags: -I${includedir}
diff --git a/www/seamonkey/patches/patch-ra b/www/seamonkey/patches/patch-ra
deleted file mode 100644
index 33c68bf0aab..00000000000
--- a/www/seamonkey/patches/patch-ra
+++ /dev/null
@@ -1,9 +0,0 @@
-$NetBSD: patch-ra,v 1.1 2010/03/16 10:59:10 tnn Exp $
-
---- mozilla/browser/branding/unofficial/locales/browserconfig.properties.orig 2009-08-24 17:52:36.000000000 +0200
-+++ mozilla/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/www/seamonkey/patches/patch-rc b/www/seamonkey/patches/patch-rc
index 6594e57a239..200a8cb3e3f 100644
--- a/www/seamonkey/patches/patch-rc
+++ b/www/seamonkey/patches/patch-rc
@@ -1,12 +1,11 @@
-$NetBSD: patch-rc,v 1.1 2010/03/16 10:59:10 tnn Exp $
+$NetBSD: patch-rc,v 1.2 2011/07/11 20:46:36 tnn Exp $
---- mozilla/browser/branding/unofficial/locales/en-US/brand.dtd.orig 2009-08-24 17:52:36.000000000 +0200
+--- mozilla/browser/branding/unofficial/locales/en-US/brand.dtd.orig 2011-01-22 00:24:21.000000000 +0000
+++ mozilla/browser/branding/unofficial/locales/en-US/brand.dtd
-@@ -1,5 +1,5 @@
--<!ENTITY brandShortName "Shiretoko">
--<!ENTITY brandFullName "Shiretoko">
+@@ -1,4 +1,4 @@
+-<!ENTITY brandShortName "Mozilla Developer Preview">
+-<!ENTITY brandFullName "Mozilla Developer Preview">
+<!ENTITY brandShortName "Browser">
+<!ENTITY brandFullName "Browser">
<!ENTITY vendorShortName "mozilla.org">
- <!ENTITY logoCopyright " ">
-
+ <!ENTITY trademarkInfo.part1 " ">
diff --git a/www/seamonkey/patches/patch-toolkit_toolkit-tiers.mk b/www/seamonkey/patches/patch-toolkit_toolkit-tiers.mk
new file mode 100644
index 00000000000..a97f9bec041
--- /dev/null
+++ b/www/seamonkey/patches/patch-toolkit_toolkit-tiers.mk
@@ -0,0 +1,13 @@
+$NetBSD: patch-toolkit_toolkit-tiers.mk,v 1.1 2011/07/11 20:46:36 tnn Exp $
+
+--- mozilla/toolkit/toolkit-tiers.mk.orig 2011-06-15 21:57:56.000000000 +0000
++++ mozilla/toolkit/toolkit-tiers.mk
+@@ -90,7 +90,7 @@ ifndef MOZ_NATIVE_BZ2
+ tier_platform_dirs += modules/libbz2
+ endif
+ tier_platform_dirs += modules/libmar
+-tier_platform_dirs += other-licenses/bsdiff
++#tier_platform_dirs += other-licenses/bsdiff
+ endif
+
+ tier_platform_dirs += gfx/qcms
diff --git a/www/seamonkey/patches/patch-xg b/www/seamonkey/patches/patch-xg
index aa78e6bc7e7..53814dce9d0 100644
--- a/www/seamonkey/patches/patch-xg
+++ b/www/seamonkey/patches/patch-xg
@@ -1,4 +1,4 @@
-$NetBSD: patch-xg,v 1.1 2010/03/16 10:59:10 tnn Exp $
+$NetBSD: patch-xg,v 1.2 2011/07/11 20:46:36 tnn Exp $
NetBSD/arm xptcall support code. From pkgsrc/www/firefox/patch-bm.
diff --git a/www/seamonkey/patches/patch-xh b/www/seamonkey/patches/patch-xh
deleted file mode 100644
index 55413b5a883..00000000000
--- a/www/seamonkey/patches/patch-xh
+++ /dev/null
@@ -1,181 +0,0 @@
-$NetBSD: patch-xh,v 1.1 2010/03/16 10:59:10 tnn Exp $
-
-NetBSD/amd64 xptcall support code. Originally from pkgsrc/www/mozilla.
-
---- mozilla/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_unixish_amd64.cpp.orig 2009-06-30 22:20:24.000000000 +0200
-+++ mozilla/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_unixish_amd64.cpp
-@@ -0,0 +1,174 @@
-+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-+// Platform specific code to invoke XPCOM methods on native objects
-+
-+#include "xptcprivate.h"
-+
-+// 6 integral parameters are passed in registers
-+const PRUint32 GPR_COUNT = 6;
-+
-+// 8 floating point parameters are passed in SSE registers
-+const PRUint32 FPR_COUNT = 8;
-+
-+// Remember that these 'words' are 64-bit long
-+static inline void
-+invoke_count_words(PRUint32 paramCount, nsXPTCVariant * s,
-+ PRUint32 & nr_gpr, PRUint32 & nr_fpr, PRUint32 & nr_stack)
-+{
-+ nr_gpr = 1; // skip one GP register for 'that'
-+ nr_fpr = 0;
-+ nr_stack = 0;
-+
-+ /* Compute number of eightbytes of class MEMORY. */
-+ for (uint32 i = 0; i < paramCount; i++, s++) {
-+ if (!s->IsPtrData()
-+ && (s->type == nsXPTType::T_FLOAT || s->type == nsXPTType::T_DOUBLE)) {
-+ if (nr_fpr < FPR_COUNT)
-+ nr_fpr++;
-+ else
-+ nr_stack++;
-+ }
-+ else {
-+ if (nr_gpr < GPR_COUNT)
-+ nr_gpr++;
-+ else
-+ nr_stack++;
-+ }
-+ }
-+}
-+
-+static void
-+invoke_copy_to_stack(PRUint64 * d, PRUint32 paramCount, nsXPTCVariant * s,
-+ PRUint64 * gpregs, double * fpregs)
-+{
-+ PRUint32 nr_gpr = 1; // skip one GP register for 'that'
-+ PRUint32 nr_fpr = 0;
-+ PRUint64 value;
-+
-+ for (uint32 i = 0; i < paramCount; i++, s++) {
-+ if (s->IsPtrData())
-+ value = (PRUint64) s->ptr;
-+ else {
-+ switch (s->type) {
-+ case nsXPTType::T_FLOAT: break;
-+ case nsXPTType::T_DOUBLE: break;
-+ case nsXPTType::T_I8: value = s->val.i8; break;
-+ case nsXPTType::T_I16: value = s->val.i16; break;
-+ case nsXPTType::T_I32: value = s->val.i32; break;
-+ case nsXPTType::T_I64: value = s->val.i64; break;
-+ case nsXPTType::T_U8: value = s->val.u8; break;
-+ case nsXPTType::T_U16: value = s->val.u16; break;
-+ case nsXPTType::T_U32: value = s->val.u32; break;
-+ case nsXPTType::T_U64: value = s->val.u64; break;
-+ case nsXPTType::T_BOOL: value = s->val.b; break;
-+ case nsXPTType::T_CHAR: value = s->val.c; break;
-+ case nsXPTType::T_WCHAR: value = s->val.wc; break;
-+ default: value = (PRUint64) s->val.p; break;
-+ }
-+ }
-+
-+ if (!s->IsPtrData() && s->type == nsXPTType::T_DOUBLE) {
-+ if (nr_fpr < FPR_COUNT)
-+ fpregs[nr_fpr++] = s->val.d;
-+ else {
-+ *((double *)d) = s->val.d;
-+ d++;
-+ }
-+ }
-+ else if (!s->IsPtrData() && s->type == nsXPTType::T_FLOAT) {
-+ if (nr_fpr < FPR_COUNT)
-+ // The value in %xmm register is already prepared to
-+ // be retrieved as a float. Therefore, we pass the
-+ // value verbatim, as a double without conversion.
-+ fpregs[nr_fpr++] = s->val.d;
-+ else {
-+ *((float *)d) = s->val.f;
-+ d++;
-+ }
-+ }
-+ else {
-+ if (nr_gpr < GPR_COUNT)
-+ gpregs[nr_gpr++] = value;
-+ else
-+ *d++ = value;
-+ }
-+ }
-+}
-+
-+extern "C"
-+XPTC_PUBLIC_API(nsresult)
-+XPTC_InvokeByIndex(nsISupports * that, PRUint32 methodIndex,
-+ PRUint32 paramCount, nsXPTCVariant * params)
-+{
-+ PRUint32 nr_gpr, nr_fpr, nr_stack;
-+ invoke_count_words(paramCount, params, nr_gpr, nr_fpr, nr_stack);
-+
-+ // Stack, if used, must be 16-bytes aligned
-+ if (nr_stack)
-+ nr_stack = (nr_stack + 1) & ~1;
-+
-+ // Load parameters to stack, if necessary
-+ PRUint64 *stack = (PRUint64 *) __builtin_alloca(nr_stack * 8);
-+ PRUint64 gpregs[GPR_COUNT];
-+ double fpregs[FPR_COUNT];
-+ invoke_copy_to_stack(stack, paramCount, params, gpregs, fpregs);
-+
-+ // Load FPR registers from fpregs[]
-+ register double d0 asm("xmm0");
-+ register double d1 asm("xmm1");
-+ register double d2 asm("xmm2");
-+ register double d3 asm("xmm3");
-+ register double d4 asm("xmm4");
-+ register double d5 asm("xmm5");
-+ register double d6 asm("xmm6");
-+ register double d7 asm("xmm7");
-+
-+ switch (nr_fpr) {
-+#define ARG_FPR(N) \
-+ case N+1: d##N = fpregs[N];
-+ ARG_FPR(7);
-+ ARG_FPR(6);
-+ ARG_FPR(5);
-+ ARG_FPR(4);
-+ ARG_FPR(3);
-+ ARG_FPR(2);
-+ ARG_FPR(1);
-+ ARG_FPR(0);
-+ case 0:;
-+#undef ARG_FPR
-+ }
-+
-+ // Load GPR registers from gpregs[]
-+ register PRUint64 a0 asm("rdi");
-+ register PRUint64 a1 asm("rsi");
-+ register PRUint64 a2 asm("rdx");
-+ register PRUint64 a3 asm("rcx");
-+ register PRUint64 a4 asm("r8");
-+ register PRUint64 a5 asm("r9");
-+
-+ switch (nr_gpr) {
-+#define ARG_GPR(N) \
-+ case N+1: a##N = gpregs[N];
-+ ARG_GPR(5);
-+ ARG_GPR(4);
-+ ARG_GPR(3);
-+ ARG_GPR(2);
-+ ARG_GPR(1);
-+ case 1: a0 = (PRUint64) that;
-+ case 0:;
-+#undef ARG_GPR
-+ }
-+
-+ // Ensure that assignments to SSE registers won't be optimized away
-+ asm("" ::
-+ "x" (d0), "x" (d1), "x" (d2), "x" (d3),
-+ "x" (d4), "x" (d5), "x" (d6), "x" (d7));
-+
-+ // Get pointer to method
-+ PRUint64 methodAddress = *((PRUint64 *)that);
-+ methodAddress += 8 * methodIndex;
-+ methodAddress = *((PRUint64 *)methodAddress);
-+
-+ typedef PRUint32 (*Method)(PRUint64, PRUint64, PRUint64, PRUint64, PRUint64, PRUint64);
-+ PRUint32 result = ((Method)methodAddress)(a0, a1, a2, a3, a4, a5);
-+ return result;
-+}
diff --git a/www/seamonkey/patches/patch-xi b/www/seamonkey/patches/patch-xi
deleted file mode 100644
index 5d8c6c1c404..00000000000
--- a/www/seamonkey/patches/patch-xi
+++ /dev/null
@@ -1,213 +0,0 @@
-$NetBSD: patch-xi,v 1.1 2010/03/16 10:59:10 tnn Exp $
-
-NetBSD/amd64 xptcall support code. Originally from pkgsrc/www/mozilla.
-
---- mozilla/xpcom/reflect/xptcall/src/md/unix/xptcstubs_unixish_amd64.cpp.orig 2009-06-30 22:20:24.000000000 +0200
-+++ mozilla/xpcom/reflect/xptcall/src/md/unix/xptcstubs_unixish_amd64.cpp
-@@ -0,0 +1,206 @@
-+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-+
-+// Implement shared vtbl methods.
-+
-+#include "xptcprivate.h"
-+
-+// The Linux/x86-64 ABI passes the first 6 integral parameters and the
-+// first 8 floating point parameters in registers (rdi, rsi, rdx, rcx,
-+// r8, r9 and xmm0-xmm7), no stack space is allocated for these by the
-+// caller. The rest of the parameters are passed in the callers stack
-+// area.
-+
-+const PRUint32 PARAM_BUFFER_COUNT = 16;
-+const PRUint32 GPR_COUNT = 6;
-+const PRUint32 FPR_COUNT = 8;
-+
-+// PrepareAndDispatch() is called by SharedStub() and calls the actual method.
-+//
-+// - 'args[]' contains the arguments passed on stack
-+// - 'gpregs[]' contains the arguments passed in integer registers
-+// - 'fpregs[]' contains the arguments passed in floating point registers
-+//
-+// The parameters are mapped into an array of type 'nsXPTCMiniVariant'
-+// and then the method gets called.
-+
-+extern "C" nsresult
-+PrepareAndDispatch(nsXPTCStubBase * self, PRUint32 methodIndex,
-+ PRUint64 * args, PRUint64 * gpregs, double *fpregs)
-+{
-+ nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT];
-+ nsXPTCMiniVariant* dispatchParams = NULL;
-+ nsIInterfaceInfo* iface_info = NULL;
-+ const nsXPTMethodInfo* info;
-+ PRUint32 paramCount;
-+ PRUint32 i;
-+ nsresult result = NS_ERROR_FAILURE;
-+
-+ NS_ASSERTION(self,"no self");
-+
-+ self->GetInterfaceInfo(&iface_info);
-+ NS_ASSERTION(iface_info,"no interface info");
-+ if (! iface_info)
-+ return NS_ERROR_UNEXPECTED;
-+
-+ iface_info->GetMethodInfo(PRUint16(methodIndex), &info);
-+ NS_ASSERTION(info,"no method info");
-+ if (! info)
-+ return NS_ERROR_UNEXPECTED;
-+
-+ paramCount = info->GetParamCount();
-+
-+ // setup variant array pointer
-+ if(paramCount > PARAM_BUFFER_COUNT)
-+ dispatchParams = new nsXPTCMiniVariant[paramCount];
-+ else
-+ dispatchParams = paramBuffer;
-+
-+ NS_ASSERTION(dispatchParams,"no place for params");
-+ if (! dispatchParams)
-+ return NS_ERROR_OUT_OF_MEMORY;
-+
-+ PRUint64* ap = args;
-+ PRUint32 nr_gpr = 1; // skip one GPR register for 'that'
-+ PRUint32 nr_fpr = 0;
-+ PRUint64 value;
-+
-+ for(i = 0; i < paramCount; i++) {
-+ const nsXPTParamInfo& param = info->GetParam(i);
-+ const nsXPTType& type = param.GetType();
-+ nsXPTCMiniVariant* dp = &dispatchParams[i];
-+
-+ if (!param.IsOut() && type == nsXPTType::T_DOUBLE) {
-+ if (nr_fpr < FPR_COUNT)
-+ dp->val.d = fpregs[nr_fpr++];
-+ else
-+ dp->val.d = *(double*) ap++;
-+ continue;
-+ }
-+ else if (!param.IsOut() && type == nsXPTType::T_FLOAT) {
-+ if (nr_fpr < FPR_COUNT)
-+ // The value in %xmm register is already prepared to
-+ // be retrieved as a float. Therefore, we pass the
-+ // value verbatim, as a double without conversion.
-+ dp->val.d = *(double*) ap++;
-+ else
-+ dp->val.f = *(float*) ap++;
-+ continue;
-+ }
-+ else {
-+ if (nr_gpr < GPR_COUNT)
-+ value = gpregs[nr_gpr++];
-+ else
-+ value = *ap++;
-+ }
-+
-+ if (param.IsOut() || !type.IsArithmetic()) {
-+ dp->val.p = (void*) value;
-+ continue;
-+ }
-+
-+ switch (type) {
-+ case nsXPTType::T_I8: dp->val.i8 = (PRInt8) value; break;
-+ case nsXPTType::T_I16: dp->val.i16 = (PRInt16) value; break;
-+ case nsXPTType::T_I32: dp->val.i32 = (PRInt32) value; break;
-+ case nsXPTType::T_I64: dp->val.i64 = (PRInt64) value; break;
-+ case nsXPTType::T_U8: dp->val.u8 = (PRUint8) value; break;
-+ case nsXPTType::T_U16: dp->val.u16 = (PRUint16) value; break;
-+ case nsXPTType::T_U32: dp->val.u32 = (PRUint32) value; break;
-+ case nsXPTType::T_U64: dp->val.u64 = (PRUint64) value; break;
-+ case nsXPTType::T_BOOL: dp->val.b = (PRBool) value; break;
-+ case nsXPTType::T_CHAR: dp->val.c = (char) value; break;
-+ case nsXPTType::T_WCHAR: dp->val.wc = (wchar_t) value; break;
-+
-+ default:
-+ NS_ASSERTION(0, "bad type");
-+ break;
-+ }
-+ }
-+
-+ result = self->CallMethod((PRUint16) methodIndex, info, dispatchParams);
-+
-+ NS_RELEASE(iface_info);
-+
-+ if (dispatchParams != paramBuffer)
-+ delete [] dispatchParams;
-+
-+ return result;
-+}
-+
-+#if defined(__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100 /* G++ V3 ABI */
-+// Linux/x86-64 uses gcc >= 3.1
-+#define STUB_ENTRY(n) \
-+asm(".section \".text\"\n\t" \
-+ ".align 2\n\t" \
-+ ".if " #n " < 10\n\t" \
-+ ".globl _ZN14nsXPTCStubBase5Stub" #n "Ev\n\t" \
-+ ".type _ZN14nsXPTCStubBase5Stub" #n "Ev,@function\n" \
-+ "_ZN14nsXPTCStubBase5Stub" #n "Ev:\n\t" \
-+ ".elseif " #n " < 100\n\t" \
-+ ".globl _ZN14nsXPTCStubBase6Stub" #n "Ev\n\t" \
-+ ".type _ZN14nsXPTCStubBase6Stub" #n "Ev,@function\n" \
-+ "_ZN14nsXPTCStubBase6Stub" #n "Ev:\n\t" \
-+ ".elseif " #n " < 1000\n\t" \
-+ ".globl _ZN14nsXPTCStubBase7Stub" #n "Ev\n\t" \
-+ ".type _ZN14nsXPTCStubBase7Stub" #n "Ev,@function\n" \
-+ "_ZN14nsXPTCStubBase7Stub" #n "Ev:\n\t" \
-+ ".else\n\t" \
-+ ".err \"stub number " #n " >= 1000 not yet supported\"\n\t" \
-+ ".endif\n\t" \
-+ "movl $" #n ", %eax\n\t" \
-+ "jmp SharedStub\n\t" \
-+ ".if " #n " < 10\n\t" \
-+ ".size _ZN14nsXPTCStubBase5Stub" #n "Ev,.-_ZN14nsXPTCStubBase5Stub" #n "Ev\n\t" \
-+ ".elseif " #n " < 100\n\t" \
-+ ".size _ZN14nsXPTCStubBase6Stub" #n "Ev,.-_ZN14nsXPTCStubBase6Stub" #n "Ev\n\t" \
-+ ".else\n\t" \
-+ ".size _ZN14nsXPTCStubBase7Stub" #n "Ev,.-_ZN14nsXPTCStubBase7Stub" #n "Ev\n\t" \
-+ ".endif");
-+
-+// static nsresult SharedStub(PRUint32 methodIndex)
-+asm(".section \".text\"\n\t"
-+ ".align 2\n\t"
-+ ".type SharedStub,@function\n\t"
-+ "SharedStub:\n\t"
-+ // make room for gpregs (48), fpregs (64)
-+ "pushq %rbp\n\t"
-+ "movq %rsp,%rbp\n\t"
-+ "subq $112,%rsp\n\t"
-+ // save GP registers
-+ "movq %rdi,-112(%rbp)\n\t"
-+ "movq %rsi,-104(%rbp)\n\t"
-+ "movq %rdx, -96(%rbp)\n\t"
-+ "movq %rcx, -88(%rbp)\n\t"
-+ "movq %r8 , -80(%rbp)\n\t"
-+ "movq %r9 , -72(%rbp)\n\t"
-+ "leaq -112(%rbp),%rcx\n\t"
-+ // save FP registers
-+ "movsd %xmm0,-64(%rbp)\n\t"
-+ "movsd %xmm1,-56(%rbp)\n\t"
-+ "movsd %xmm2,-48(%rbp)\n\t"
-+ "movsd %xmm3,-40(%rbp)\n\t"
-+ "movsd %xmm4,-32(%rbp)\n\t"
-+ "movsd %xmm5,-24(%rbp)\n\t"
-+ "movsd %xmm6,-16(%rbp)\n\t"
-+ "movsd %xmm7, -8(%rbp)\n\t"
-+ "leaq -64(%rbp),%r8\n\t"
-+ // rdi has the 'self' pointer already
-+ "movl %eax,%esi\n\t"
-+ "leaq 16(%rbp),%rdx\n\t"
-+ "call PrepareAndDispatch\n\t"
-+ "leave\n\t"
-+ "ret\n\t"
-+ ".size SharedStub,.-SharedStub");
-+
-+#define SENTINEL_ENTRY(n) \
-+nsresult nsXPTCStubBase::Sentinel##n() \
-+{ \
-+ NS_ASSERTION(0,"nsXPTCStubBase::Sentinel called"); \
-+ return NS_ERROR_NOT_IMPLEMENTED; \
-+}
-+
-+#include "xptcstubsdef.inc"
-+
-+#else
-+#error "can't find a compiler to use"
-+#endif /* __GNUC__ */
diff --git a/www/seamonkey/patches/patch-xn b/www/seamonkey/patches/patch-xn
new file mode 100644
index 00000000000..27a58586f7b
--- /dev/null
+++ b/www/seamonkey/patches/patch-xn
@@ -0,0 +1,53 @@
+$NetBSD: patch-xn,v 1.1 2011/07/11 20:46:36 tnn Exp $
+
+--- mozilla/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_mips.s.orig 2010-03-31 05:56:51.000000000 -0400
++++ mozilla/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_mips.s 2010-03-31 06:28:51.000000000 -0400
+@@ -42,8 +42,46 @@
+
+ /* This code is for MIPS using the O32 ABI. */
+
+-#include <sys/regdef.h>
+-#include <sys/asm.h>
++#ifdef __NetBSD__
++# include <machine/regdef.h>
++# include <machine/asm.h>
++# ifndef fp
++# define fp s8
++# endif
++# ifndef PTRLOG
++# if SZREG == 4
++# define PTRLOG 2
++# else
++# define PTRLOG 3
++# endif
++# endif
++# ifndef SETUP_GP
++# if defined(__mips_o32)
++# define SETUP_GP \
++ .set push; \
++ .set noreorder; \
++ .cpload t9; \
++ .set pop
++# define SAVE_GP(x) \
++ .cprestore x
++# else
++# define SETUP_GP
++# define SAVE_GP(x)
++# endif
++# endif
++# ifndef ALSZ
++# if defined(__mips_n32) || defined(__mips_n64)
++# define ALSZ 15
++# define ALMASK ~15
++# else
++# define ALSZ 7
++# define ALMASK ~7
++# endif
++# endif
++#else
++# include <sys/regdef.h>
++# include <sys/asm.h>
++#endif
+
+ # NARGSAVE is the argument space in the callers frame, including extra
+ # 'shadowed' space for the argument registers. The minimum of 4
diff --git a/www/seamonkey/patches/patch-xo b/www/seamonkey/patches/patch-xo
new file mode 100644
index 00000000000..931528ad141
--- /dev/null
+++ b/www/seamonkey/patches/patch-xo
@@ -0,0 +1,53 @@
+$NetBSD: patch-xo,v 1.1 2011/07/11 20:46:36 tnn Exp $
+
+--- mozilla/xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_mips.s.orig 2010-03-31 06:23:31.000000000 -0400
++++ mozilla/xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_mips.s 2010-03-31 06:28:23.000000000 -0400
+@@ -26,8 +26,46 @@
+
+ /* This code is for MIPS using the O32 ABI. */
+
+-#include <sys/regdef.h>
+-#include <sys/asm.h>
++#ifdef __NetBSD__
++# include <machine/regdef.h>
++# include <machine/asm.h>
++# ifndef fp
++# define fp s8
++# endif
++# ifndef PTRLOG
++# if SZREG == 4
++# define PTRLOG 2
++# else
++# define PTRLOG 3
++# endif
++# endif
++# ifndef SETUP_GP
++# if defined(__mips_o32)
++# define SETUP_GP \
++ .set push; \
++ .set noreorder; \
++ .cpload t9; \
++ .set pop
++# define SAVE_GP(x) \
++ .cprestore x
++# else
++# define SETUP_GP
++# define SAVE_GP(x)
++# endif
++# endif
++# ifndef ALSZ
++# if defined(__mips_n32) || defined(__mips_n64)
++# define ALSZ 15
++# define ALMASK ~15
++# else
++# define ALSZ 7
++# define ALMASK ~7
++# endif
++# endif
++#else
++# include <sys/regdef.h>
++# include <sys/asm.h>
++#endif
+
+ # NARGSAVE is the argument space in the callers frame, including extra
+ # 'shadowed' space for the argument registers. The minimum of 4