freebsd-ports/net/vnc/Makefile
Alexander Langer e9fa85a643 respect NOPORTDOCS.
PR:		19316
Submitted by:	maintainer
2000-06-27 14:03:18 +00:00

51 lines
1.6 KiB
Makefile

# New ports collection makefile for: vnc
# Date created: 24 February 1998
# Whom: msmith
#
# $FreeBSD$
#
PORTNAME= vnc
PORTVERSION= 3.3.3.1
CATEGORIES= net
MASTER_SITES= http://www.uk.research.att.com/vnc/dist/
DISTFILES= vnc-3.3.3r1_unixsrc.tgz \
vnc-latest_doc.tgz
EXTRACT_ONLY= vnc-3.3.3r1_unixsrc.tgz
MAINTAINER= bmah@acm.org
USE_PERL5= YES
IGNOREFILES= vnc-latest_doc.tgz
WRKSRC= ${WRKDIR}/vnc_unixsrc
USE_IMAKE= YES
NO_INSTALL_MANPAGES= YES
ALL_TARGET= World
# We have to frob a few things, and we want our own permissions, so it's easier
# to do the install ourselves.
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/Xvnc/programs/Xserver/Xvnc ${PREFIX}/bin/Xvnc
${INSTALL_PROGRAM} ${WRKSRC}/vncviewer/vncviewer ${PREFIX}/bin/vncviewer
${INSTALL_PROGRAM} ${WRKSRC}/vncpasswd/vncpasswd ${PREFIX}/bin/vncpasswd
${SED} -e s%/usr/local/vnc/classes%${PREFIX}/share/vnc/classes% \
-e s%^\#!/usr/bin/perl%\#!${PERL}% \
< ${WRKSRC}/vncserver \
> ${WRKSRC}/vncserver.local
${INSTALL_SCRIPT} ${WRKSRC}/vncserver.local ${PREFIX}/bin/vncserver
# Go install Java classes
${MKDIR} ${PREFIX}/share/vnc
${CP} -R ${WRKSRC}/classes ${PREFIX}/share/vnc
.if !defined(NOPORTDOCS)
# The documentation comes with bogus ownerships; this is a little leaky
# security-wise
${TAR} -C ${PREFIX}/share/doc -xzf ${DISTDIR}/vnc-latest_doc.tgz
(cd ${PREFIX}/share/doc; ${RM} -rf vnc; ${MV} vnc_docs vnc)
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/vnc
# Add to PLIST because VNC developers can't/won't freeze their doc
# distfile.
(cd ${PREFIX}; ls share/doc/vnc/* >> ${TMPPLIST})
${ECHO} '@dirrm share/doc/vnc' >> ${TMPPLIST}
.endif
.include <bsd.port.mk>