aboutsummaryrefslogtreecommitdiffstats
path: root/net/tightvnc
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2011-04-29 11:42:10 +0800
committercy <cy@FreeBSD.org>2011-04-29 11:42:10 +0800
commit3c5d759830656accb47aa8759d2987e32334f358 (patch)
treebc41dd30d0c7d44e09acd5868c4b437bc0df329c /net/tightvnc
parent80bfaedf947ccb80eed94bd4622a3cfcad1a5e06 (diff)
downloadfreebsd-ports-gnome-3c5d759830656accb47aa8759d2987e32334f358.tar.gz
freebsd-ports-gnome-3c5d759830656accb47aa8759d2987e32334f358.tar.zst
freebsd-ports-gnome-3c5d759830656accb47aa8759d2987e32334f358.zip
Allow the tightvnc and vnc ports to be installed in alternate locations
thereby allowing them to be installed on the same system. Approved by: each port's maintainer (itetcu & m.tsatsenko@gmail.com)
Diffstat (limited to 'net/tightvnc')
-rw-r--r--net/tightvnc/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/tightvnc/Makefile b/net/tightvnc/Makefile
index ce010fd75cbb..448a82ebf716 100644
--- a/net/tightvnc/Makefile
+++ b/net/tightvnc/Makefile
@@ -50,15 +50,19 @@ PLIST_SUB+= JVNC_VIEWER=""
PLIST_SUB+= JVNC_VIEWER="@comment "
.endif
+.ifdef(TIGHTVNC_BASE)
+PREFIX=${TIGHTVNC_BASE}
+.endif
+
.include <bsd.port.pre.mk>
-.if exists(${LOCALBASE}/share/vnc/classes/index.vnc)
+.if exists(${PREFIX}/share/vnc/classes/index.vnc)
IGNORE= vnc has already been installed, please uninstall it first
.endif
post-patch:
.for file in vncviewer/Imakefile Xvnc/config/cf/vnclibs.def
- @${PERL} -pi -e "s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/${file}
+ @${PERL} -pi -e "s,%%LOCALBASE%%,${PREFIX},g" ${WRKSRC}/${file}
.endfor
@${PERL} -pi -e "s,/usr/local/vnc/classes,${DATADIR}/classes,g ; \
s,^#!/usr/bin/perl,#!${PERL},g" ${WRKSRC}/vncserver