summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorwiz <wiz>2001-03-23 10:01:01 +0000
committerwiz <wiz>2001-03-23 10:01:01 +0000
commitb2a279f51feb5eafc4afb0c11f79f5dcd00bc04c (patch)
treeb3194886952e5ffe5338640587b353abbef5ef95 /mail
parentc404318d4869af102ff1165044b570851a1da308 (diff)
downloadpkgsrc-b2a279f51feb5eafc4afb0c11f79f5dcd00bc04c.tar.gz
Fix compilation with SSL and kerberos on -current (and hopefully 1.5).
Still works on 1.4.2.
Diffstat (limited to 'mail')
-rw-r--r--mail/fetchmail/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/mail/fetchmail/Makefile b/mail/fetchmail/Makefile
index 53180b46901..64c04bbee6a 100644
--- a/mail/fetchmail/Makefile
+++ b/mail/fetchmail/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.88 2001/03/10 10:51:03 frueauf Exp $
+# $NetBSD: Makefile,v 1.89 2001/03/23 10:01:01 wiz Exp $
#
DISTNAME= fetchmail-5.7.2
@@ -38,6 +38,9 @@ BUILD_DEFS+= FETCHMAIL_USE_SSL
.if defined(KERBEROS)
USE_KERBEROS= yes
CONFIGURE_ARGS+=--with-kerberos=yes
+.if ${MACHINE_PLATFORM:MNetBSD-1.[0-4]*-i386} == ""
+REPLACE_KERBEROS_LIBS= # defined
+.endif
.else
CONFIGURE_ARGS+=--with-kerberos=no
.endif
@@ -53,6 +56,15 @@ post-extract:
@${RM} -f ${WRKSRC}/md5.h
.endif
@${MV} ${WRKSRC}/fetchmail.man ${WRKSRC}/fetchmail.tbl
+.if defined(REPLACE_KERBEROS_LIBS)
+ cd ${WRKSRC} && \
+ for F in configure.in configure; do \
+ ${SED} -e "s/-lkrb -ldes/-lkrb -ldes -lcom_err -lroken/" \
+ $$F > $$F.mod; \
+ ${MV} -f $$F.mod $$F; \
+ done
+ ${CHMOD} a+x ${WRKSRC}/configure
+.endif
pre-configure:
(cd ${WRKSRC}; autoreconf)