aboutsummaryrefslogtreecommitdiffstats
path: root/net/tightvnc/Makefile
blob: 66adab935d31ce0010861d951b738cccf3eb15c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# ex:ts=8
# New ports collection makefile for:    vnc-tight
# Date created:         Nov 24, 2001
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   vnc-tight
PORTVERSION=    1.2.2
CATEGORIES= net
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   tightvnc-${PORTVERSION}_unixsrc

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

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>