# $Id: Portfile,v 1.13 2004/05/18 01:30:30 mww Exp $

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

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
}
