aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2000-06-28 02:44:45 +0800
committerknu <knu@FreeBSD.org>2000-06-28 02:44:45 +0800
commitd798482a346c19e6f8a63ea49912df636ba76765 (patch)
tree7444a65277f4885275083ffe2718d4d166dc7a54 /www
parentffec74dfa6462ba9fe3811d4bb9240c44529bcb7 (diff)
downloadfreebsd-ports-gnome-d798482a346c19e6f8a63ea49912df636ba76765.tar.gz
freebsd-ports-gnome-d798482a346c19e6f8a63ea49912df636ba76765.tar.zst
freebsd-ports-gnome-d798482a346c19e6f8a63ea49912df636ba76765.zip
Teach the script the prefix in advance instead of letting it guess.
PR: ports/19383 Submitted by: o'brien
Diffstat (limited to 'www')
-rw-r--r--www/netscape-wrapper/Makefile8
-rw-r--r--www/netscape-wrapper/files/netscape.sh2
2 files changed, 6 insertions, 4 deletions
diff --git a/www/netscape-wrapper/Makefile b/www/netscape-wrapper/Makefile
index a023ec9ec946..9441b75c8f45 100644
--- a/www/netscape-wrapper/Makefile
+++ b/www/netscape-wrapper/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= netscape-wrapper
-PORTVERSION= 2000.05.07
+PORTVERSION= 2000.06.28
CATEGORIES= www
MASTER_SITES= # none
DISTFILES= # none
@@ -16,9 +16,11 @@ MAINTAINER= knu@FreeBSD.org
RUN_DEPENDS= netscape-remote:${PORTSDIR}/www/netscape-remote
NO_WRKSUBDIR= yes
-NO_BUILD= yes
+
+do-build:
+ ${SED} 's,%%PREFIX%%,${PREFIX},g' ${FILESDIR}/netscape.sh > ${WRKSRC}/netscape.sh
do-install:
- ${INSTALL_SCRIPT} ${FILESDIR}/netscape.sh ${PREFIX}/bin/netscape
+ ${INSTALL_SCRIPT} ${WRKDIR}/netscape.sh ${PREFIX}/bin/netscape
.include <bsd.port.mk>
diff --git a/www/netscape-wrapper/files/netscape.sh b/www/netscape-wrapper/files/netscape.sh
index db9d3e38dac3..beec64550080 100644
--- a/www/netscape-wrapper/files/netscape.sh
+++ b/www/netscape-wrapper/files/netscape.sh
@@ -7,7 +7,7 @@
# $FreeBSD$
#
-prefix=$(dirname $(dirname $0))
+prefix='%%PREFIX%%'
lockfile=$HOME/.netscape/lock
defs="-irix-session-management"