aboutsummaryrefslogtreecommitdiff
path: root/net/tightvnc
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2011-04-29 03:42:10 +0000
committerCy Schubert <cy@FreeBSD.org>2011-04-29 03:42:10 +0000
commit5f7e53be98829466b03a9259ba7f9ecb2ed83093 (patch)
treebc6028fb93d3d54164d4c34b5009c07cd15fa66c /net/tightvnc
parentcfd6de4be5f3369b5baae57ba3b4aa577203b638 (diff)
downloadports-5f7e53be98829466b03a9259ba7f9ecb2ed83093.tar.gz
ports-5f7e53be98829466b03a9259ba7f9ecb2ed83093.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)
Notes
Notes: svn path=/head/; revision=273312
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