2001-11-24 14:08:41 +01:00
|
|
|
# ex:ts=8
|
2001-12-15 10:50:48 +01:00
|
|
|
# New ports collection makefile for: tightvnc
|
2001-11-24 14:08:41 +01:00
|
|
|
# Date created: Nov 24, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2001-12-15 10:50:48 +01:00
|
|
|
PORTNAME= tightvnc
|
2003-08-05 07:48:20 +02:00
|
|
|
PORTVERSION= 1.2.9
|
2001-11-24 14:08:41 +01:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2001-12-15 19:16:21 +01:00
|
|
|
MASTER_SITE_SUBDIR= vnc-tight
|
2001-12-15 10:50:48 +01:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}_unixsrc
|
2001-11-24 14:08:41 +01:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= Enhanced version of VNC
|
2001-11-24 14:08:41 +01:00
|
|
|
|
2003-01-02 20:14:36 +01:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
|
2001-11-24 14:08:41 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/vnc_unixsrc
|
2003-08-05 07:48:20 +02:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_PERL5= yes
|
2001-11-24 14:08:41 +01:00
|
|
|
USE_IMAKE= yes
|
2003-01-02 20:14:36 +01:00
|
|
|
USE_XPM= yes
|
2001-11-24 14:08:41 +01:00
|
|
|
ALL_TARGET= World
|
|
|
|
NO_INSTALL_MANPAGES= yes
|
2002-06-01 03:18:11 +02:00
|
|
|
XFREE86_HTML_MAN= no
|
|
|
|
|
|
|
|
MAN1= Xvnc.1 vncviewer.1 vncpasswd.1 vncconnect.1 vncserver.1
|
2001-11-24 14:08:41 +01:00
|
|
|
|
2003-08-05 07:48:20 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${XFREE86_VERSION} >= 4
|
|
|
|
RUN_DEPENDS+= ${X11BASE}/lib/X11/fonts/misc/10x20.pcf.gz:${PORTSDIR}/x11-fonts/XFree86-4-fontDefaultBitmaps
|
|
|
|
.endif
|
|
|
|
|
2002-01-21 21:34:44 +01:00
|
|
|
.if exists(${X11BASE}/share/vnc/classes/index.vnc)
|
2001-12-15 10:50:48 +01:00
|
|
|
IGNORE= "vnc has already been installed, please uninstall it first."
|
|
|
|
.endif
|
|
|
|
|
2001-11-24 14:08:41 +01: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
|
2003-01-02 20:14:36 +01:00
|
|
|
@${PERL} -pi -e "s,%%CC%%,${CC},g ; \
|
|
|
|
s,%%CFLAGS%%,${CFLAGS},g" ${WRKSRC}/Xvnc/config/cf/FreeBSD.cf
|
2001-11-24 14:08:41 +01:00
|
|
|
|
|
|
|
do-install:
|
2002-06-01 03:18:11 +02:00
|
|
|
@(cd ${WRKSRC}; ./vncinstall ${PREFIX}/bin ${PREFIX}/man)
|
2001-11-24 14:08:41 +01:00
|
|
|
.for file in Xvnc vncviewer vncpasswd vncconnect
|
2003-01-02 20:14:36 +01:00
|
|
|
@${STRIP_CMD} ${PREFIX}/bin/${file}
|
2001-11-24 14:08:41 +01:00
|
|
|
.endfor
|
2003-01-02 20:14:36 +01:00
|
|
|
@${MKDIR} ${DATADIR}/classes
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/classes/*.* ${DATADIR}/classes
|
2001-11-24 14:08:41 +01:00
|
|
|
|
2003-08-05 07:48:20 +02:00
|
|
|
.include <bsd.port.post.mk>
|