Merge from vendor branch tnftp:
[pkgsrcv2.git] / net / vnc / Makefile
1 # $NetBSD: Makefile,v 1.9 1999/09/04 10:35:59 tron Exp $
2 # FreeBSD Id: Makefile,v 1.2 1998/03/19 01:54:59 msmith Exp
3 #
4
5 DISTNAME=               vnc-3.3.3r1
6 PKGNAME=                vnc-3.3.3.1
7 CATEGORIES=             net x11
8 MASTER_SITES=           http://www.uk.research.att.com/vnc/dist/
9 DISTFILES=              vnc-3.3.3r1_unixsrc.tgz \
10                         vnc-latest_doc.tgz
11
12 MAINTAINER=             packages@netbsd.org
13 HOMEPAGE=               http://www.uk.research.att.com/vnc/
14
15 USE_PERL5=              yes
16
17 # Is this for real? The code was developed in the UK,
18 # but the DES parts came from the USA in the first place.
19 RESTRICTED=             Contains cryptographic software
20
21 WRKSRC=                 ${WRKDIR}/vnc_unixsrc
22
23 USE_IMAKE=              yes
24 NO_INSTALL_MANPAGES=    yes
25
26 ALL_TARGET=             World
27
28 # We have to frob a few things, and we want our own permissions, so it's easier
29 # to do the install ourselves.
30 post-install:
31         ${INSTALL_PROGRAM} ${WRKSRC}/Xvnc/programs/Xserver/Xvnc ${PREFIX}/bin/Xvnc
32         ${INSTALL_PROGRAM} ${WRKSRC}/vncviewer/vncviewer ${PREFIX}/bin/vncviewer
33         ${INSTALL_PROGRAM} ${WRKSRC}/vncpasswd/vncpasswd ${PREFIX}/bin/vncpasswd
34         ${SED} -e 's|/usr/local/vnc/classes|${X11BASE}/share/vnc/classes|g' \
35                 -e 's|/usr/bin/perl|${LOCALBASE}/bin/perl|g' \
36                 < ${WRKSRC}/vncserver \
37                 > ${WRKSRC}/vncserver.local
38         ${INSTALL_SCRIPT} ${WRKSRC}/vncserver.local ${PREFIX}/bin/vncserver
39         ${MKDIR} ${PREFIX}/share/doc/vnc
40         cd ${WRKDIR}/vnc_docs; \
41         ${INSTALL_DATA} *.GIF *.css *.gif *.jpg *.htm *.html *.pdf *.xml \
42           ${PREFIX}/share/doc/vnc
43
44 .include "../../mk/bsd.pkg.mk"