aboutsummaryrefslogtreecommitdiffstats
path: root/mail/msmtp/Makefile
blob: 952f6095fa1f2a7e671f92742d5c17fe33eebe38 (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
# Ports collection makefile for:  msmtp
# Date created:                   22 Aug 2003
# Whom:                           R.I.Pienaar <rip@devco.net>
#
# $FreeBSD$
#

PORTNAME=   msmtp
PORTVERSION=    1.2.2
CATEGORIES= mail ipv6
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= msmtp

MAINTAINER= bogorodskiy@inbox.ru
COMMENT=    SMTP plugin for MUAs

GNU_CONFIGURE=  yes
USE_GETOPT_LONG=yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1=       msmtp.1
PLIST_FILES=    bin/msmtp

.if !defined(WITH_OPENSSL)
WITH_GNUTLS=    yes
.endif

.if defined(WITH_GNUTLS)
LIB_DEPENDS+=   gnutls:${PORTSDIR}/security/gnutls
.endif

.if defined(WITH_OPENSSL)
USE_OPENSSL=    yes
CONFIGURE_ARGS+=    --with-ssl=openssl
.endif

.if defined(WITH_GNU_SASL)
LIB_DEPENDS+=   gsasl:${PORTSDIR}/security/gsasl
.else
CONFIGURE_ARGS+=    --disable-gsasl
.endif

.include <bsd.port.mk>