# $Id: Portfile 34246 2008-02-19 07:20:09Z ryandesign@macports.org $

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	nomaintainer
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:mysql3
			configure.args-append	--with-mysql	}	
