2001-11-24 08:08:41 -05:00
|
|
|
# ex:ts=8
|
2001-12-15 04:50:48 -05:00
|
|
|
# New ports collection makefile for: tightvnc
|
2001-11-24 08:08:41 -05:00
|
|
|
# Date created: Nov 24, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2001-12-15 04:50:48 -05:00
|
|
|
PORTNAME= tightvnc
|
2002-05-23 00:20:42 -04:00
|
|
|
PORTVERSION= 1.2.4
|
2001-11-24 08:08:41 -05:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2001-12-15 13:16:21 -05:00
|
|
|
MASTER_SITE_SUBDIR= vnc-tight
|
2001-12-15 04:50:48 -05:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}_unixsrc
|
2001-11-24 08:08:41 -05:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
|
|
|
|
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
WRKSRC= ${WRKDIR}/vnc_unixsrc
|
|
|
|
USE_IMAKE= yes
|
|
|
|
ALL_TARGET= World
|
|
|
|
NO_INSTALL_MANPAGES= yes
|
|
|
|
|
2002-01-21 15:34:44 -05:00
|
|
|
.if exists(${X11BASE}/share/vnc/classes/index.vnc)
|
2001-12-15 04:50:48 -05:00
|
|
|
IGNORE= "vnc has already been installed, please uninstall it first."
|
|
|
|
.endif
|
|
|
|
|
2001-11-24 08:08:41 -05:00
|
|
|
post-patch:
|
|
|
|
.for file in vncviewer/Imakefile Xvnc/config/cf/vnclibs.def
|
|
|
|
@${PERL} -pi -e "s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/${file}
|
|
|
|
.endfor
|
|
|
|
@${PERL} -pi -e "s,/usr/local/vnc/classes,${DATADIR}/classes,g ; \
|
|
|
|
s,^#!/usr/bin/perl,#!${PERL},g" ${WRKSRC}/vncserver
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@(cd ${WRKSRC}; ./vncinstall ${PREFIX}/bin)
|
|
|
|
.for file in Xvnc vncviewer vncpasswd vncconnect
|
|
|
|
@strip ${PREFIX}/bin/${file}
|
|
|
|
.endfor
|
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
${CP} -R ${WRKSRC}/classes ${DATADIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|