# $Id: Portfile 65507 2010-03-26 22:15:14Z ryandesign@macports.org $

PortSystem              1.0

name                    libgsasl
version                 1.4.4
maintainers             ryandesign
categories              security net
platforms               darwin
homepage                http://josefsson.org/libgsasl/
master_sites            gnu:gsasl

description             GNU SASL: an authentication library.

long_description        GNU SASL is an implementation of the Simple \
                        Authentication and Security Layer framework and \
                        a few common SASL mechanisms. SASL is used by \
                        network servers (e.g., IMAP, SMTP) to request \
                        authentication from clients, and in clients to \
                        authenticate against servers.

checksums               md5     2ca9cd8c0158692b141cb14ba1045d7b \
                        sha1    d32d29a5c599b2d54f214fc5747559bc890f24de \
                        rmd160  0f569446635f57141c58222adff1b0f1c24d2237

depends_lib             port:libiconv \
                        port:gettext \
                        port:gss \
                        port:libidn

use_parallel_build      yes

livecheck.type          regex
livecheck.url           ftp://ftp.gnu.org/pub/gnu/gsasl/
livecheck.regex         "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"

variant gssapi_mit description {Use MIT GSS-API implementation} {
    depends_lib-delete port:gss
    configure.args-append --with-gssapi-impl=mit
}
