freebsd-ports/mail/libetpan/Makefile

56 lines
1.1 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= libetpan
PORTVERSION= 1.1
PORTREVISION= 3
CATEGORIES= mail ipv6
MASTER_SITES= SF
MAINTAINER= pawel@FreeBSD.org
COMMENT= Mail framework for C language
LICENSE= BSD
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \
expat:${PORTSDIR}/textproc/expat2 \
sasl2:${PORTSDIR}/security/cyrus-sasl2
USE_AUTOTOOLS= libtool autoconf
AUTOTOOLSFILES= aclocal.m4
USE_GMAKE= yes
USE_ICONV= yes
USE_LDCONFIG= yes
MAKE_JOBS_SAFE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -pthread
OPTIONS_DEFINE= IPV6
OPTIONS_SINGLE= CRYPTO
OPTIONS_SINGLE_CRYPTO= GNUTLS OPENSSL
OPTIONS_DEFAULT= OPENSSL
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGNUTLS}
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls \
gcrypt:${PORTSDIR}/security/libgcrypt
CONFIGURE_ARGS+= --without-openssl --with-gnutls
.endif
.if ${PORT_OPTIONS:MOPENSSL}
USE_OPENSSL= yes
CONFIGURE_ARGS+= --without-gnutls
.endif
.if ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
post-patch:
@${REINPLACE_CMD} -e 's|2.61|%%AUTOCONF_VERSION%%|g' ${WRKSRC}/aclocal.m4
.include <bsd.port.mk>