# $Id: Portfile,v 1.3 2005/05/09 18:40:10 jmpp Exp $

PortSystem 1.0
name		bmf
version		0.9.4
categories	mail
description 	Bayesian Mail Filter
long_description	bmf is a self contained and extremely efficient Bayesian mail filter. \
			See Paul Graham's article "A Plan for Spam" for background information. \
			It aims to be faster, smaller, and more versatile than similar \
			applications.
homepage	http://bmf.sourceforge.net/
platforms	darwin freebsd
maintainers	darwinports@opendarwin.org
master_sites	sourceforge
checksums	md5 9cf55df2fa3a05bdc55ba7b0a129591e
configure.pre_args	
post-configure	{	reinplace "s|@@PREFIX@@|${prefix}|g"  ${worksrcpath}/Makefile }

post-destroot	{	system "install -o root -m 755 -d ${destroot}${prefix}/share/${name}"
			system "install -o root -m 755 -c \
                     			${worksrcpath}/README ${destroot}${prefix}/share/${name}/" }

variant	mysql 	{	depends_lib-append	lib:libmysqlclient:mysql
			configure.args-append	--with-mysql	}	
