# -*- 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
description University of Washington IMAP daemon
long_description IMAP (Internet Message Access Protocol) is a method \
of accessing electronic messages kept on a (possibly \
shared) mail server. This port provides the \
University of Washington IMAP toolkit (IMAP \
supporting software developed by the UW).
homepage http://www.washington.edu/imap/
master_sites ftp://ftp.cac.washington.edu/imap/ \
ftp://ftp.cac.washington.edu/imap/old/
checksums rmd160 14f40284e9e164c0ed7677f1e5d8e3309c7c58c1 \
sha256 870e95f6bd19265832a88fd89b77c54c841c59022fd21e69254050c8b1005e3c \
lib:libgssapi_krb5:kerberos5 \
path:lib/libssl.dylib:openssl
patchfiles patch-Makefile.diff
if {${os.platform} eq "darwin" && ${os.major} >= 10} {
patchfiles-append patch-snowleopard.diff
reinplace s|SSLINCLUDE=\/usr|SSLINCLUDE=${prefix}|g ${worksrcpath}/Makefile
reinplace s|SSLLIB=\/usr|SSLLIB=${prefix}|g ${worksrcpath}/Makefile
reinplace s|GSSINCLUDE=\/usr|GSSINCLUDE=${prefix}|g ${worksrcpath}/Makefile
reinplace s|GSSLIB=\/usr|GSSLIB=${prefix}|g ${worksrcpath}/Makefile
reinplace s|SSLCERTS=\/System\/Library\/OpenSSL|SSLCERTS=${prefix}/etc/openssl|g ${worksrcpath}/Makefile
reinplace s|SSLKEYS=\/System\/Library\/OpenSSL|SSLKEYS=${prefix}/etc/openssl|g ${worksrcpath}/Makefile
# Ensure we're UsingTheRightCompiler
build.args-append CC=${configure.cc}
# Force SSL connections: no unecrypted plaintext authenication
variant ssl_plain description {Allow unencrypted plaintext authentication} {
build.args-delete SSLTYPE=nopwd
build.args-append SSLTYPE=unix