From 66241df70c8121588ac8375d172736dab56766b5 Mon Sep 17 00:00:00 2001 From: marcus Date: Sun, 3 Jan 2010 06:12:02 +0000 Subject: Try and get Evo to build on FreeBSD < 8.X. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13350 df743ca5-7f9a-e211-a948-0013205c9059 --- mail/evolution/Makefile | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'mail') diff --git a/mail/evolution/Makefile b/mail/evolution/Makefile index db18f7e38..79eedcf52 100644 --- a/mail/evolution/Makefile +++ b/mail/evolution/Makefile @@ -3,7 +3,7 @@ # Whom: Ade Lovett # # $FreeBSD$ -# $MCom: ports/mail/evolution/Makefile,v 1.207 2009/12/26 21:31:06 kwm Exp $ +# $MCom: ports/mail/evolution/Makefile,v 1.208 2009/12/27 19:44:46 kwm Exp $ # PORTNAME= evolution @@ -85,15 +85,15 @@ CONFIGURE_ARGS+=--with-openldap=no RUN_DEPENDS+= spamassassin:${PORTSDIR}/mail/p5-Mail-SpamAssassin .endif -.if !defined(NO_KERBEROS) && exists(/usr/lib/libkrb5.so) -CONFIGURE_ARGS+= --with-krb5=/usr -.else +.if defined(HEIMDAL_HOME) || defined(WITH_HEIMDAL) || defined(NO_KERBEROS) +HEIMDAL_HOME?= ${LOCALBASE} LIB_DEPENDS+= krb5:${PORTSDIR}/security/heimdal -.if defined(HEIMDAL_HOME) -CONFIGURE_ARGS+= --with-krb5=${HEIMDAL_HOME} --with-krb5-includes=${HEIMDAL_HOME}/include -.else -CONFIGURE_ARGS+= --with-krb5=${LOCALBASE} -.endif +CONFIGURE_ARGS+= --with-krb5=${HEIMDAL_HOME} \ + --with-krb5-includes=${HEIMDAL_HOME}/include +KRB5_LIB= `${HEIMDAL_HOME}/bin/krb5-config gssapi --libs` +.elif !defined(NO_KERBEROS) +CONFIGURE_ARGS+= --with-krb5=/usr +KRB5_LIB= `/usr/bin/krb5-config gssapi --libs` .endif .if defined(WITH_CANBERRA) @@ -118,6 +118,7 @@ PLIST_SUB+= PST="@comment " post-patch: @${REINPLACE_CMD} -e '/^plugins_standard_always/s/audio-inline//' \ + -e 's|heimlibs".*"|heimlibs="${KRB5_LIB}"|g' \ -e 's|-Wmissing-include-dirs||g' \ ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|stdlib.n|stdlib.h|' \ -- cgit v1.2.3