# -*- 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
# $Id: Portfile 101398 2013-01-10 04:22:44Z ryandesign@macports.org $

PortSystem          1.0

name                libesmtp
version             1.0.6
categories          mail
platforms           darwin
maintainers         noses.com:noses
license             LGPL-2.1

description         ESMTP library

long_description    libESMTP is a library to manage posting (or submission of) \
                    electronic mail using SMTP to a preconfigured Mail Transport \
                    Agent (MTA) such as Exim. It may be used as part of a Mail \
                    User Agent (MUA) or another program that must be able to \
                    post electronic mail but where mail functionality is not \
                    that program’s primary purpose. libESMTP is not intended \
                    to be used as part of a program that implements a Mail \
                    Transport Agent. It is hoped that the availability of a \
                    lightweight library implementing an SMTP client will both \
                    ease the task of coding for software authors and improve the \
                    quality of the resulting code.

homepage            http://www.stafford.uklinux.net/libesmtp/
master_sites        ${homepage}
use_bzip2           yes

checksums           rmd160  7489ef298b56085f8788a3af4d17aed4ef0f1077 \
                    sha256  d0a61a5c52d99fa7ce7d00ed0a07e341dbda67101dbed1ab0cdae3f37db4eb0b

depends_lib         port:openssl

post-extract {
    # aclocal: error: couldn't open directory 'm4': No such file or directory
    file mkdir ${worksrcpath}/m4
}

patchfiles          patch-auth-client.c \
                    patch-errors.c \
                    patch-headers.c \
                    patch-htable.c \
                    patch-protocol.c \
                    patch-rfc2822date.c \
                    patch-smtp-auth.c \
                    patch-smtp-tls.c \
                    patch-configure.ac.diff

use_autoreconf      yes
