1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-29 21:39:24 +00:00
freebsd-ports/www/galeon/files/patch-ab
2001-01-29 15:11:00 +00:00

29 lines
952 B
Plaintext

$FreeBSD$
--- src/galeon.orig Tue Jan 23 15:58:45 2001
+++ src/galeon Mon Jan 29 16:45:16 2001
@@ -1,15 +1,15 @@
#!/bin/sh
-dist_bin=`dirname $0`
+dist_bin=%%PREFIX%%/bin
if test -n "$MOZILLA_FIVE_HOME"; then
MOZILLA_HOME=$MOZILLA_FIVE_HOME
-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 /opt/mozilla/libgtkembedmoz.so ]; then
- MOZILLA_HOME=/opt/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%%
+elif [ -f %%PREFIX%%/lib/%%MOZILLA%%/libgtkembedmoz.so ]; then
+ MOZILLA_HOME=%%PREFIX%%/lib/%%MOZILLA%%
else
echo "Cannot find mozilla installation directory. Please set MOZILLA_FIVE_HOME to your mozilla directory"
exit