# $Id: Portfile 33413 2008-01-26 12:56:28Z ryandesign@macports.org $

PortSystem 1.0

name			X-MasTree
version			1.4
categories		aqua amusements
platforms		darwin
maintainers		nomaintainer
homepage		http://www.jschilling.net/sw_xmastree.php
description		Christmas tree

long_description	A Christmas tree for your Mac.
			
			
master_sites		http://homepage.mac.com/johnnycat/sfw/

checksums \
	md5 701c711b0b14e8b14cf477e7e4bb64d1 \
	sha1 25af00c8b80220d50b49bf33f9003e24d2ea4103 \
	rmd160 a3ff3650c9cd8bb73bcd0b85ebcc5f866b5c2067

dist_subdir		${name}/${version}
distname		${name}Source
use_zip			yes

use_configure		no

build.type		pbx
build.args		-configuration Release
build.target		-project X-MasTree.xcodeproj -target X-MasTree

destroot {		set appPath ${destroot}/Applications/MacPorts
			file mkdir ${appPath}
			file copy "${worksrcpath}/build/Release/${name}.app" ${appPath}
			}

default_variants +universal
variant universal {}
pre-fetch {
	if {![variant_isset universal]} {
		return -code error "${name} is only available in a universal version"
	}
}
