1998-02-26 03:56:00 +01:00
|
|
|
# New ports collection makefile for: vnc
|
|
|
|
# Date created: 24 February 1998
|
|
|
|
# Whom: msmith
|
|
|
|
#
|
1999-08-30 16:24:37 +02:00
|
|
|
# $FreeBSD$
|
1998-02-26 03:56:00 +01:00
|
|
|
#
|
|
|
|
|
2001-01-16 18:33:20 +01:00
|
|
|
PORTNAME= vnc
|
2006-05-18 18:06:35 +02:00
|
|
|
PORTVERSION= 4.1.2
|
2007-06-13 00:33:22 +02:00
|
|
|
PORTREVISION= 2
|
2001-05-16 16:29:58 +02:00
|
|
|
CATEGORIES= net ipv6
|
2005-05-26 15:08:37 +02:00
|
|
|
MASTER_SITES= http://www.realvnc.com/:vnc
|
2006-05-18 18:06:35 +02:00
|
|
|
DISTNAME= vnc-4_1_2-unixsrc
|
2006-03-27 22:53:00 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:vnc
|
2005-05-26 18:16:17 +02:00
|
|
|
DIST_SUBDIR= xc
|
1998-02-26 03:56:00 +01:00
|
|
|
|
2003-01-11 04:09:21 +01:00
|
|
|
MAINTAINER= james@now.ie
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= Display X and Win32 desktops on remote X/Win32/Java displays
|
2001-05-16 16:29:58 +02:00
|
|
|
|
2002-11-24 22:47:12 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-05-26 15:08:37 +02:00
|
|
|
# The vnc supplied zlib seg. faults if compiled with -O
|
2003-02-02 05:28:39 +01:00
|
|
|
CONFIGURE_ARGS= --with-installed-zlib
|
2005-05-26 15:08:37 +02:00
|
|
|
USE_GCC= 3.4
|
2002-11-25 19:44:44 +01:00
|
|
|
USE_XLIB= yes
|
2003-01-08 11:28:32 +01:00
|
|
|
USE_XPM= yes
|
2007-10-07 07:45:04 +02:00
|
|
|
WANT_PERL= yes
|
2003-01-08 11:28:32 +01:00
|
|
|
|
2005-05-26 15:08:37 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/unix
|
2003-01-08 11:28:32 +01:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
2007-06-13 00:33:22 +02:00
|
|
|
CONFLICTS= tightvnc-[0-9]* tridiavnc-[0-9]*
|
2006-03-27 22:53:00 +02:00
|
|
|
|
|
|
|
OPTIONS= SERVER "Install VNC server components" on
|
1998-02-26 03:56:00 +01:00
|
|
|
|
2003-01-08 11:28:32 +01:00
|
|
|
MAN1= vncviewer.1 \
|
2002-11-24 22:47:12 +01:00
|
|
|
vncpasswd.1 \
|
2005-05-26 15:08:37 +02:00
|
|
|
vncconfig.1 \
|
|
|
|
x0vncserver.1
|
2003-01-08 11:28:32 +01:00
|
|
|
|
2006-03-27 22:53:00 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-01-08 11:28:32 +01:00
|
|
|
.if !defined(WITHOUT_SERVER)
|
2006-03-27 22:53:00 +02:00
|
|
|
# This is a placeholder MASTER_SITES entry -- see the pre-fetch target.
|
|
|
|
MASTER_SITES+= ${MASTER_SITE_XFREE:S/$/:x/}
|
|
|
|
MASTER_SITE_SUBDIR+= 4.3.0/:x
|
|
|
|
DISTFILES+= X430src-1.tgz:x \
|
|
|
|
X430src-2.tgz:x \
|
|
|
|
X430src-3.tgz:x
|
|
|
|
|
|
|
|
RUN_DEPENDS+= xauth:${X_CLIENTS_PORT} \
|
|
|
|
${X11BASE}/lib/X11/fonts/misc/6x13-ISO8859-1.pcf.gz:${X_FONTS_MISC_PORT}
|
|
|
|
|
|
|
|
USE_PERL5= yes
|
|
|
|
|
|
|
|
EXTRA_PATCHES+= ${WRKSRC}/xc.patch \
|
|
|
|
${PATCHDIR}/vnc.def-patch \
|
2006-05-19 00:59:35 +02:00
|
|
|
${PATCHDIR}/FreeBSD.cf-patch \
|
|
|
|
${PATCHDIR}/extra-patch-fix_Xvnc_no_valid_address
|
2006-03-27 22:53:00 +02:00
|
|
|
|
2003-01-08 11:28:32 +01:00
|
|
|
MAN1+= Xvnc.1 \
|
2002-11-24 22:47:12 +01:00
|
|
|
vncserver.1
|
2003-01-08 11:28:32 +01:00
|
|
|
|
2006-03-27 22:53:00 +02:00
|
|
|
PLIST_SUB+= SERVER=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SERVER="@comment "
|
|
|
|
.endif
|
2004-03-13 11:04:53 +01:00
|
|
|
|
2005-05-26 15:08:37 +02:00
|
|
|
# No direct URL for VNC -- have to pseudo-submit their webform.
|
|
|
|
pre-fetch:
|
|
|
|
@${MKDIR} ${DISTDIR}/${DIST_SUBDIR} && cd ${DISTDIR}/${DIST_SUBDIR} && \
|
2006-05-18 18:06:35 +02:00
|
|
|
${FETCH_CMD} -o ${DISTNAME}.tar.gz 'http://www.realvnc.com/cgi-bin/download.cgi?product=free4/src/unix&acceptLicense=1&haveDetails=1&filetype=tar_gz'
|
2003-07-04 17:01:16 +02:00
|
|
|
|
2005-05-26 15:08:37 +02:00
|
|
|
post-extract:
|
|
|
|
.if !defined(WITHOUT_SERVER)
|
|
|
|
@cd ${WRKSRC} && ${TAR} -cf - -C ${WRKDIR} xc | ${TAR} -xf - && \
|
|
|
|
${RM} -rf ${WRKDIR}/xc
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
.if !defined(WITHOUT_SERVER)
|
|
|
|
@${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g' \
|
|
|
|
${WRKSRC}/xc/config/cf/vnc.def
|
|
|
|
@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g' -e 's|%%CXX%%|${CXX}|g' \
|
|
|
|
${WRKSRC}/xc/config/cf/FreeBSD.cf
|
|
|
|
.endif
|
|
|
|
|
2002-11-24 22:47:12 +01:00
|
|
|
post-build:
|
2003-01-08 11:28:32 +01:00
|
|
|
.if defined(WITHOUT_SERVER)
|
|
|
|
@${ECHO_MSG} "Skipping build of VNC server."
|
|
|
|
.else
|
2005-05-26 15:08:37 +02:00
|
|
|
cd ${WRKSRC}/xc && make CC=${CC} CXX=${CXX} World
|
2003-01-08 11:28:32 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-install:
|
2006-03-27 22:53:00 +02:00
|
|
|
@${CP} ${PKGDIR}/pkg-plist ${PLIST}
|
2003-01-08 11:28:32 +01:00
|
|
|
.if !defined(WITHOUT_SERVER)
|
2005-05-26 15:08:37 +02:00
|
|
|
@if [ -f ${WRKSRC}/xc/programs/Xserver/vnc/module/vnc.so ]; then \
|
2006-03-27 22:53:00 +02:00
|
|
|
${ECHO_CMD} @cwd ${X11BASE} ; \
|
|
|
|
${ECHO_CMD} lib/modules/extensions/vnc.so ; \
|
|
|
|
${ECHO_CMD} "@dirrmtry lib/modules/extensions" ; \
|
|
|
|
${ECHO_CMD} "@dirrmtry lib/modules" ; \
|
|
|
|
${ECHO_CMD} "@dirrmtry lib" ; \
|
|
|
|
fi >> ${PLIST}
|
2003-01-08 11:28:32 +01:00
|
|
|
.endif
|
2002-11-24 22:47:12 +01:00
|
|
|
|
|
|
|
do-install:
|
2006-03-27 22:53:00 +02:00
|
|
|
.for f in vncviewer vncpasswd vncconfig x0vncserver
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${f}/${f} ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${f}/${f}.man ${PREFIX}/man/man1/${f}.1
|
|
|
|
.endfor
|
2003-01-08 11:28:32 +01:00
|
|
|
.if !defined(WITHOUT_SERVER)
|
2005-05-26 15:08:37 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
2006-03-27 22:53:00 +02:00
|
|
|
's|/usr/local/vnc/classes|${DATADIR}/classes|g' \
|
2005-05-26 15:08:37 +02:00
|
|
|
${WRKSRC}/vncserver
|
2006-03-27 22:53:00 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xc/programs/Xserver/Xvnc ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/vncserver ${PREFIX}/bin
|
2005-05-26 15:08:37 +02:00
|
|
|
@if [ -f ${WRKSRC}/xc/programs/Xserver/vnc/module/vnc.so ]; then \
|
2006-03-27 22:53:00 +02:00
|
|
|
${MKDIR} ${X11BASE}/lib/modules/extensions ; \
|
|
|
|
${INSTALL_PROGRAM} \
|
|
|
|
${WRKSRC}/xc/programs/Xserver/vnc/module/vnc.so \
|
|
|
|
${X11BASE}/lib/modules/extensions ; \
|
2005-05-26 15:08:37 +02:00
|
|
|
fi
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/xc/programs/Xserver/Xvnc.man \
|
|
|
|
${PREFIX}/man/man1/Xvnc.1
|
2002-11-24 22:47:12 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/vncserver.man ${PREFIX}/man/man1/vncserver.1
|
2006-03-27 22:53:00 +02:00
|
|
|
${MKDIR} ${DATADIR}/classes
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../common/javabin/* ${DATADIR}/classes
|
2003-01-08 11:28:32 +01:00
|
|
|
.endif
|
2002-11-24 22:47:12 +01:00
|
|
|
|
2004-03-13 11:04:53 +01:00
|
|
|
.include <bsd.port.post.mk>
|