# $Id: Portfile,v 1.2 2005/07/04 04:37:50 pguyot Exp $

PortSystem 1.0

name		Freecell
version		1.3
categories	aqua games
platforms	darwin
maintainers	mww@opendarwin.org
description	classic solitaire game for OS-X
long_description	${description}

homepage	http://wasters.org/freecell/
master_sites	http://downloads.wasters.org/freecell/
distname	freecell-source
checksums	md5 ccf3d098161e76a47492a97dd862441d

worksrcdir	Freecell

use_configure	no

build.type	pbx
build.target	-buildstyle Deployment

set xcodebuilddir		build
platform darwin 8 {
	if {$xcodeversion == "2.1"} {
		set xcodebuilddir	build/Deployment
	}
}

destroot	{
	xinstall -m 755 -d ${destroot}/Applications/DarwinPorts
	file copy ${worksrcpath}/${xcodebuilddir}/${name}.app \
		${destroot}/Applications/DarwinPorts/
}
