summaryrefslogtreecommitdiff
path: root/www/seamonkey/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2006-06-28 21:23:29 +0000
committerjoerg <joerg>2006-06-28 21:23:29 +0000
commit9ea22f3e16eba689765cb4851b52e1321997b3bc (patch)
tree0e0155940780e4eacc71d8f089604374ee280e2d /www/seamonkey/patches
parentc703e6cf5d982257e9025e428315889c49b462f0 (diff)
downloadpkgsrc-9ea22f3e16eba689765cb4851b52e1321997b3bc.tar.gz
Disable visiblity support.
Add DragonFly support. Derived from Firefox patches.
Diffstat (limited to 'www/seamonkey/patches')
-rw-r--r--www/seamonkey/patches/patch-ab11
-rw-r--r--www/seamonkey/patches/patch-ac11
-rw-r--r--www/seamonkey/patches/patch-aq29
-rw-r--r--www/seamonkey/patches/patch-bo65
-rw-r--r--www/seamonkey/patches/patch-bq9
-rw-r--r--www/seamonkey/patches/patch-cg20
-rw-r--r--www/seamonkey/patches/patch-db14
-rw-r--r--www/seamonkey/patches/patch-dc23
-rw-r--r--www/seamonkey/patches/patch-dd14
-rw-r--r--www/seamonkey/patches/patch-df32
-rw-r--r--www/seamonkey/patches/patch-dh19
-rw-r--r--www/seamonkey/patches/patch-dj14
-rw-r--r--www/seamonkey/patches/patch-dk14
-rw-r--r--www/seamonkey/patches/patch-dl89
-rw-r--r--www/seamonkey/patches/patch-dm16
-rw-r--r--www/seamonkey/patches/patch-do88
-rw-r--r--www/seamonkey/patches/patch-dr14
-rw-r--r--www/seamonkey/patches/patch-ds14
-rw-r--r--www/seamonkey/patches/patch-dt14
-rw-r--r--www/seamonkey/patches/patch-du18
-rw-r--r--www/seamonkey/patches/patch-dv15
21 files changed, 520 insertions, 23 deletions
diff --git a/www/seamonkey/patches/patch-ab b/www/seamonkey/patches/patch-ab
index 745aee41ae4..7fa720dddd9 100644
--- a/www/seamonkey/patches/patch-ab
+++ b/www/seamonkey/patches/patch-ab
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.2 2006/04/15 08:36:04 ghen Exp $
+$NetBSD: patch-ab,v 1.3 2006/06/28 21:23:29 joerg Exp $
--- configure.in.orig 2006-04-14 22:00:40.000000000 +0200
+++ configure.in
@@ -10,6 +10,15 @@ $NetBSD: patch-ab,v 1.2 2006/04/15 08:36:04 ghen Exp $
TARGET_NSPR_MDCPUCFG='\"md/_darwin.cfg\"'
# set MACOSX to generate lib/mac/MoreFiles/Makefile
MACOSX=1
+@@ -1418,7 +1418,7 @@ case "$target" in
+ LDFLAGS=$_SAVE_LDFLAGS
+ ;;
+
+-*-freebsd*)
++*-freebsd* | *-dragonfly*)
+ if test `test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` != "elf"; then
+ DLL_SUFFIX=".so.1.0"
+ DSO_LDOPTS="-shared"
@@ -1432,6 +1431,9 @@ case "$target" in
# MKSHLIB_FORCE_ALL='-Wl,-Bforcearchive'
# MKSHLIB_UNFORCE_ALL=''
diff --git a/www/seamonkey/patches/patch-ac b/www/seamonkey/patches/patch-ac
index fb22586c2e9..4e0b535ebf3 100644
--- a/www/seamonkey/patches/patch-ac
+++ b/www/seamonkey/patches/patch-ac
@@ -1,13 +1,18 @@
-$NetBSD: patch-ac,v 1.2 2006/06/10 12:37:53 ghen Exp $
+$NetBSD: patch-ac,v 1.3 2006/06/28 21:23:29 joerg Exp $
--- xpcom/reflect/xptcall/src/md/unix/Makefile.in.orig 2005-06-15 10:32:21.000000000 +0200
+++ xpcom/reflect/xptcall/src/md/unix/Makefile.in
-@@ -65,6 +65,9 @@ ifneq (,$(filter FreeBSD NetBSD OpenBSD
+@@ -61,10 +61,13 @@
+ #
+ # 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 (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
++CPPSRCS := xptcinvoke_x86_64_linux.cpp xptcstubs_x86_64_linux.cpp
+endif
endif
#
diff --git a/www/seamonkey/patches/patch-aq b/www/seamonkey/patches/patch-aq
index 4cb5bfa4d5a..da189e2d1e5 100644
--- a/www/seamonkey/patches/patch-aq
+++ b/www/seamonkey/patches/patch-aq
@@ -1,4 +1,4 @@
-$NetBSD: patch-aq,v 1.1.1.1 2006/03/30 19:15:48 ghen Exp $
+$NetBSD: patch-aq,v 1.2 2006/06/28 21:23:29 joerg Exp $
--- directory/c-sdk/configure.in.orig 2005-06-14 23:27:33.000000000 +0200
+++ directory/c-sdk/configure.in
@@ -11,3 +11,30 @@ $NetBSD: patch-aq,v 1.1.1.1 2006/03/30 19:15:48 ghen Exp $
_DEBUG_FLAGS=-g
MOZ_DEBUG=1
MOZ_OPTIMIZE=
+@@ -907,7 +907,7 @@
+ PR_MD_CSRCS=dgux.c
+ ;;
+
+-*-freebsd*)
++*-freebsd*|*-dragonfly*)
+ if test -z "$USE_NSPR_THREADS"; then
+ USE_PTHREADS=1
+ fi
+@@ -2061,7 +2061,7 @@
+ _PTHREAD_LDFLAGS=
+ fi
+ ;;
+- *-freebsd*|*-openbsd*|*-bsdi*|*-netbsd*)
++ *-freebsd*|*-openbsd*|*-bsdi*|*-netbsd*|*-dragonfly*)
+ AC_DEFINE(_THREAD_SAFE)
+ dnl -pthread links in -lc_r, so don't specify it explicitly.
+ if test "$ac_cv_have_dash_pthread" = "yes"; then
+@@ -2114,7 +2114,7 @@
+ AC_DEFINE(_PR_NEED_PTHREAD_INIT)
+ fi
+ ;;
+-*-freebsd*)
++*-freebsd*|*-dragonfly*)
+ if test -n "$USE_NSPR_THREADS"; then
+ AC_DEFINE(_PR_LOCAL_THREADS_ONLY)
+ fi
diff --git a/www/seamonkey/patches/patch-bo b/www/seamonkey/patches/patch-bo
index 0823a8cfdba..3bf993bb3fd 100644
--- a/www/seamonkey/patches/patch-bo
+++ b/www/seamonkey/patches/patch-bo
@@ -1,8 +1,9 @@
-$NetBSD: patch-bo,v 1.1.1.1 2006/03/30 19:15:49 ghen Exp $
+$NetBSD: patch-bo,v 1.2 2006/06/28 21:23:29 joerg Exp $
---- nsprpub/configure.in.orig 2006-01-11 00:16:46.000000000 +0100
-+++ nsprpub/configure.in
-@@ -58,7 +58,7 @@ USE_CPLUS=
+diff -ruN ../Orig/mozilla/nsprpub/configure.in ./nsprpub/configure.in
+--- ../Orig/mozilla/nsprpub/configure.in 2005-09-16 07:37:52.000000000 +0900
++++ ./nsprpub/configure.in 2005-12-04 19:17:56.000000000 +0900
+@@ -57,7 +57,7 @@
USE_IPV6=
USE_MDUPDATE=
_MACOSX_DEPLOYMENT_TARGET=
@@ -11,17 +12,42 @@ $NetBSD: patch-bo,v 1.1.1.1 2006/03/30 19:15:49 ghen Exp $
_DEBUG_FLAGS=-g
MOZ_DEBUG=1
MOZ_OPTIMIZE=
-@@ -1086,6 +1086,9 @@ tools are selected during the Xcode/Deve
+@@ -1045,6 +1045,34 @@
DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
MDCPUCFG_H=_freebsd.cfg
PR_MD_CSRCS=freebsd.c
+ if test "$LIBRUNPATH"; then
+ DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH"
+ fi
++ ;;
++
++*-dragonfly*)
++ if test -z "$USE_NSPR_THREADS"; then
++ USE_PTHREADS=1
++ fi
++ AC_DEFINE(XP_UNIX)
++ AC_DEFINE(FREEBSD)
++ AC_DEFINE(HAVE_BSD_FLOCK)
++ AC_DEFINE(HAVE_SOCKLEN_T)
++ CFLAGS="$CFLAGS $(DSO_CFLAGS) -ansi -Wall"
++ MOZ_OBJFORMAT=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
++ if test "$MOZ_OBJFORMAT" = "elf"; then
++ DLL_SUFFIX=so
++ else
++ DLL_SUFFIX=so.1.0
++ fi
++ MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
++ DSO_CFLAGS=-fPIC
++ DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
++ MDCPUCFG_H=_freebsd.cfg
++ PR_MD_CSRCS=freebsd.c
++ if test "$LIBRUNPATH"; then
++ DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH"
++ fi
;;
*-hpux*)
-@@ -1585,6 +1588,7 @@ mips-nec-sysv*)
+@@ -1544,6 +1572,7 @@
AC_DEFINE(XP_UNIX)
AC_DEFINE(NETBSD)
AC_DEFINE(HAVE_BSD_FLOCK)
@@ -29,3 +55,30 @@ $NetBSD: patch-bo,v 1.1.1.1 2006/03/30 19:15:49 ghen Exp $
USE_NSPR_THREADS=1
MDCPUCFG_H=_netbsd.cfg
PR_MD_CSRCS=netbsd.c
+@@ -2307,7 +2336,7 @@
+ 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
+- freebsd*)
++ freebsd* | dragonfly*)
+ # Freebsd doesn't use -pthread for compiles, it uses them for linking
+ ;;
+ *)
+@@ -2345,7 +2374,7 @@
+ _PTHREAD_LDFLAGS=
+ fi
+ ;;
+- *-freebsd*)
++ *-freebsd* | *-dragonfly*)
+ AC_DEFINE(_REENTRANT)
+ AC_DEFINE(_THREAD_SAFE)
+ dnl -pthread links in -lc_r, so don't specify it explicitly.
+@@ -2426,7 +2455,7 @@
+ AC_DEFINE(_PR_NEED_PTHREAD_INIT)
+ fi
+ ;;
+-*-freebsd*)
++*-freebsd* | *-dragonfly*)
+ if test -n "$USE_NSPR_THREADS"; then
+ AC_DEFINE(_PR_LOCAL_THREADS_ONLY)
+ fi
diff --git a/www/seamonkey/patches/patch-bq b/www/seamonkey/patches/patch-bq
index 5c74df83a0e..13eb3f43cc3 100644
--- a/www/seamonkey/patches/patch-bq
+++ b/www/seamonkey/patches/patch-bq
@@ -1,13 +1,14 @@
-$NetBSD: patch-bq,v 1.1.1.1 2006/03/30 19:15:49 ghen Exp $
+$NetBSD: patch-bq,v 1.2 2006/06/28 21:23:29 joerg Exp $
---- xpcom/io/nsLocalFileUnix.h.orig 2004-04-18 16:18:14.000000000 +0200
-+++ xpcom/io/nsLocalFileUnix.h
+diff -ruN ../Orig/mozilla/xpcom/io/nsLocalFileUnix.h ./xpcom/io/nsLocalFileUnix.h
+--- ../Orig/mozilla/xpcom/io/nsLocalFileUnix.h 2004-04-18 23:18:14.000000000 +0900
++++ ./xpcom/io/nsLocalFileUnix.h 2005-12-04 19:18:04.000000000 +0900
@@ -73,7 +73,7 @@
#endif
// so we can statfs on freebsd
-#if defined(__FreeBSD__)
-+#if defined(__FreeBSD__) || (defined(__NetBSD__) && !defined(HAVE_STATVFS))
++#if defined(__FreeBSD__) || ((defined(__DragonFly__) || defined(__NetBSD__)) && !defined(HAVE_STATVFS))
#define HAVE_SYS_STATFS_H
#define STATFS statfs
#include <sys/param.h>
diff --git a/www/seamonkey/patches/patch-cg b/www/seamonkey/patches/patch-cg
index 2d0fdc37bba..f312692d63b 100644
--- a/www/seamonkey/patches/patch-cg
+++ b/www/seamonkey/patches/patch-cg
@@ -1,8 +1,9 @@
-$NetBSD: patch-cg,v 1.1.1.1 2006/03/30 19:15:51 ghen Exp $
+$NetBSD: patch-cg,v 1.2 2006/06/28 21:23:29 joerg Exp $
---- extensions/transformiix/source/base/Double.cpp.orig 2004-06-17 02:12:42.000000000 +0200
-+++ extensions/transformiix/source/base/Double.cpp
-@@ -49,6 +49,38 @@
+diff -ruN ../Orig/mozilla/extensions/transformiix/source/base/Double.cpp ./extensions/transformiix/source/base/Double.cpp
+--- ../Orig/mozilla/extensions/transformiix/source/base/Double.cpp 2004-06-17 09:12:42.000000000 +0900
++++ ./extensions/transformiix/source/base/Double.cpp 2005-12-04 19:39:05.000000000 +0900
+@@ -49,8 +49,40 @@
* Utility class for doubles
*/
@@ -39,9 +40,12 @@ $NetBSD: patch-cg,v 1.1.1.1 2006/03/30 19:15:51 ghen Exp $
+#else /* pre INFINITY C environment */
+
//A trick to handle IEEE floating point exceptions on FreeBSD - E.D.
- #ifdef __FreeBSD__
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__DragonFly__)
#include <ieeefp.h>
-@@ -128,9 +160,20 @@ const PRUint32 infMask[2] = {0, TX_DO
+ #ifdef __alpha__
+ fp_except_t allmask = FP_X_INV|FP_X_OFL|FP_X_UFL|FP_X_DZ|FP_X_IMP;
+@@ -128,9 +160,20 @@
const PRUint32 negInfMask[2] = {0, TX_DOUBLE_HI32_EXPMASK | TX_DOUBLE_HI32_SIGNBIT};
#endif
@@ -65,7 +69,7 @@ $NetBSD: patch-cg,v 1.1.1.1 2006/03/30 19:15:51 ghen Exp $
/*
* Determines whether the given double represents positive or negative
-@@ -158,6 +201,7 @@ MBool Double::isNeg(double aDbl)
+@@ -158,6 +201,7 @@
{
return (TX_DOUBLE_HI32(aDbl) & TX_DOUBLE_HI32_SIGNBIT) != 0;
}
@@ -73,7 +77,7 @@ $NetBSD: patch-cg,v 1.1.1.1 2006/03/30 19:15:51 ghen Exp $
/*
* Converts the given String to a double, if the String value does not
-@@ -245,7 +289,7 @@ public:
+@@ -245,7 +289,7 @@
{
if (mState == eIllegal || mBuffer.IsEmpty() ||
(mBuffer.Length() == 1 && mBuffer[0] == '.')) {
diff --git a/www/seamonkey/patches/patch-db b/www/seamonkey/patches/patch-db
new file mode 100644
index 00000000000..f34de423bae
--- /dev/null
+++ b/www/seamonkey/patches/patch-db
@@ -0,0 +1,14 @@
+$NetBSD: patch-db,v 1.1 2006/06/28 21:23:29 joerg Exp $
+
+diff -ruN ../Orig/mozilla/gc/boehm/gcconfig.h ./gc/boehm/gcconfig.h
+--- ../Orig/mozilla/gc/boehm/gcconfig.h 2000-08-11 09:13:36.000000000 +0900
++++ ./gc/boehm/gcconfig.h 2005-12-04 19:44:25.000000000 +0900
+@@ -183,7 +183,7 @@
+ # define OPENBSD
+ # define mach_type_known
+ # endif
+-# if defined(__FreeBSD__) && defined(i386)
++# if (defined(__FreeBSD__) || defined(__DragonFly__)) && defined(i386)
+ # define I386
+ # define FREEBSD
+ # define mach_type_known
diff --git a/www/seamonkey/patches/patch-dc b/www/seamonkey/patches/patch-dc
new file mode 100644
index 00000000000..619fce83cc5
--- /dev/null
+++ b/www/seamonkey/patches/patch-dc
@@ -0,0 +1,23 @@
+$NetBSD: patch-dc,v 1.1 2006/06/28 21:23:29 joerg Exp $
+
+diff -ruN ../Orig/mozilla/gc/boehm/mach_dep.c ./gc/boehm/mach_dep.c
+--- ../Orig/mozilla/gc/boehm/mach_dep.c 1999-09-30 11:25:45.000000000 +0900
++++ ./gc/boehm/mach_dep.c 2005-12-04 19:44:28.000000000 +0900
+@@ -206,7 +206,7 @@
+ && !defined(SCO) && !defined(SCO_ELF) \
+ && !(defined(LINUX) && defined(__ELF__)) \
+ && !(defined(__FreeBSD__) && defined(__ELF__)) \
+- && !defined(DOS4GW)
++ && !defined(DOS4GW) && !(defined(__DragonFly__) && defined(__ELF__))
+ /* I386 code, generic code does not appear to work */
+ /* It does appear to work under OS2, and asms dont */
+ /* This is used for some 38g UNIX variants and for CYGWIN32 */
+@@ -220,7 +220,7 @@
+ # endif
+
+ # if ( defined(I386) && defined(LINUX) && defined(__ELF__) ) \
+- || ( defined(I386) && defined(__FreeBSD__) && defined(__ELF__) )
++ || ( defined(I386) && (defined(__FreeBSD__) || defined(__DragonFly__)) && defined(__ELF__) )
+
+ /* This is modified for Linux with ELF (Note: _ELF_ only) */
+ /* This section handles FreeBSD with ELF. */
diff --git a/www/seamonkey/patches/patch-dd b/www/seamonkey/patches/patch-dd
new file mode 100644
index 00000000000..9f205170501
--- /dev/null
+++ b/www/seamonkey/patches/patch-dd
@@ -0,0 +1,14 @@
+$NetBSD: patch-dd,v 1.1 2006/06/28 21:23:29 joerg Exp $
+
+diff -ruN ../Orig/mozilla/mailnews/movemail/src/movemail.c ./mailnews/movemail/src/movemail.c
+--- ../Orig/mozilla/mailnews/movemail/src/movemail.c 2004-04-18 03:33:14.000000000 +0900
++++ ./mailnews/movemail/src/movemail.c 2005-12-04 19:44:32.000000000 +0900
+@@ -52,7 +52,7 @@
+ #define LINUX_GLIBC_2
+
+ #include <sys/errno.h>
+-#if !defined(__FreeBSD__) && !defined(MACLINUX) && !defined(LINUX_GLIBC_2)
++#if !defined(__FreeBSD__) && !defined(MACLINUX) && !defined(LINUX_GLIBC_2) && !defined(__DragonFly__)
+ extern char *sys_errlist[];
+ extern int sys_nerr;
+ #endif
diff --git a/www/seamonkey/patches/patch-df b/www/seamonkey/patches/patch-df
new file mode 100644
index 00000000000..c2228f208f8
--- /dev/null
+++ b/www/seamonkey/patches/patch-df
@@ -0,0 +1,32 @@
+$NetBSD: patch-df,v 1.1 2006/06/28 21:23:29 joerg Exp $
+
+diff -ruN ../Orig/mozilla/nsprpub/pr/include/md/_freebsd.h ./nsprpub/pr/include/md/_freebsd.h
+--- ../Orig/mozilla/nsprpub/pr/include/md/_freebsd.h 2004-11-24 06:22:35.000000000 +0900
++++ ./nsprpub/pr/include/md/_freebsd.h 2005-12-04 19:44:37.000000000 +0900
+@@ -79,7 +79,7 @@
+ #define _PR_NO_LARGE_FILES
+
+ #if defined(_PR_PTHREADS)
+-#if __FreeBSD_version >= 400008
++#if defined(__DragonFly__) || __FreeBSD_version >= 400008
+ /*
+ * libc_r before this version of FreeBSD doesn't have poll().
+ * Although libc has poll(), it is not thread-safe so we can't
+@@ -88,7 +88,7 @@
+ #define _PR_POLL_AVAILABLE
+ #endif
+ #else
+-#if __FreeBSD_version >= 300000
++#if defined(__DragonFly__) || __FreeBSD_version >= 300000
+ #define _PR_POLL_AVAILABLE
+ #define _PR_USE_POLL
+ #endif
+@@ -97,7 +97,7 @@
+ #define _PR_HAVE_SYSV_SEMAPHORES
+ #define PR_HAVE_SYSV_NAMED_SHARED_MEMORY
+
+-#if __FreeBSD_version >= 400014
++#if defined(__DragonFly__) || __FreeBSD_version >= 400014
+ #define _PR_INET6
+ #define _PR_HAVE_INET_NTOP
+ #define _PR_HAVE_GETHOSTBYNAME2
diff --git a/www/seamonkey/patches/patch-dh b/www/seamonkey/patches/patch-dh
new file mode 100644
index 00000000000..22e941352f0
--- /dev/null
+++ b/www/seamonkey/patches/patch-dh
@@ -0,0 +1,19 @@
+$NetBSD: patch-dh,v 1.1 2006/06/28 21:23:29 joerg Exp $
+
+diff -ruN ../Orig/mozilla/xpcom/reflect/xptcall/src/md/unix/xptc_platforms_unixish_x86.h ./xpcom/reflect/xptcall/src/md/unix/xptc_platforms_unixish_x86.h
+--- ../Orig/mozilla/xpcom/reflect/xptcall/src/md/unix/xptc_platforms_unixish_x86.h 2004-04-18 23:18:18.000000000 +0900
++++ ./xpcom/reflect/xptcall/src/md/unix/xptc_platforms_unixish_x86.h 2005-12-04 19:44:41.000000000 +0900
+@@ -77,6 +77,13 @@
+ #define THUNK_BASED_THIS_ADJUST
+ #endif
+
++#elif defined(__DragonFly__)
++# if defined(__FreeBSD_cc_version)
++# define CFRONT_STYLE_THIS_ADJUST
++# else
++# define THUNK_BASED_THIS_ADJUST
++# endif
++
+ #elif defined(__FreeBSD__)
+ /* System versions of gcc on FreeBSD don't use thunks. On 3.x, the system
+ * compiler is gcc 2.7.2.3, which doesn't use thunks by default. On 4.x and
diff --git a/www/seamonkey/patches/patch-dj b/www/seamonkey/patches/patch-dj
new file mode 100644
index 00000000000..fef04f5d739
--- /dev/null
+++ b/www/seamonkey/patches/patch-dj
@@ -0,0 +1,14 @@
+$NetBSD: patch-dj,v 1.1 2006/06/28 21:23:29 joerg Exp $
+
+diff -ruN ../Orig/mozilla/dbm/src/mktemp.c ./dbm/src/mktemp.c
+--- ../Orig/mozilla/dbm/src/mktemp.c 2003-01-21 08:13:37.000000000 +0900
++++ ./dbm/src/mktemp.c 2005-12-04 19:44:43.000000000 +0900
+@@ -98,7 +98,7 @@
+ static int
+ _gettemp(char *path, register int *doopen, int extraFlags)
+ {
+-#if !defined(_WINDOWS) || defined(_WIN32)
++#if (!defined(_WINDOWS) || defined(_WIN32)) && !defined(errno)
+ extern int errno;
+ #endif
+ register char *start, *trv;
diff --git a/www/seamonkey/patches/patch-dk b/www/seamonkey/patches/patch-dk
new file mode 100644
index 00000000000..6d703bffd6b
--- /dev/null
+++ b/www/seamonkey/patches/patch-dk
@@ -0,0 +1,14 @@
+$NetBSD: patch-dk,v 1.1 2006/06/28 21:23:29 joerg Exp $
+
+diff -ruN ../Orig/mozilla/security/coreconf/config.mk ./security/coreconf/config.mk
+--- ../Orig/mozilla/security/coreconf/config.mk 2004-04-26 00:02:17.000000000 +0900
++++ ./security/coreconf/config.mk 2005-12-04 19:44:47.000000000 +0900
+@@ -63,7 +63,7 @@
+ #######################################################################
+
+ TARGET_OSES = FreeBSD BSD_OS NetBSD OpenUNIX OS2 QNX Darwin BeOS OpenBSD \
+- OpenVMS AIX
++ OpenVMS AIX DragonFly
+
+ ifeq (,$(filter-out $(TARGET_OSES),$(OS_TARGET)))
+ include $(CORE_DEPTH)/coreconf/$(OS_TARGET).mk
diff --git a/www/seamonkey/patches/patch-dl b/www/seamonkey/patches/patch-dl
new file mode 100644
index 00000000000..c3b4834ce42
--- /dev/null
+++ b/www/seamonkey/patches/patch-dl
@@ -0,0 +1,89 @@
+$NetBSD: patch-dl,v 1.1 2006/06/28 21:23:29 joerg Exp $
+
+diff -ruN ../Orig/mozilla/security/coreconf/DragonFly.mk ./security/coreconf/DragonFly.mk
+--- ../Orig/mozilla/security/coreconf/DragonFly.mk 1970-01-01 09:00:00.000000000 +0900
++++ ./security/coreconf/DragonFly.mk 2005-12-04 19:44:48.000000000 +0900
+@@ -0,0 +1,83 @@
++#
++# The contents of this file are subject to the Mozilla Public
++# License Version 1.1 (the "License"); you may not use this file
++# except in compliance with the License. You may obtain a copy of
++# the License at http://www.mozilla.org/MPL/
++#
++# Software distributed under the License is distributed on an "AS
++# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
++# implied. See the License for the specific language governing
++# rights and limitations under the License.
++#
++# The Original Code is the Netscape security libraries.
++#
++# The Initial Developer of the Original Code is Netscape
++# Communications Corporation. Portions created by Netscape are
++# Copyright (C) 1994-2000 Netscape Communications Corporation. All
++# Rights Reserved.
++#
++# Contributor(s):
++#
++# Alternatively, the contents of this file may be used under the
++# terms of the GNU General Public License Version 2 or later (the
++# "GPL"), in which case the provisions of the GPL are applicable
++# instead of those above. If you wish to allow use of your
++# version of this file only under the terms of the GPL and not to
++# allow others to use your version of this file under the MPL,
++# indicate your decision by deleting the provisions above and
++# replace them with the notice and other provisions required by
++# the GPL. If you do not delete the provisions above, a recipient
++# may use your version of this file under either the MPL or the
++# GPL.
++#
++# Config stuff for DragonFly
++#
++
++include $(CORE_DEPTH)/coreconf/UNIX.mk
++
++DEFAULT_COMPILER = gcc
++CC = gcc
++CCC = g++
++RANLIB = ranlib
++
++ifeq ($(OS_TEST),alpha)
++CPU_ARCH = alpha
++else
++CPU_ARCH = x86
++endif
++
++OS_CFLAGS = $(DSO_CFLAGS) -ansi -Wall -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
++
++DSO_CFLAGS = -fPIC
++DSO_LDOPTS = -shared -Wl,-soname -Wl,$(notdir $@)
++
++#
++# The default implementation strategy for FreeBSD is pthreads.
++#
++ifndef CLASSIC_NSPR
++USE_PTHREADS = 1
++DEFINES += -D_THREAD_SAFE -D_REENTRANT
++OS_LIBS += -pthread
++DSO_LDOPTS += -pthread
++endif
++
++ARCH = freebsd
++
++MOZ_OBJFORMAT := $(shell test -x /usr/bin/objformat && /usr/bin/objformat || echo aout)
++
++DLL_SUFFIX = so
++
++ifdef LIBRUNPATH
++DSO_LDOPTS += -Wl,-R$(LIBRUNPATH)
++endif
++
++MKSHLIB = $(CC) $(DSO_LDOPTS)
++ifdef MAPFILE
++# Add LD options to restrict exported symbols to those in the map file
++endif
++# Change PROCESS to put the mapfile in the correct format for this platform
++PROCESS_MAP_FILE = cp $(LIBRARY_NAME).def $@
++
++G++INCLUDES = -I/usr/include/g++
++
++INCLUDES += -I/usr/X11R6/include
diff --git a/www/seamonkey/patches/patch-dm b/www/seamonkey/patches/patch-dm
new file mode 100644
index 00000000000..25ab717e0aa
--- /dev/null
+++ b/www/seamonkey/patches/patch-dm
@@ -0,0 +1,16 @@
+$NetBSD: patch-dm,v 1.1 2006/06/28 21:23:29 joerg Exp $
+
+diff -ruN ../Orig/mozilla/security/nss/cmd/platlibs.mk ./security/nss/cmd/platlibs.mk
+--- ../Orig/mozilla/security/nss/cmd/platlibs.mk 2005-04-07 06:35:41.000000000 +0900
++++ ./security/nss/cmd/platlibs.mk 2005-12-04 19:44:52.000000000 +0900
+@@ -186,8 +186,8 @@
+ # If GNU ld is used, we must use the -rpath-link option to tell
+ # the linker where to find libsoftokn3.so, an implicit dependency
+ # of libnss3.so.
+-ifeq (,$(filter-out BSD_OS FreeBSD Linux NetBSD, $(OS_ARCH)))
+-EXTRA_SHARED_LIBS += -Wl,-rpath-link,$(DIST)/lib
++ifeq (,$(filter-out BSD_OS FreeBSD Linux NetBSD DragonFly, $(OS_ARCH)))
++EXTRA_SHARED_LIBS += -Wl,-rpath-link,$(DIST)/lib -R/usr/pkg/lib/firefox
+ endif
+
+ ifeq ($(OS_ARCH), SunOS)
diff --git a/www/seamonkey/patches/patch-do b/www/seamonkey/patches/patch-do
new file mode 100644
index 00000000000..4c57459c292
--- /dev/null
+++ b/www/seamonkey/patches/patch-do
@@ -0,0 +1,88 @@
+$NetBSD: patch-do,v 1.1 2006/06/28 21:23:29 joerg Exp $
+
+diff -ruN ../Orig/mozilla/directory/c-sdk/config/DragonFly.mk ./directory/c-sdk/config/DragonFly.mk
+--- ../Orig/mozilla/directory/c-sdk/config/DragonFly.mk 1970-01-01 09:00:00.000000000 +0900
++++ ./directory/c-sdk/config/DragonFly.mk 2005-12-04 19:44:55.000000000 +0900
+@@ -0,0 +1,82 @@
++#
++# The contents of this file are subject to the Mozilla Public
++# License Version 1.1 (the "License"); you may not use this file
++# except in compliance with the License. You may obtain a copy of
++# the License at http://www.mozilla.org/MPL/
++#
++# Software distributed under the License is distributed on an "AS
++# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
++# implied. See the License for the specific language governing
++# rights and limitations under the License.
++#
++# The Original Code is the Netscape Portable Runtime (NSPR).
++#
++# The Initial Developer of the Original Code is Netscape
++# Communications Corporation. Portions created by Netscape are
++# Copyright (C) 1998-2000 Netscape Communications Corporation. All
++# Rights Reserved.
++#
++# Contributor(s):
++#
++# Alternatively, the contents of this file may be used under the
++# terms of the GNU General Public License Version 2 or later (the
++# "GPL"), in which case the provisions of the GPL are applicable
++# instead of those above. If you wish to allow use of your
++# version of this file only under the terms of the GPL and not to
++# allow others to use your version of this file under the MPL,
++# indicate your decision by deleting the provisions above and
++# replace them with the notice and other provisions required by
++# the GPL. If you do not delete the provisions above, a recipient
++# may use your version of this file under either the MPL or the
++# GPL.
++#
++
++#
++# Config stuff for DragonFly
++#
++
++include $(MOD_DEPTH)/config/UNIX.mk
++
++CC = gcc
++CCC = g++
++RANLIB = ranlib
++
++OS_REL_CFLAGS = -Di386
++CPU_ARCH = x86
++CPU_ARCH_TAG = _$(CPU_ARCH)
++
++OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe $(THREAD_FLAG) -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
++
++#
++# The default implementation strategy for FreeBSD is pthreads.
++#
++ifeq ($(CLASSIC_NSPR),1)
++IMPL_STRATEGY = _EMU
++DEFINES += -D_PR_LOCAL_THREADS_ONLY
++else
++USE_PTHREADS = 1
++IMPL_STRATEGY = _PTH
++DEFINES += -D_THREAD_SAFE
++THREAD_FLAG += -pthread
++endif
++
++ARCH = freebsd
++
++MOZ_OBJFORMAT := $(shell test -x /usr/bin/objformat && /usr/bin/objformat || echo aout)
++
++ifeq ($(MOZ_OBJFORMAT),elf)
++DLL_SUFFIX = so
++else
++DLL_SUFFIX = so.1.0
++endif
++
++DSO_CFLAGS = -fPIC
++DSO_LDOPTS = -Bshareable
++
++ifdef LIBRUNPATH
++DSO_LDOPTS += -Wl,-R$(LIBRUNPATH)
++endif
++
++MKSHLIB = $(LD) $(DSO_LDOPTS)
++
++G++INCLUDES = -I/usr/include/g++
diff --git a/www/seamonkey/patches/patch-dr b/www/seamonkey/patches/patch-dr
new file mode 100644
index 00000000000..4288e4e9131
--- /dev/null
+++ b/www/seamonkey/patches/patch-dr
@@ -0,0 +1,14 @@
+$NetBSD: patch-dr,v 1.1 2006/06/28 21:23:29 joerg Exp $
+
+diff -ruN ../Orig/mozilla/config/config.mk ./config/config.mk
+--- ../Orig/mozilla/config/config.mk 2005-07-29 04:48:11.000000000 +0900
++++ ./config/config.mk 2005-12-04 19:45:20.000000000 +0900
+@@ -121,7 +121,7 @@
+ # but save the version to allow multiple versions of the same base
+ # platform to be built in the same tree.
+ #
+-ifneq (,$(filter FreeBSD HP-UX IRIX Linux NetBSD OpenBSD OSF1 SunOS,$(OS_ARCH)))
++ifneq (,$(filter DragonFly FreeBSD HP-UX IRIX Linux NetBSD OpenBSD OSF1 SunOS,$(OS_ARCH)))
+ OS_RELEASE := $(basename $(OS_RELEASE))
+
+ # Allow the user to ignore the OS_VERSION, which is usually irrelevant.
diff --git a/www/seamonkey/patches/patch-ds b/www/seamonkey/patches/patch-ds
new file mode 100644
index 00000000000..60767a2783a
--- /dev/null
+++ b/www/seamonkey/patches/patch-ds
@@ -0,0 +1,14 @@
+$NetBSD: patch-ds,v 1.1 2006/06/28 21:23:29 joerg Exp $
+
+diff -ruN ../Orig/mozilla/security/coreconf/arch.mk ./security/coreconf/arch.mk
+--- ../Orig/mozilla/security/coreconf/arch.mk 2005-10-11 08:30:12.000000000 +0900
++++ ./security/coreconf/arch.mk 2005-12-04 19:45:28.000000000 +0900
+@@ -145,7 +145,7 @@
+ # IRIX 6.5-ALPHA-1289139620.
+ #
+
+-ifeq (,$(filter-out Linux FreeBSD IRIX,$(OS_ARCH)))
++ifeq (,$(filter-out Linux DragonFly FreeBSD IRIX,$(OS_ARCH)))
+ OS_RELEASE := $(shell echo $(OS_RELEASE) | sed 's/-.*//')
+ endif
+
diff --git a/www/seamonkey/patches/patch-dt b/www/seamonkey/patches/patch-dt
new file mode 100644
index 00000000000..509c875d308
--- /dev/null
+++ b/www/seamonkey/patches/patch-dt
@@ -0,0 +1,14 @@
+$NetBSD: patch-dt,v 1.1 2006/06/28 21:23:29 joerg Exp $
+
+diff -ruN ../Orig/mozilla/directory/c-sdk/config/arch.mk ./directory/c-sdk/config/arch.mk
+--- ../Orig/mozilla/directory/c-sdk/config/arch.mk 2002-03-27 06:51:57.000000000 +0900
++++ ./directory/c-sdk/config/arch.mk 2005-12-04 19:45:29.000000000 +0900
+@@ -138,7 +138,7 @@
+ # Handle FreeBSD 2.2-STABLE and Linux 2.0.30-osfmach3
+ #
+
+-ifeq (,$(filter-out Linux FreeBSD,$(OS_ARCH)))
++ifeq (,$(filter-out Linux DragonFly FreeBSD,$(OS_ARCH)))
+ OS_RELEASE := $(shell echo "$(OS_RELEASE)" | sed 's/-.*//')
+ endif
+
diff --git a/www/seamonkey/patches/patch-du b/www/seamonkey/patches/patch-du
new file mode 100644
index 00000000000..a85a8e01ea2
--- /dev/null
+++ b/www/seamonkey/patches/patch-du
@@ -0,0 +1,18 @@
+$NetBSD: patch-du,v 1.1 2006/06/28 21:23:29 joerg Exp $
+
+diff -ruN ../Orig/mozilla/config/rules.mk ./config/rules.mk
+--- ../Orig/mozilla/config/rules.mk 2005-10-11 08:16:39.000000000 +0900
++++ ./config/rules.mk 2005-12-04 19:45:31.000000000 +0900
+@@ -447,6 +447,12 @@
+ endif
+ endif
+
++ifeq ($(OS_ARCH),DragonFly)
++ifdef IS_COMPONENT
++EXTRA_DSO_LDOPTS += -Wl,-Bsymbolic
++endif
++endif
++
+ ifeq ($(OS_ARCH),NetBSD)
+ ifneq (,$(filter arc cobalt hpcmips mipsco newsmips pmax sgimips,$(OS_TEST)))
+ ifeq ($(MODULE),layout)
diff --git a/www/seamonkey/patches/patch-dv b/www/seamonkey/patches/patch-dv
new file mode 100644
index 00000000000..bc204d9ab99
--- /dev/null
+++ b/www/seamonkey/patches/patch-dv
@@ -0,0 +1,15 @@
+$NetBSD: patch-dv,v 1.1 2006/06/28 21:23:29 joerg Exp $
+
+diff -ruN ../Orig/mozilla/js/src/Makefile.in ./js/src/Makefile.in
+--- ../Orig/mozilla/js/src/Makefile.in 2005-06-01 23:26:26.000000000 +0900
++++ ./js/src/Makefile.in 2005-12-04 19:45:33.000000000 +0900
+@@ -256,6 +256,9 @@
+ ifeq ($(OS_ARCH),FreeBSD)
+ LDFLAGS += -pthread
+ endif
++ifeq ($(OS_ARCH),DragonFly)
++LDFLAGS += -pthread
++endif
+ ifeq ($(OS_ARCH),IRIX)
+ ifdef USE_N32
+ DASH_R += -n32