2013-02-06 19:11:24 +01:00
|
|
|
# Created by: ijliao
|
2002-06-27 10:41:04 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libetpan
|
2011-08-08 16:05:31 +02:00
|
|
|
PORTVERSION= 1.1
|
2013-02-06 19:11:24 +01:00
|
|
|
PORTREVISION= 3
|
2009-01-12 13:50:32 +01:00
|
|
|
CATEGORIES= mail ipv6
|
|
|
|
MASTER_SITES= SF
|
2002-06-27 10:41:04 +02:00
|
|
|
|
2011-03-23 17:58:01 +01:00
|
|
|
MAINTAINER= pawel@FreeBSD.org
|
2013-02-06 19:11:24 +01:00
|
|
|
COMMENT= Mail framework for C language
|
2002-06-27 10:41:04 +02:00
|
|
|
|
2011-08-08 16:05:31 +02:00
|
|
|
LICENSE= BSD
|
|
|
|
|
2007-10-01 22:37:42 +02:00
|
|
|
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \
|
|
|
|
expat:${PORTSDIR}/textproc/expat2 \
|
2012-12-10 16:10:02 +01:00
|
|
|
sasl2:${PORTSDIR}/security/cyrus-sasl2
|
2007-10-01 22:37:42 +02:00
|
|
|
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool autoconf
|
2013-02-06 19:11:24 +01:00
|
|
|
AUTOTOOLSFILES= aclocal.m4
|
2007-08-22 13:41:03 +02:00
|
|
|
USE_GMAKE= yes
|
2013-02-06 19:11:24 +01:00
|
|
|
USE_ICONV= yes
|
|
|
|
USE_LDCONFIG= yes
|
2010-05-16 10:56:23 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2002-06-27 10:41:04 +02:00
|
|
|
|
2013-02-07 18:06:44 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -pthread
|
2003-10-07 16:58:30 +02:00
|
|
|
|
2012-06-08 00:44:21 +02:00
|
|
|
OPTIONS_DEFINE= IPV6
|
|
|
|
OPTIONS_SINGLE= CRYPTO
|
2013-02-06 19:11:24 +01:00
|
|
|
OPTIONS_SINGLE_CRYPTO= GNUTLS OPENSSL
|
|
|
|
OPTIONS_DEFAULT= OPENSSL
|
2009-01-12 13:50:32 +01:00
|
|
|
|
2012-06-08 00:44:21 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MGNUTLS}
|
2013-02-06 19:11:24 +01:00
|
|
|
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls \
|
|
|
|
gcrypt:${PORTSDIR}/security/libgcrypt
|
2007-10-01 22:37:42 +02:00
|
|
|
CONFIGURE_ARGS+= --without-openssl --with-gnutls
|
2012-06-08 00:44:21 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MOPENSSL}
|
2005-07-04 07:35:00 +02:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
CONFIGURE_ARGS+= --without-gnutls
|
|
|
|
.endif
|
|
|
|
|
2012-06-08 00:44:21 +02:00
|
|
|
.if ${PORT_OPTIONS:MIPV6}
|
2009-01-12 13:50:32 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
2012-06-08 00:44:21 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
2009-01-12 13:50:32 +01:00
|
|
|
.endif
|
|
|
|
|
2008-08-20 02:57:32 +02:00
|
|
|
post-patch:
|
2010-12-22 21:05:49 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|2.61|%%AUTOCONF_VERSION%%|g' ${WRKSRC}/aclocal.m4
|
2008-08-20 02:57:32 +02:00
|
|
|
|
2009-07-01 21:51:29 +02:00
|
|
|
.include <bsd.port.mk>
|