aboutsummaryrefslogtreecommitdiff
path: root/mail/libesmtp/Makefile
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2005-12-31 02:28:24 +0000
committerMarcus Alves Grando <mnag@FreeBSD.org>2005-12-31 02:28:24 +0000
commitb7a89029144454654ff69cc8536e549d20353d97 (patch)
tree23c8dbf4447dec66e29bb18f39c543f3d776ca40 /mail/libesmtp/Makefile
parent34f2af85b29c7995944abf4acb9a191f269efd3c (diff)
downloadports-b7a89029144454654ff69cc8536e549d20353d97.tar.gz
ports-b7a89029144454654ff69cc8536e549d20353d97.zip
Notes
Diffstat (limited to 'mail/libesmtp/Makefile')
-rw-r--r--mail/libesmtp/Makefile34
1 files changed, 26 insertions, 8 deletions
diff --git a/mail/libesmtp/Makefile b/mail/libesmtp/Makefile
index 39377f293285..1d4e2bf637e3 100644
--- a/mail/libesmtp/Makefile
+++ b/mail/libesmtp/Makefile
@@ -5,22 +5,20 @@
# $FreeBSD$
PORTNAME= libesmtp
-PORTVERSION= 1.0.3
+PORTVERSION= 1.0.4
PORTEPOCH= 1
CATEGORIES= mail
MASTER_SITES= http://www.stafford.uklinux.net/libesmtp/ \
http://www.tobez.org/download/port-mirrors/mail/libesmtp/ \
http://www.borgsdemons.com/distfiles/
-DISTNAME= ${PORTNAME}-${PORTVERSION}r1
+DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= mnag@FreeBSD.org
COMMENT= A library for posting electronic mail
USE_BZIP2= yes
USE_GMAKE= yes
-USE_OPENSSL= yes
-USE_AUTOTOOLS= libtool:15:inc
-USE_PERL5_BUILD=yes
+USE_AUTOTOOLS= libtool:15
INSTALLS_SHLIB= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
PTHREAD_LIBS="${PTHREAD_LIBS}" \
@@ -31,15 +29,35 @@ CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
# require-all-recipients (implied by enable-all) is required for Balsa
CONFIGURE_ARGS= --enable-all --disable-isoc
+OPTIONS= OPENSSL "Enable TLS support" on \
+ DEBUG "Enables debugging support" off
+
DOCS= AUTHORS ChangeLog NEWS Notes README TODO
EXAMPLES= examples/*
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_OPENSSL)
+.include "${PORTSDIR}/Mk/bsd.openssl.mk"
+CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
+PLIST_SUB+= NEED_OPENSSL=""
+.else
+CONFIGURE_ARGS+= --without-openssl
+PLIST_SUB+= NEED_OPENSSL="@comment "
+.endif
+
+.if defined(WITH_DEBUG)
+CONFIGURE_ARGS+= --enable-debug
+.endif
+
post-install:
@${MKDIR} ${EXAMPLESDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${EXAMPLES} ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
+.for f in ${DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>