# $Id: Portfile,v 1.1 2005/12/17 09:49:57 mww Exp $

PortSystem 1.0

name			xtet42
version			2.21
categories		games x11
platforms		darwin
maintainers		mww@opendarwin.org
description		one or two player version of Tetris
long_description	Xtet42 is a one or two player version of Tetris. The game \
			was written by Hugo Eide Gunnarsen in 1991. The game is very fun \
			and very addictive. It is also astonishingly pretty to be an old \
			X11-game.

homepage		http://www.gufi.org/~gmarco/files/distfiles/
master_sites	http://www.gufi.org/~gmarco/files/distfiles/ \
				http://www.giovannelli.it/~gmarco/files/
checksums		md5 20683a78fb3a18c4493f313ee7ce3cd7
patchfiles		patch-Makefile.in patch-xtet42.c

post-extract { system "chmod 755 ${worksrcpath}" }

post-patch { reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/xtet42.c }

configure.args	--mandir=\\\${prefix}/share/man

destroot.destdir	prefix=${destroot}${prefix}

platform darwin 8 {
	configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}

