diff options
author | Cy Schubert <cy@FreeBSD.org> | 2011-04-29 03:42:10 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2011-04-29 03:42:10 +0000 |
commit | 5f7e53be98829466b03a9259ba7f9ecb2ed83093 (patch) | |
tree | bc6028fb93d3d54164d4c34b5009c07cd15fa66c /net/tightvnc | |
parent | cfd6de4be5f3369b5baae57ba3b4aa577203b638 (diff) |
Notes
Diffstat (limited to 'net/tightvnc')
-rw-r--r-- | net/tightvnc/Makefile | 8 |
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 |