# $Id: Portfile,v 1.1 2005/10/03 17:51:00 toby Exp $

PortSystem 1.0
name             wordplay
version          7.22
categories       games
maintainers      toby@opendarwin.org
description      Simple program to generate anagrams
long_description \
	This is a program written in ANSI C that anagrams a given string. \
	It has its own word file, but allows you to use a different one.
homepage         http://hsvmovies.com/static_subpages/personal/wordplay/
platforms        darwin
master_sites     ${homepage}
distname         ${name}722
extract.suffix   .tar.Z
checksums        sha1 629b4a876b6be966be7ddde7ccdfaa89fc226942

pre-extract {
	file mkdir ${worksrcpath}
}
extract.dir      ${worksrcpath}

patchfiles       patch-wordplay.c

configure {}

build.target

destroot {
	xinstall -m 755 ${worksrcpath}/wordplay ${destroot}${prefix}/bin
	xinstall -d -m 755 ${destroot}${prefix}/share/wordplay
	xinstall -m 644 ${worksrcpath}/readme ${destroot}${prefix}/share/wordplay
	xinstall -m 644 ${worksrcpath}/words721.txt ${destroot}${prefix}/share/wordplay
}
