openbsd-ports/www/firefox36/patches/patch-build_unix_mozilla_in
landry 17b63192b8 Resurrect www/firefox36 from the Attic, installing 3.6.16 in
${LOCALBASE}/firefox36 with firefox36 binary. Needed for archs
firefox 4 doesn't support (yet?). Yes, i'm looking at you sparc64.
Not yet linked to the build.
2011-03-26 10:58:36 +00:00

29 lines
660 B
Plaintext

$OpenBSD: patch-build_unix_mozilla_in,v 1.3 2011/03/26 10:58:36 landry Exp $
--- build/unix/mozilla.in.orig Wed Jan 6 05:35:11 2010
+++ build/unix/mozilla.in Sun Jan 10 17:47:23 2010
@@ -50,6 +50,11 @@
#uncomment for debugging
#set -x
+LIMIT=`ulimit -n`
+if [ $LIMIT -lt 128 -a "${LIMIT}" != "unlimited" ]; then
+ ulimit -Sn 128
+fi
+
moz_libdir=%MOZAPPDIR%
# Use run-mozilla.sh in the current dir if it exists
@@ -131,6 +136,12 @@ do
;;
esac
done
+
+if [ `${X11BASE}/bin/fc-list | wc -l` -eq 0 ]; then
+ export GDK_USE_XFT=0
+fi
+
+export MOZ_PLUGIN_PATH=${MOZ_PLUGIN_PATH:=${LOCALBASE}/lib/mozilla-plugins}
if [ $debugging = 1 ]
then