b524d07986
- use SUBST_CMD instead of perl -pi -e - use ${LOCALBASE}/${TRUEPREFIX}/${X11BASE} instead of the handpatched _XXX_ ones - harmonize default systemwide plugins/extensions search path to lib/mozilla/{plugins,extensions} as done in other mozilla ports, but keep lib/mozilla-plugins added to MOZ_PLUGIN_PATH atm.
29 lines
660 B
Plaintext
29 lines
660 B
Plaintext
$OpenBSD: patch-build_unix_mozilla_in,v 1.2 2010/04/28 06:50:23 landry Exp $
|
|
--- build/unix/mozilla.in.orig Thu Mar 5 23:31:44 2009
|
|
+++ build/unix/mozilla.in Fri Mar 13 17:36:45 2009
|
|
@@ -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
|
|
@@ -129,6 +134,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
|