# $Id: Portfile 32259 2007-12-23 10:50:38Z ryandesign@macports.org $

PortSystem 1.0
name             wordplay
version          7.22
categories       games
maintainers      nomaintainer
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

use_configure    no

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
}
