From 589477efe47c16a83665a3f16710091e61ac8603 Mon Sep 17 00:00:00 2001
From: mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>
Date: Fri, 28 Dec 2007 17:39:32 +0000
Subject: Add "--with-default-mozilla-five-home=${PREFIX}/lib/${MOZILLA}" to
 fix other applications in the runtime. Some applications required to have set
 MOZILLA_FIVE_HOME or/and LD_LIBRARY_PATH to make it works in the runtime.
 Now, it's no longer need to set these variables, which this flag takes care
 of it. The MOZILLA_FIVE_HOME still works with this flag if someone need to
 use different one. I have learned about this flag from RPM, Debian, Gentoo
 ebuild and other packages. Bump the PORTREVISION.

It has been tested with py-gnome-extras, ruby-gtkmozembed, epiphany,
development version of deluge, miro and yelp in both build and run time
with Firefox.

marcus wants me to put in MC first before I put these in FreeBSD ports tree,
because of ports tree still isn't complete unfreeze. I personal doubt that it
will causing any problem, so if it does then please report to me.


git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10009 df743ca5-7f9a-e211-a948-0013205c9059
---
 www/libxul/files/patch-embedding_base_nsEmbedAPI.cpp | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 www/libxul/files/patch-embedding_base_nsEmbedAPI.cpp

(limited to 'www/libxul/files/patch-embedding_base_nsEmbedAPI.cpp')

diff --git a/www/libxul/files/patch-embedding_base_nsEmbedAPI.cpp b/www/libxul/files/patch-embedding_base_nsEmbedAPI.cpp
new file mode 100644
index 000000000..2cc9823fe
--- /dev/null
+++ b/www/libxul/files/patch-embedding_base_nsEmbedAPI.cpp
@@ -0,0 +1,16 @@
+--- embedding/base/nsEmbedAPI.cpp.orig	2007-10-09 20:00:30.000000000 -0400
++++ embedding/base/nsEmbedAPI.cpp	2007-10-09 20:01:45.000000000 -0400
+@@ -53,7 +53,12 @@ static PRBool             sRegistryIniti
+ static PRUint32           sInitCounter = 0;
+ 
+ #define HACK_AROUND_THREADING_ISSUES
+-//#define HACK_AROUND_NONREENTRANT_INITXPCOM
++#ifdef __FreeBSD__
++#include <sys/param.h>
++#if __FreeBSD_version < 700042
++#define HACK_AROUND_NONREENTRANT_INITXPCOM
++#endif
++#endif
+ 
+ #ifdef HACK_AROUND_NONREENTRANT_INITXPCOM
+ // XXX hack class to clean up XPCOM when this module is unloaded
-- 
cgit