# $Id: Portfile 47442 2009-02-28 08:10:02Z blb@macports.org $

PortSystem 1.0
name		wump
version		4.6.2-RELEASE
revision	1
categories	games
maintainers	nomaintainer
description	Text-based cave exploring and wumpus hunting game
platforms	darwin
use_bzip2	yes
master_sites	macports
checksums	md5 415c4b47458ac66f760b0a930a63c955
build.type	bsd
worksrcdir	${name}

configure	{ reinplace "s|MAN|MAN6|" ${worksrcpath}/Makefile
		  reinplace "s|/usr/share|${prefix}/share|" \
		    ${worksrcpath}/pathnames.h }

patchfiles	patch-wump.c

destroot	{
		xinstall -m 755 -d ${destroot}${prefix}/share/games
		xinstall -m 755 -c ${worksrcpath}/wump ${destroot}${prefix}/bin
		xinstall -m 644 -c ${worksrcpath}/wump.6.gz \
			${destroot}${prefix}/share/man/man6
		xinstall -m 644 -c ${worksrcpath}/wump.info \
			${destroot}${prefix}/share/games
}
