openbsd-ports/net/tightvnc/Makefile
2010-11-19 22:31:32 +00:00

69 lines
1.8 KiB
Makefile

# $OpenBSD: Makefile,v 1.31 2010/11/19 22:31:39 espie Exp $
COMMENT-main= cross-platform remote desktop access
COMMENT-viewer= client for cross-platform remote desktop access
VERSION= 1.3.10
PKGNAME-main= tightvnc-${VERSION}
PKGNAME-viewer= tightvnc-viewer-${VERSION}
REVISION-main= 0
REVISION-viewer=1
DISTNAME= tightvnc-${VERSION}_unixsrc
CATEGORIES= net
HOMEPAGE= http://www.tightvnc.org/
MAINTAINER= Rob Casey <rob@minauros.com>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=vnc-tight/}
WRKDIST= ${WRKDIR}/vnc_unixsrc
MULTI_PACKAGES= -main -viewer
CONFIGURE_STYLE=imake
ALL_TARGET= World
USE_GROFF = Yes
NO_REGRESS= Yes
WANTLIB= X11 Xau Xdmcp Xext c z
WANTLIB-viewer= ${WANTLIB} ICE SM Xaw Xmu Xpm Xt jpeg>=62
LIB_DEPENDS-viewer= graphics/jpeg
WANTLIB-main= ${WANTLIB} m
MAKE_FLAGS= CC=${CC} \
CCOPTIONS="${CFLAGS}"
DOCUMENTATION= vncserver.man vncpasswd/vncpasswd.man vncconnect/vncconnect.man \
Xvnc/programs/Xserver/Xvnc.man vncviewer/vncviewer.man
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
${INSTALL_PROGRAM} ${WRKSRC}/vncconnect/vncconnect ${PREFIX}/bin/vncconnect
sed -e s%/usr/local/vnc/classes%${TRUEPREFIX}/share/vnc/classes% \
< ${WRKSRC}/vncserver \
> ${WRKSRC}/vncserver.local
${INSTALL_SCRIPT} ${WRKSRC}/vncserver.local ${PREFIX}/bin/vncserver
${INSTALL_DATA_DIR} ${PREFIX}/share/vnc
${INSTALL_DATA_DIR} ${PREFIX}/share/vnc/classes
${INSTALL_DATA} ${WRKSRC}/classes/* ${PREFIX}/share/vnc/classes
.for i in ${DOCUMENTATION}
${INSTALL_MAN} ${WRKSRC}/$i ${PREFIX}/man/man1/${i:T:R}.1
.endfor
.include <bsd.port.mk>