PortSystem 1.0

name			xtet42
version			2.21
categories		games x11
license			GPL-2+
platforms		darwin
maintainers		nomaintainer
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

depends_lib		port:xorg-libX11

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}
