summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-12-23 18:37:52 +0000
committerSteve Price <steve@FreeBSD.org>1999-12-23 18:37:52 +0000
commite73e818358a3cb100a83647de189f3d62fa55328 (patch)
tree9e8f5ff939b8678c94cd67bfeff35171c27eee2d
parentChange package name from rapache to ru-apache. (diff)
Use PREFIX instead of /usr/local.
Noted by: many people
-rw-r--r--misc/mc/Makefile3
-rw-r--r--misc/mc/files/patch-ai2
2 files changed, 4 insertions, 1 deletions
diff --git a/misc/mc/Makefile b/misc/mc/Makefile
index 9cba3415ef32..45329cbe272e 100644
--- a/misc/mc/Makefile
+++ b/misc/mc/Makefile
@@ -33,4 +33,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
MAN1= midc.1
MAN8= mcserv.8
+post-patch:
+ ${PERL} -i -p -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/vfs/extfs/uzip.in
+
.include <bsd.port.mk>
diff --git a/misc/mc/files/patch-ai b/misc/mc/files/patch-ai
index 9ab65e350498..928ae75deb6d 100644
--- a/misc/mc/files/patch-ai
+++ b/misc/mc/files/patch-ai
@@ -5,7 +5,7 @@
#
-DZIP=/usr/bin
-+DZIP=/usr/local/bin
++DZIP=%%PREFIX%%/bin
XZIP="$DZIP/zip -g"
XDZIP="$DZIP/zip -d"
XUNZIP="$DZIP/unzip"