# $Id: Portfile,v 1.4 2006/08/08 07:07:53 yeled Exp $

PortSystem 1.0
name        isync
version     1.0.1
categories  mail
maintainers yeled@opendarwin.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 \
            3e238b87e4f39173121d60873f9d2b05    

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
}
