1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-08 23:06:56 +00:00
freebsd-ports/www/galeon/files/patch-ab

24 lines
817 B
Plaintext
Raw Normal View History

--- src/galeon.orig Tue Aug 1 11:22:03 2000
+++ src/galeon Tue Aug 1 11:22:14 2000
@@ -1,14 +1,14 @@
-#!/bin/bash
+#!/bin/sh
-dist_bin=`dirname $0`
+dist_bin=%%PREFIX%%/bin
if test -n "$MOZILLA_FIVE_HOME"; then
export LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME:$LD_LIBRARY_PATH
exec $dist_bin/galeon-bin $@
-elif [ -f /usr/local/mozilla/libgtkembedmoz.so ]; then
- MOZILLA_HOME=/usr/local/mozilla
-elif [ -f /usr/lib/mozilla/libgtkembedmoz.so ]; then
- MOZILLA_HOME=/usr/lib/mozilla
+elif [ -f %%LOCALBASE%%/lib/mozilla/libgtkembedmoz.so ]; then
+ MOZILLA_HOME=%%LOCALBASE%%/lib/mozilla
+elif [ -f %%X11BASE%%/lib/mozilla/libgtkembedmoz.so ]; then
+ MOZILLA_HOME=%%X11BASE%%/lib/mozilla
else
echo "Cannot find mozilla installation directory. Please set MOZILLA_FIVE_HOME to your mozilla directory"
exit