# $Id: Portfile 30236 2007-10-22 23:15:10Z jmpp@macports.org $

PortSystem 1.0
name        isync
version     1.0.3
revision    1
categories  mail
maintainers nomaintainer
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.cppflags	"-I${prefix}/include/db44"
configure.ldflags	"-L${prefix}/lib/db44 -ldb-4"

depends_lib     port:db44 port:openssl port:zlib

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
}
