# $Id: Portfile,v 1.4 2005/09/23 22:05:17 mww Exp $

PortSystem 1.0

name			mailsync
version			5.2.1
revision		2
categories		mail
platforms		darwin
maintainers		mww@opendarwin.org
description		keeps collection of mailboxes in sync
long_description	Mailsync is a way of keeping a collection of mailboxes \
					synchronized. The mailboxes may be on the local filesystem \
					or on an IMAP server.

homepage		http://mailsync.sourceforge.net/
master_sites	sourceforge
distname		mailsync_${version}.orig
checksums		md5 67c9f68575756b76581cf9be74608aa5

depends_lib		port:cclient \
				port:openssl

worksrcdir		${name}-${version}

configure.args	--with-c-client=${prefix} \
				--with-openssl=${prefix} \
				--without-pam \
				--mandir=${prefix}/share/man
configure.env	CPPFLAGS=-I${prefix}/include/c-client \
				CFLAGS=-I${prefix}/include \
				LDFLAGS=-L${prefix}/lib
platform darwin 8 {
	configure.env-append	CXX=/usr/bin/g++-4.0 CC=/usr/bin/gcc-4.0
}

patchfiles		patch-configure
