# $Id: Portfile 67280 2010-05-04 10:26:40Z ryandesign@macports.org $

PortSystem 1.0

name			libvmime
version			0.9.0
categories		mail devel
platforms		darwin
maintainers		nomaintainer
description		library for dealing with RFC-822, 2822, MIME messages
long_description	VMime is a C++ class library for parsing, generating, or \
				editing Internet RFC-822, 2822 and MIME messages. It is \
				designed to provide a fast and an easy way to manipulate \
				Internet mail messages.

homepage		http://www.vmime.org/
master_sites	sourceforge:vmime
use_bzip2		yes

checksums		md5     23feb9cff7ba3961c0693926e21448cf \
				sha1    02215e1d8ea758f486c32e7bff63a04f71a9b736 \
				rmd160  220c51f38587d503a9eaff58bc54d20af986b02f

patchfiles		patch-SConstruct.diff \
				patch-bootstrap.diff \
				patch-m4-acx_pthread.m4.diff

depends_build	port:autoconf \
				port:automake \
				port:libtool \
				port:pkgconfig \
				port:scons

depends_lib		port:gnutls \
				port:libgsasl

pre-configure {
	system "cd ${worksrcpath} && ${prefix}/bin/scons autotools"
}

# disable static library because it doesn't seem to get built very well
configure.args	--disable-static

post-destroot {
	file rename ${destroot}${prefix}/share/doc/vmime \
		${destroot}${prefix}/share/doc/${name}
}
