aboutsummaryrefslogtreecommitdiffstats
path: root/mail/msmtp/Makefile
blob: 63860f29cc9019d0d8c5f16252eac62b79b9d956 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Ports collection makefile for:  msmtp
# Date created:                   22 Aug 2003
# Whom:                           R.I.Pienaar <rip@devco.net>
#
# $FreeBSD$
#

PORTNAME=   msmtp
PORTVERSION=    1.4.24
PORTREVISION=   1
CATEGORIES= mail ipv6
MASTER_SITES=   SF

MAINTAINER= novel@FreeBSD.org
COMMENT=    SMTP plugin for MUAs

USE_BZIP2=  yes
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN1=   msmtp.1
INFO=   msmtp

LICENSE=    GPLv3

OPTIONS=    GNUTLS "Adds GnuTLS support" off \
        OPENSSL "Adds support for SSL (Secure Socket Layer)" on \
        GSASL "Adds GSASL support" off \
        NLS "Native Language Support via gettext utilities" on \
        IDN "Enable Internationalized Domain Names" on \

.include       <bsd.port.options.mk>

.if defined(WITH_GNUTLS)
LIB_DEPENDS+=   gnutls.47:${PORTSDIR}/security/gnutls
CONFIGURE_ARGS+=    --with-ssl=gnutls
.elif defined(WITH_OPENSSL)
USE_OPENSSL=    yes
CONFIGURE_ARGS+=    --with-ssl=openssl
CONFIGURE_ENV+=     libssl_CFLAGS="-I${OPENSSLINC}" libssl_LIBS="-L${OPENSSLLIB} -lssl"
.else
CONFIGURE_ARGS+=    --without-ssl
.endif

.if defined(WITH_GNUTLS) || defined(WITH_OPENSSL)
RUN_DEPENDS+=   ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
.endif

.if defined(WITH_GSASL)
LIB_DEPENDS+=   gsasl.15:${PORTSDIR}/security/gsasl
CONFIGURE_ARGS+=    --with-libgsasl
.else
CONFIGURE_ARGS+=    --without-libgsasl
.endif

.if !defined(WITHOUT_IDN)
LIB_DEPENDS+=   idn.17:${PORTSDIR}/dns/libidn
CONFIGURE_ARGS+=    --with-libidn
.else
CONFIGURE_ARGS+=    --without-libidn
.endif

.if !defined(WITHOUT_NLS)
USE_GETTEXT=        yes
CONFIGURE_ARGS+=    --enable-nls
PLIST_SUB=      NLS=""
.else
CONFIGURE_ARGS+=    --disable-nls
PLIST_SUB=      NLS="@comment "
.endif

.include <bsd.port.mk>