# $Id: Portfile 59973 2009-10-28 07:05:26Z pguyot@kallisys.net $
PortSystem		1.0
PortGroup xcode 1.0
name			cotvnc
version			2.0b4
categories		aqua vnc
maintainers		nomaintainer
description		Chicken of the VNC is a VNC client for Mac OS X
long_description	Chicken of the VNC is a Cocoa based VNC client for \
					Mac OS X. A VNC client allows one to display and \
					interact with a remote computer screen. In other \
					words, you can use Chicken of the VNC to interact \
					with a remote computer as though it's right next to \
					you.
homepage		http://sourceforge.net/projects/cotvnc/
master_sites	sourceforge:cotvnc
distname		${name}-[strsed ${version} {g/[.]//}]-source
extract.suffix	.tgz
checksums		md5 9383068b0a381857551404c86bd05dc1 \
				sha1 1a749854f314d62d1e54b9ae1ce5ac13bb20f1e8 \
				rmd160 dce9aafff048545e2612c6795c0ee118f3bc0da8
depends_lib		lib:libz.1:zlib

worksrcdir		${name}
xcode.destroot.settings	SKIP_INSTALL=NO

# Fix non-root destroot.
# (this is a workaround for bug rdar://5071108).
pre-destroot {
    fs-traverse dir ${worksrcpath}/build {
        if {[file isdirectory ${dir}]} {
            file attributes ${dir} -permissions u+w
        }
    }
}
post-destroot {
    fs-traverse dir ${destroot} {
        if {[file isdirectory ${dir}]} {
            file attributes ${dir} -permissions u+w
        }
    }
}

livecheck.type	sourceforge
livecheck.distname	cotvnc Chicken of the VNC
