[60552] trunk/dports/x11/vnc

jmr at macports.org jmr at macports.org
Sun Nov 15 08:41:14 PST 2009


Revision: 60552
          http://trac.macports.org/changeset/60552
Author:   jmr at macports.org
Date:     2009-11-15 08:41:10 -0800 (Sun, 15 Nov 2009)
Log Message:
-----------
vnc: update to 4.1.3 (fixes #22528, #21008)

Modified Paths:
--------------
    trunk/dports/x11/vnc/Portfile

Removed Paths:
-------------
    trunk/dports/x11/vnc/files/

Modified: trunk/dports/x11/vnc/Portfile
===================================================================
--- trunk/dports/x11/vnc/Portfile	2009-11-15 15:54:14 UTC (rev 60551)
+++ trunk/dports/x11/vnc/Portfile	2009-11-15 16:41:10 UTC (rev 60552)
@@ -1,81 +1,43 @@
 # $Id$
+
 PortSystem 1.0
 
 name			vnc
-version			3.3.7
-revision		3
+version			4.1.3
 categories		x11 vnc
 maintainers		nomaintainer
+license         GPLv2
 description		Remote display system for X11 applications
 long_description	Creates a virtual X11 windowing environment that can \
 					be viewed not only on the machine where it is \
 					running, but from anywhere on the Internet and from \
 					a wide variety of machine architectures.
 homepage		http://www.realvnc.com/
-master_sites	${homepage}/dist/
-distname		${name}-${version}-unixsrc
-checksums		md5 511ffbc8ed8d9df82e7c67852164728c
+master_sites	freebsd:xc
+distname		${name}-[string map {. _} ${version}]-unixsrc
+checksums		md5 a119f3c75ad2767c0588260e2abe39be \
+				sha1 fd4ebf2bf8945b5a419ab69059a98fe3bc6698ef \
+				rmd160 9ef5a3b6f13d1227e5b9399c4d56884639cf9686
 platforms		darwin
 
 depends_lib		port:xorg-libXaw \
-				lib:libz.1:zlib
-depends_run		bin:perl:perl5
+				port:xorg-libXtst \
+				port:zlib
 
-set serverdir	Xvnc
-set javadir		classes
+worksrcdir      ${worksrcdir}/unix
 
-patchfiles		patch-Xvnc \
-				patch-configure \
-				patch-vncserver \
-				patch-vncviewer
-post-patch {
-	reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/vncserver
-	if {[catch {set perl [binaryInPath "perl"]}] == 0} {
-		reinplace "s|@PERL@|${perl}|g" ${worksrcpath}/vncserver
-	}
-}
-
-variant no_server {
-	depends_run-delete	bin:perl:perl5
-
-	patchfiles-append	patch-no_server
-}
-
-configure.cppflags-append	"-no-cpp-precomp"
 configure.args	--with-x --with-installed-zlib
 
-post-build {
-	system "cd '${worksrcpath}/${serverdir}' && make World"
-}
-
 destroot.cmd	./vncinstall
-destroot.target	${destroot}${prefix}/bin ${destroot}${prefix}/share/man 
-destroot.destdir
+destroot.target
+destroot.destdir ${destroot}${prefix}/bin ${destroot}${prefix}/share/man
+
 post-destroot {
-	xinstall -d -m 0755 ${destroot}${prefix}/share/vnc/classes
-	foreach f [glob ${worksrcpath}/${javadir}/*] {
-		xinstall -m 0644 $f ${destroot}${prefix}/share/vnc/classes
+	xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/classes
+	foreach f [glob -directory ${worksrcpath}/../common/javabin *] {
+		xinstall -m 0644 $f ${destroot}${prefix}/share/${name}/classes
 	}
+	# server binary requires building XFree86, so delete the wrapper script
+	delete ${destroot}${prefix}/bin/vncserver
+	delete ${destroot}${prefix}/share/man/man1/vncserver.1
 }
-
-variant beta {
-	version		4.0b4
-	distname	${name}-${version}-unixsrc
-	checksums	md5 0eed650932d0e9fb14ed87eb6c7d419e
-
-	set serverdir	xc
-	set javadir		java
-
-	# NOTE: Beta version requires XFree source to build the Xvnc server.
-	# Therefore the beta variant has been setup to not build the Xvnc
-	# server for now.
-	depends_run-delete	bin:perl:perl5
-
-	patchfiles-delete	patch-Xvnc \
-						patch-configure \
-						patch-vncserver \
-						patch-vncviewer
-	patchfiles-append	patch-vncserver-beta \
-						patch-no_server-beta
-}
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091115/4d5b44ff/attachment.html>


More information about the macports-changes mailing list