PortSystem 1.0

name			firemime
version			0.9.4
categories		textproc
license			GPL-2
platforms		darwin
maintainers		nomaintainer
description		callback-based interface for parsing MIME-encoded messages
long_description	FireMIME is a library providing an easy to use, \
				callback-based interface for parsing MIME-encoded messages. It \
				parses messages in accordance with RFC2045 and RFC2046, \
				attempting to follow all rules set out in those documents \
				while still allowing leniency with some common errors. \
				FireMIME uses libfirestring for string handling. This allows \
				it to be completely 8bit clean, including allowing \\0 \
				anywhere in messages.

homepage		http://www.firestuff.org/
master_sites	${homepage}projects/ freebsd
checksums		md5 5df7584e37dca2444ff8aa414fa9a24b
use_bzip2		yes

post-configure {
	reinplace "s|so.${version}|${version}.dylib|g" ${worksrcpath}/Makefile
	reinplace "s|so.0.9|0.9.dylib|g" ${worksrcpath}/Makefile
	reinplace "s|.so|.dylib|g" ${worksrcpath}/Makefile
	reinplace "s|-dynamiclib|-dynamiclib -install_name ${prefix}/lib/\$@|g" \
		${worksrcpath}/Makefile
}

build.args		PREFIX=${prefix}

destroot.destdir	PREFIX=${destroot}${prefix} \
				MANDIR=${destroot}${prefix}/share/man

worksrcdir		${name}
