# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                mailsync
version             5.2.1
revision            7
categories          mail
license             GPL-2
maintainers         nomaintainer
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           rmd160  b6aeecee769f67978632bf582ba4df3711fcca69 \
                    sha256  8a4f35eedff0003a7e17a6b06b79ad824c8a3ab80cb8351e540948ee94001e6d

depends_lib         port:cclient \
                    port:kerberos5 \
                    path:lib/libssl.dylib:openssl

compiler.blacklist  {clang < 400}

worksrcdir          ${name}-${version}

configure.args      --with-c-client=${prefix} \
                    --with-krb5=${prefix} \
                    --with-openssl=${prefix} \
                    --mandir=${prefix}/share/man
configure.cppflags  "-I${prefix}/include/c-client"

platform darwin {
    patchfiles-append       patch-configure
    if {${os.major} <= 9} {
        patchfiles-append   patch-configure-oldpam
    }
}
