aboutsummaryrefslogtreecommitdiffstats
path: root/net/vnc/Makefile
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-05-26 21:08:37 +0800
committerpav <pav@FreeBSD.org>2005-05-26 21:08:37 +0800
commita0d74ea63433a8b03a785e6dda000932e1f67e06 (patch)
tree55bad3420500f2136d0b79b3ffc202efef597a1b /net/vnc/Makefile
parent1e8409a83d31fef4d6e283652de7c5ac8fc3d67d (diff)
downloadfreebsd-ports-gnome-a0d74ea63433a8b03a785e6dda000932e1f67e06.tar.gz
freebsd-ports-gnome-a0d74ea63433a8b03a785e6dda000932e1f67e06.tar.zst
freebsd-ports-gnome-a0d74ea63433a8b03a785e6dda000932e1f67e06.zip
- Update to 4.1.1
PR: ports/81394 Submitted by: James Raftery <james@now.ie> (maintainer)
Diffstat (limited to 'net/vnc/Makefile')
-rw-r--r--net/vnc/Makefile135
1 files changed, 90 insertions, 45 deletions
diff --git a/net/vnc/Makefile b/net/vnc/Makefile
index f5845ed1f25e..3d24d094dffb 100644
--- a/net/vnc/Makefile
+++ b/net/vnc/Makefile
@@ -6,100 +6,145 @@
#
PORTNAME= vnc
-PORTVERSION= 3.3.7
-PORTREVISION= 1
+PORTVERSION= 4.1.1
CATEGORIES= net ipv6
-MASTER_SITES= http://www.realvnc.com/dist/
-DISTNAME= ${PORTNAME}-${PORTVERSION}-unixsrc
+# This is a placeholder MASTER_SITES entry -- see the pre-fetch target.
+MASTER_SITES= http://www.realvnc.com/:vnc
+.if !defined(WITHOUT_SERVER)
+MASTER_SITES+= ${MASTER_SITE_XFREE:S/$/:x/}
+MASTER_SITE_SUBDIR+= 4.3.0/:x
+.endif
+DISTNAME= vnc-4_1_1-unixsrc
+DISTFILES= vnc-4_1_1-unixsrc.tar.gz:vnc
+.if !defined(WITHOUT_SERVER)
+DISTFILES+= X430src-1.tgz:x \
+ X430src-2.tgz:x \
+ X430src-3.tgz:x
+DIST_SUBDIR= xc
+.endif
MAINTAINER= james@now.ie
COMMENT= Display X and Win32 desktops on remote X/Win32/Java displays
+.if !defined(WITHOUT_SERVER)
+RUN_DEPENDS= xauth:${X_CLIENTS_PORT} \
+ ${X11BASE}/lib/X11/fonts/misc/6x13-ISO8859-1.pcf.gz:${X_FONTS_MISC_PORT}
+
+USE_PERL5_RUN= yes
+
+EXTRA_PATCHES= ${WRKSRC}/xc.patch \
+ ${PATCHDIR}/vnc.def-patch \
+ ${PATCHDIR}/FreeBSD.cf-patch
+.endif
+
GNU_CONFIGURE= yes
-# vnc supplied zlib seg. faults if compiled with -O
+# The vnc supplied zlib seg. faults if compiled with -O
CONFIGURE_ARGS= --with-installed-zlib
+USE_GCC= 3.4
USE_REINPLACE= yes
USE_XLIB= yes
USE_XPM= yes
+WRKSRC= ${WRKDIR}/${DISTNAME}/unix
PLIST= ${WRKDIR}/pkg-plist
+CONFLICTS= vnc-[0-9]* tightvnc-[0-9]*
MAN1= vncviewer.1 \
vncpasswd.1 \
- vncconnect.1
+ vncconfig.1 \
+ x0vncserver.1
.if !defined(WITHOUT_SERVER)
MAN1+= Xvnc.1 \
vncserver.1
-
-RUN_DEPENDS= xauth:${X_CLIENTS_PORT} \
- ${X11BASE}/lib/X11/fonts/misc/6x13-ISO8859-1.pcf.gz:${X_FONTS_MISC_PORT}
-
-USE_PERL5_RUN= yes
.endif
.include <bsd.port.pre.mk>
-pre-build:
+# No direct URL for VNC -- have to pseudo-submit their webform.
+pre-fetch:
+ @${MKDIR} ${DISTDIR}/${DIST_SUBDIR} && cd ${DISTDIR}/${DIST_SUBDIR} && \
+ ${FETCH_CMD} -o ${DISTNAME}.tar.gz 'http://www.realvnc.com/cgi-bin/download.cgi?product=free4/src/unix&acceptLicense=1&filever=4.1.1&filetype=tar_gz&haveDetails=1'
.if !defined(WITHOUT_SERVER)
- @${ECHO_MSG} "NOTE:"
- @${ECHO_MSG} " Use 'make -DWITHOUT_SERVER ...' if you do not wish to"
- @${ECHO_MSG} " compile/install the VNC server components."
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} " ######################################################"
+ @${ECHO_MSG} " # Use 'make -DWITHOUT_SERVER ...' if you do not wish #"
+ @${ECHO_MSG} " # to compile/install the VNC server components. #"
+ @${ECHO_MSG} " ######################################################"
@${ECHO_MSG} ""
.endif
+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
+
post-build:
.if defined(WITHOUT_SERVER)
@${ECHO_MSG} "Skipping build of VNC server."
.else
- @cd ${WRKSRC}/Xvnc && make World
+ cd ${WRKSRC}/xc && make CC=${CC} CXX=${CXX} World
.endif
-post-patch:
- @${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g' \
- ${WRKSRC}/Xvnc/config/cf/vnc.def
-
pre-install:
@${RM} -f ${PLIST}
@${TOUCH} -f ${PLIST}
+ @${ECHO_CMD} bin/vncviewer >> ${PLIST}
+ @${ECHO_CMD} bin/vncpasswd >> ${PLIST}
+ @${ECHO_CMD} bin/vncconfig >> ${PLIST}
+ @${ECHO_CMD} bin/x0vncserver >> ${PLIST}
.if !defined(WITHOUT_SERVER)
@${ECHO_CMD} bin/Xvnc >> ${PLIST}
@${ECHO_CMD} bin/vncserver >> ${PLIST}
- @${ECHO_CMD} share/vnc/classes/DesCipher.class >> ${PLIST}
- @${ECHO_CMD} share/vnc/classes/animatedMemoryImageSource.class >> ${PLIST}
- @${ECHO_CMD} share/vnc/classes/authenticationPanel.class >> ${PLIST}
- @${ECHO_CMD} share/vnc/classes/clipboardFrame.class >> ${PLIST}
@${ECHO_CMD} share/vnc/classes/index.vnc >> ${PLIST}
- @${ECHO_CMD} share/vnc/classes/optionsFrame.class >> ${PLIST}
- @${ECHO_CMD} share/vnc/classes/rfbProto.class >> ${PLIST}
- @${ECHO_CMD} share/vnc/classes/shared.vnc >> ${PLIST}
- @${ECHO_CMD} share/vnc/classes/vncCanvas.class >> ${PLIST}
- @${ECHO_CMD} share/vnc/classes/vncviewer.class >> ${PLIST}
+ @${ECHO_CMD} share/vnc/classes/logo150x150.gif >> ${PLIST}
@${ECHO_CMD} share/vnc/classes/vncviewer.jar >> ${PLIST}
@${ECHO_CMD} @dirrm share/vnc/classes >> ${PLIST}
@${ECHO_CMD} @dirrm share/vnc >> ${PLIST}
+ @if [ -f ${WRKSRC}/xc/programs/Xserver/vnc/module/vnc.so ]; then \
+ ${ECHO_CMD} @cwd ${X11BASE} >> ${PLIST} ; \
+ ${ECHO_CMD} lib/modules/extensions/vnc.so >> ${PLIST} ; \
+ fi
.endif
- @${ECHO_CMD} bin/vncviewer >> ${PLIST}
- @${ECHO_CMD} bin/vncpasswd >> ${PLIST}
- @${ECHO_CMD} bin/vncconnect >> ${PLIST}
do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/vncviewer/vncviewer ${PREFIX}/bin/vncviewer
+ ${INSTALL_PROGRAM} ${WRKSRC}/vncpasswd/vncpasswd ${PREFIX}/bin/vncpasswd
+ ${INSTALL_PROGRAM} ${WRKSRC}/vncconfig/vncconfig ${PREFIX}/bin/vncconfig
+ ${INSTALL_PROGRAM} ${WRKSRC}/x0vncserver/x0vncserver \
+ ${PREFIX}/bin/x0vncserver
+ ${INSTALL_MAN} ${WRKSRC}/vncviewer/vncviewer.man \
+ ${PREFIX}/man/man1/vncviewer.1
+ ${INSTALL_MAN} ${WRKSRC}/vncpasswd/vncpasswd.man \
+ ${PREFIX}/man/man1/vncpasswd.1
+ ${INSTALL_MAN} ${WRKSRC}/vncconfig/vncconfig.man \
+ ${PREFIX}/man/man1/vncconfig.1
+ ${INSTALL_MAN} ${WRKSRC}/x0vncserver/x0vncserver.man \
+ ${PREFIX}/man/man1/x0vncserver.1
.if !defined(WITHOUT_SERVER)
- ${REINPLACE_CMD} -e 's|/usr/local/vnc/classes|${PREFIX}/share/vnc/classes|g' \
- -e 's|^\#!/usr/bin/perl|\#!${PERL}|g' ${WRKSRC}/vncserver
- ${INSTALL_PROGRAM} ${WRKSRC}/Xvnc/programs/Xserver/Xvnc ${PREFIX}/bin/Xvnc
+ @${REINPLACE_CMD} -e \
+ 's|/usr/local/vnc/classes|${PREFIX}/share/vnc/classes|g' \
+ ${WRKSRC}/vncserver
+ ${INSTALL_PROGRAM} ${WRKSRC}/xc/programs/Xserver/Xvnc ${PREFIX}/bin/Xvnc
${INSTALL_SCRIPT} ${WRKSRC}/vncserver ${PREFIX}/bin/vncserver
- ${INSTALL_MAN} ${WRKSRC}/Xvnc/programs/Xserver/Xvnc.man ${PREFIX}/man/man1/Xvnc.1
+ @if [ -f ${WRKSRC}/xc/programs/Xserver/vnc/module/vnc.so ]; then \
+ ${MKDIR} ${X11BASE}/lib/modules/extensions; \
+ ${INSTALL_DATA} ${WRKSRC}/xc/programs/Xserver/vnc/module/vnc.so ${X11BASE}/lib/modules/extensions; \
+ fi
+ ${INSTALL_MAN} ${WRKSRC}/xc/programs/Xserver/Xvnc.man \
+ ${PREFIX}/man/man1/Xvnc.1
${INSTALL_MAN} ${WRKSRC}/vncserver.man ${PREFIX}/man/man1/vncserver.1
-# Go install Java classes
- ${MKDIR} ${PREFIX}/share/vnc
- ${CP} -R ${WRKSRC}/classes ${PREFIX}/share/vnc
+ ${MKDIR} ${PREFIX}/share/vnc/classes
+ ${CP} ${WRKDIR}/${DISTNAME}/common/javabin/* ${PREFIX}/share/vnc/classes
.endif
- ${INSTALL_PROGRAM} ${WRKSRC}/vncviewer/vncviewer ${PREFIX}/bin/vncviewer
- ${INSTALL_PROGRAM} ${WRKSRC}/vncpasswd/vncpasswd ${PREFIX}/bin/vncpasswd
- ${INSTALL_PROGRAM} ${WRKSRC}/vncconnect/vncconnect ${PREFIX}/bin/vncconnect
- ${INSTALL_MAN} ${WRKSRC}/vncviewer/vncviewer.man ${PREFIX}/man/man1/vncviewer.1
- ${INSTALL_MAN} ${WRKSRC}/vncpasswd/vncpasswd.man ${PREFIX}/man/man1/vncpasswd.1
- ${INSTALL_MAN} ${WRKSRC}/vncconnect/vncconnect.man ${PREFIX}/man/man1/vncconnect.1
.include <bsd.port.post.mk>