1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/net/tightvnc/Makefile

54 lines
1.4 KiB
Makefile
Raw Normal View History

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