# $Id: Portfile,v 1.6 2006/07/24 04:44:57 pguyot Exp $

PortSystem 1.0
name		rdesktop
version		1.4.1
categories	net
maintainers	cshbell@gmail.com noses@noses.com
description	Windows Terminal Server Client
long_description	\
	rdesktop is an RDP clietn to access Microsoft Terminal Server \
	based services. \
	\
	The variant called w2k-license-hack is a backported patch from \
	an rdesktop 1.1 patchset which wasn't integrated into the latest \
	version -- it will announce the client as Windows 2000 machine \
	causing the Terminal Server to provide a license for free. \
	Please argue over this with your own conscience.
	
platforms	darwin freebsd

homepage	http://rdesktop.sourceforge.net/
master_sites	sourceforge

configure.args	--mandir=${prefix}/share/man
build.target	rdesktop

checksums   	md5 78dd2bae04edf1cb9f65c29930dcc993 \
				sha1 412ffa06dc216cc7ce1082a8a4912778f82425d9 \
				rmd160 c49a2425f1e00f5933d3873f6ea742b2ad4fea0c

#worksrcdir	rdesktop

variant		w2k-license-hack {
			patchfiles patch-licence.c
		}

variant		devel {
		        fetch.type       cvs
		        cvs.root         :pserver:anonymous@rdesktop.cvs.sourceforge.net:/cvsroot/rdesktop
		        cvs.module       rdesktop
		        cvs.tag          HEAD
		        version          HEAD
		        worksrcdir       ${cvs.module}
			post-patch {
			    cd ${worksrcpath}
			    system "autoconf"
			}
		}
