# $Id: Portfile,v 1.3 2006/01/11 22:59:40 mww Exp $

PortSystem 1.0

name			xgalaga
version			2.0.34
categories		games x11
platforms		darwin
maintainers		mww@opendarwin.org
description		xgalaga is a rework of the Galaga shooting game.
long_description	${description}

homepage		http://sourceforge.net/projects/xgalaga/
master_sites		sourceforge
distname		${name}_${version}.orig
checksums		md5 9f7ee685e9c4741b5f0edc3f91df9510

worksrcdir		${name}-${version}

patchfiles		patch-Makefile.in

configure.pre_args	--prefix=${prefix}/share/${name} \
			--exec-prefix=\\\${prefix}/../../bin

destroot.destdir	prefix=${destroot}${prefix}/share/${name}

platform darwin powerpc {
	configure.args	--host=powerpc-apple-darwin
}

platform darwin x86 {
	configure.args	--host=i686-apple-darwin
}

platform darwin 8 {
	configure.env CC=/usr/bin/gcc-3.3 CPP=/usr/bin/cpp-3.3
}

