2002-06-27 08:41:04 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: libEtPan!
|
|
|
|
# Date created: Jun 27, 2002
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libetpan
|
2006-04-08 19:35:28 +00:00
|
|
|
PORTVERSION= 0.45
|
2006-07-06 17:41:23 +00:00
|
|
|
PORTREVISION= 1
|
2002-06-27 08:41:04 +00:00
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= A mail library
|
2002-06-27 08:41:04 +00:00
|
|
|
|
2004-03-30 19:20:22 +00:00
|
|
|
USE_ICONV= yes
|
2006-01-30 19:03:14 +00:00
|
|
|
USE_AUTOTOOLS= libtool:15 autoconf:259
|
2005-04-12 03:26:56 +00:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2003-10-07 14:58:30 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2002-06-27 08:41:04 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
2005-02-25 14:37:12 +00:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
2003-10-07 14:58:30 +00:00
|
|
|
|
2005-07-04 05:35:00 +00:00
|
|
|
.if defined(WITH_GNUTLS)
|
2006-07-06 17:41:23 +00:00
|
|
|
LIB_DEPENDS+= gnutls.13:${PORTSDIR}/security/gnutls
|
2005-07-04 05:35:00 +00:00
|
|
|
CONFIGURE_ARGS+= --with-gnutls
|
|
|
|
.else
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
CONFIGURE_ARGS+= --without-gnutls
|
|
|
|
.endif
|
|
|
|
|
2005-07-21 19:14:05 +00:00
|
|
|
.if defined(WITH_SASL)
|
2005-07-28 07:57:37 +00:00
|
|
|
LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
|
2005-07-21 19:14:05 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-sasl
|
|
|
|
.endif
|
|
|
|
|
2006-03-24 01:29:22 +00:00
|
|
|
post-install:
|
|
|
|
@${FIND} ${PREFIX}/include/libetpan* ! -type d | ${SED} \
|
|
|
|
's,^${PREFIX}/,,' >> ${TMPPLIST}
|
|
|
|
@${FIND} ${PREFIX}/include/libetpan -type d | ${SORT} | ${SED} \
|
|
|
|
's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
|
|
|
|
2002-06-27 08:41:04 +00:00
|
|
|
.include <bsd.port.mk>
|