summaryrefslogtreecommitdiff
path: root/mail/thunderbird/patches/patch-aa-toplevel
diff options
context:
space:
mode:
Diffstat (limited to 'mail/thunderbird/patches/patch-aa-toplevel')
-rw-r--r--mail/thunderbird/patches/patch-aa-toplevel58
1 files changed, 58 insertions, 0 deletions
diff --git a/mail/thunderbird/patches/patch-aa-toplevel b/mail/thunderbird/patches/patch-aa-toplevel
new file mode 100644
index 00000000000..d6557c3777b
--- /dev/null
+++ b/mail/thunderbird/patches/patch-aa-toplevel
@@ -0,0 +1,58 @@
+$NetBSD: patch-aa-toplevel,v 1.1 2009/11/29 03:06:43 tnn Exp $
+
+--- configure.in.orig 2009-10-25 15:29:01.000000000 +0100
++++ configure.in
+@@ -1963,7 +1963,7 @@ case "$target" in
+ fi
+ ;;
+
+-*-freebsd*)
++*-freebsd* | *-dragonfly*)
+ 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
++ if test "$LIBRUNPATH"; then
++ DSO_LDOPTS="-Wl,-R$LIBRUNPATH $DSO_LDOPTS"
++ fi
+ ;;
+
+ *-hpux*)
+@@ -3173,6 +3176,9 @@ dnl ====================================
+ case $target in
+ *-hpux11.*)
+ ;;
++*-dragonfly*)
++ AC_CHECK_LIB(c, gethostbyname_r)
++ ;;
+ *)
+ AC_CHECK_LIB(c_r, gethostbyname_r)
+ ;;
+@@ -4233,6 +4239,14 @@ else
+ fi
+ fi
+
++if test -n "${LIBXUL_SDK_DIR}"; then
++ AC_MSG_WARN([pkgsrc: LIBXUL_SDK_DIR is set; assuming we want nss and nspr from xulrunner.])
++ NSPR_CFLAGS="-I${prefix}/include/xulrunner/unstable `pkg-config --cflags mozilla-nspr`"
++ NSPR_LIBS="`pkg-config --libs mozilla-nspr`"
++ NSS_CFLAGS="`pkg-config --cflags mozilla-nss`"
++ NSS_LIBS="`pkg-config --libs mozilla-nss`"
++fi
++
+ if test -z "$SKIP_LIBRARY_CHECKS"; then
+ dnl system JPEG support
+ dnl ========================================================
+@@ -7513,7 +7527,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()
+-MOZ_DEFINES=$DEFS
++# nbsed broken. PR bin/42261
++MOZ_DEFINES="$DEFS`awk 'BEGIN {while(x<1000){printf " ";x++}}'`"
+ AC_SUBST(MOZ_DEFINES)
+ rm -f confdefs.h
+ mv confdefs.h.save confdefs.h