Index: Makefile =================================================================== RCS file: /home/pcvs/ports/mail/mutt/Makefile,v retrieving revision 1.172 diff -u -r1.172 Makefile --- Makefile 18 Jul 2006 14:44:03 -0000 1.172 +++ Makefile 3 Oct 2006 03:14:58 -0000 @@ -118,6 +118,13 @@ .if defined(WITH_MUTT_CYRUS_SASL) CONFIGURE_ARGS+= --with-sasl=${LOCALBASE} .endif +.if !defined(WITHOUT_GSSAPI) +.if exists(${LOCALBASE}/bin/krb5-config) +CONFIGURE_ARGS+= --with-gss=${LOCALBASE} +.else +CONFIGURE_ARGS+= --with-gss +.endif +.endif MAN1= mutt.1 mutt_dotlock.1 MAN5= mbox.5 muttrc.5 @@ -140,6 +147,13 @@ pre-configure:: @(cd ${WRKSRC}; ${SETENV} ${AUTOMAKE_ENV} ${ACLOCAL} -I m4) +post-configure: +.if !exists(${LOCALBASE}/bin/krb5-config) + @${ECHO_CMD} "#define HAVE_HEIMDAL" >> ${WRKSRC}/config.h + @${REINPLACE_CMD} -e 's|||' \ + ${WRKSRC}/imap/auth_gss.c +.endif + # XXX # this should be done automagically by aclocal but .... # for now, this will have to do