aboutsummaryrefslogtreecommitdiff
path: root/mail/mutt14
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2006-11-05 08:38:28 +0000
committerMartin Wilke <miwi@FreeBSD.org>2006-11-05 08:38:28 +0000
commitd2d689b8b3b348b4eba2c2bbf95443305bd4624f (patch)
tree7fe7ddd3840caf1487a25d28744150f5b93f4df2 /mail/mutt14
parent165c422f771252c3d8a44b4a6fb0b94a130563d1 (diff)
downloadports-d2d689b8b3b348b4eba2c2bbf95443305bd4624f.tar.gz
ports-d2d689b8b3b348b4eba2c2bbf95443305bd4624f.zip
Notes
Diffstat (limited to 'mail/mutt14')
-rw-r--r--mail/mutt14/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/mail/mutt14/Makefile b/mail/mutt14/Makefile
index b1a8eed76a34..38b9a9dd166e 100644
--- a/mail/mutt14/Makefile
+++ b/mail/mutt14/Makefile
@@ -29,6 +29,7 @@ MAINTAINER?= udo.schweigert@siemens.com
COMMENT?= The Mongrel of Mail User Agents (part Elm, Pine, Mush, mh, etc.)
CONFLICTS= mutt-devel-*
+.include <bsd.port.pre.mk>
RUN_DEPENDS= ${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support
.if defined(PACKAGE_BUILDING) && !defined (MUTT_LITE)
@@ -122,8 +123,9 @@ CONFIGURE_ARGS+= --with-sasl=${LOCALBASE}
.if exists(${LOCALBASE}/bin/krb5-config)
LIB_DEPENDS+= gssapi_krb5:${PORTSDIR}/security/krb5
CONFIGURE_ARGS+= --with-gss=${LOCALBASE}
-.else
+.elif (defined(MAKE_KERBEROS5) && (${OSVERSION} > 500105)) || exists(/usr/lib/libkrb5.a)
CONFIGURE_ARGS+= --with-gss
+USE_KRB5_SYS=YES
.endif
.endif
MAN1= mutt.1 mutt_dotlock.1
@@ -147,7 +149,7 @@ post-patch::
pre-configure::
@(cd ${WRKSRC}; ${SETENV} ${AUTOMAKE_ENV} ${ACLOCAL} -I m4)
-.if !exists(${LOCALBASE}/bin/krb5-config)
+.if defined(USE_KRB5_SYS)
@${ECHO_CMD} "#define HAVE_HEIMDAL" >> ${WRKSRC}/config.h.in
@${REINPLACE_CMD} -e 's|<gssapi/gssapi\.h>|<gssapi.h>|' \
${WRKSRC}/imap/auth_gss.c
@@ -209,4 +211,4 @@ post-install:
@${ECHO} ""
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>