# Created by: ijliao # $FreeBSD$ PORTNAME= tightvnc PORTVERSION= 1.3.10 PORTREVISION= 3 CATEGORIES= net java MASTER_SITES= SF/vnc-tight/TightVNC-unix/${PORTVERSION} DISTNAME= ${PORTNAME}-${PORTVERSION}_unixsrc MAINTAINER= meta+ports@vmeta.jp COMMENT= Enhanced version of VNC LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENCE.TXT LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg RUN_DEPENDS= showrgb:${PORTSDIR}/x11/rgb \ xauth:${PORTSDIR}/x11/xauth \ xorg-fonts>=7.2:${PORTSDIR}/x11-fonts/xorg-fonts MAKE_JOBS_UNSAFE= yes CONFLICTS= tridiavnc-[0-9]* vnc-[0-9]* WRKSRC= ${WRKDIR}/vnc_unixsrc USES= imake shebangfix perl5 SHEBANG_FILES= vncserver CFLAGS+= -Wno-return-type USE_BZIP2= yes USE_XORG= xaw ALL_TARGET= World OPTIONS_DEFINE= JVNC_VIEWER JVNC_VIEWER_DESC= Install Java-based vnc viewer .include .if ${PORT_OPTIONS:MJVNC_VIEWER} USE_JAVA= yes JAVA_RUN= yes PLIST_SUB+= JVNC_VIEWER="" .else PLIST_SUB+= JVNC_VIEWER="@comment " .endif .ifdef(TIGHTVNC_BASE) PREFIX=${TIGHTVNC_BASE} .endif .include .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 @${REINPLACE_CMD} -i '' -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/${file} .endfor @${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: @(cd ${WRKSRC}; ./vncinstall ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${PREFIX}/man) .if defined(STRIP) && ${STRIP} != "" .for FILE in Xvnc vncviewer vncpasswd vncconnect @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${FILE} .endfor .endif .if ${PORT_OPTIONS:MJVNC_VIEWER} @${MKDIR} ${STAGEDIR}${DATADIR}/classes ${INSTALL_DATA} ${WRKSRC}/classes/*.* ${STAGEDIR}${DATADIR}/classes .endif .include