Portfile

# $Id: Portfile 20871 2006-12-06 14:48:25Z yeled@macports.org $

PortSystem 1.0
name isync
version 1.0.3
categories mail
maintainers yeled@macports.org
description Synchronize a maildir with an imap server
homepage http://isync.sourceforge.net/
platforms darwin

long_description isync is a command line utility for synchronizing a remote \
IMAP mailbox with a local maildir-style mailbox. This is useful for working in\
disconnected mode, such as on a laptop. Modifications made locally and\
remotely are synchronized so that no message status flags are lost.

master_sites sourceforge:isync

checksums ${distname}${extract.suffix} md5 \
b7331a3f4b541207e9ad70aa04f1a5ae

configure.env CPPFLAGS="-I${prefix}/include/db4" \
CFLAGS="-L${prefix}/lib" LDFLAGS="-ldb-4"

depends_lib port:db4

configure.args --mandir=${prefix}/share/man

pre-configure {
reinplace "s|ldb|ldb-4|g" ${worksrcpath}/src/compat/Makefile.in \
${worksrcpath}/src/compat/Makefile.am \
${worksrcpath}/src/Makefile.in \
${worksrcpath}/src/Makefile.am
}