# $Id: Portfile,v 1.5 2005/09/16 07:10:53 yeled Exp $
PortSystem 1.0

name			osx2x
version			2.2.0
categories		aqua
maintainers		darwinports@opendarwin.org
description		small Aqua application to control X11 servers from Mac OS X
long_description	osx2x is a small Mac OS X application that lets you \
					control other machines running either an X11 server \
					or a VNC server using your mac's mouse and keyboard. \
					So if you happen to have a mac and either an X \
					Windows machine or a machine running VNC on your \
					desk you only need to use a single keyboard and \
					mouse!
platforms		darwin
homepage		http://www.opendarwin.org/projects/${name}/
fetch.type		cvs
cvs.root		:pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od
cvs.date		20050705
cvs.module		${name}
worksrcdir		${name}

depends_lib		lib:libX11.6:XFree86

use_configure	no

build.type		pbx
build.dir		${worksrcpath}/src
build.target

set appdir      src/build
platform darwin 8 {
    if {$xcodeversion == "2.1"} {
        set appdir  src/build/Default
    }
}
destroot {
	set appPath ${destroot}/Applications/DarwinPorts
	xinstall -d -m 0755 ${appPath}
	file copy ${worksrcpath}/${appdir}/${name}.app ${appPath}/${name}.app
}

