# $Id: Portfile,v 1.17 2005/10/03 13:45:23 yeled Exp $

PortSystem 1.0
name			ispell
version			3.3.02
categories		textproc spelling
platforms		darwin freebsd
maintainers		yeled@opendarwin.org
description		An interactive spelling checker for multiple languages
master_sites		http://fmg-www.cs.ucla.edu/geoff/tars/
checksums		md5 12087d7555fc2b746425cd167af480fe
build.env		TMPDIR=${workpath}

configure {
			cd ${workpath}/${worksrcdir}
			xinstall -c -m 0744 local.h.macos local.h
			reinplace s|/usr/local|${prefix}|g local.h
			reinplace s|/man/|/share/man/|g local.h
}
pre-destroot {
			xinstall -d ${destroot}${prefix}/bin
                        xinstall -d ${destroot}${prefix}/lib
                        xinstall -d ${destroot}${prefix}/share/man
                        cd ${workpath}/${worksrcdir}
                        reinplace "s|${prefix}|${destroot}${prefix}|g" config.sh}
destroot.destdir	{}
