diff options
Diffstat (limited to 'net/tightvnc/Makefile')
-rw-r--r-- | net/tightvnc/Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/net/tightvnc/Makefile b/net/tightvnc/Makefile index 4e06e1311140..6847c4c72e9e 100644 --- a/net/tightvnc/Makefile +++ b/net/tightvnc/Makefile @@ -22,7 +22,8 @@ CONFLICTS= tridiavnc-[0-9]* vnc-[0-9]* WRKSRC= ${WRKDIR}/vnc_unixsrc -USES= imake +USES= imake shebangfix +SHEBANG_FILES= vncserver CFLAGS+= -Wno-return-type USE_GCC= yes USE_BZIP2= yes @@ -61,11 +62,11 @@ IGNORE= vnc has already been installed, please uninstall it first post-patch: .for file in vncviewer/Imakefile Xvnc/config/cf/vnclibs.def - @${PERL} -pi -e "s,%%LOCALBASE%%,${PREFIX},g" ${WRKSRC}/${file} + @${REINPLACE_CMD} -i '' -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 - @${PERL} -pi -e "s,%%CC%%,${CC},g ; \ + @${REINPLACE_CMD} -i '' -e "s|/usr/local/vnc/classes|${DATADIR}/classes|g" \ + ${WRKSRC}/vncserver + @${REINPLACE_CMD} -i '' -e "s|%%CC%%|${CC}|g ; \ s|%%CFLAGS%%|${CFLAGS}|g" ${WRKSRC}/Xvnc/config/cf/FreeBSD.cf do-install: |