summaryrefslogtreecommitdiff
path: root/mail/fetchmail/Makefile
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2001-03-23 10:01:01 +0000
committerwiz <wiz@pkgsrc.org>2001-03-23 10:01:01 +0000
commitdd14af765d0b84d7176b320dc00e42d351914747 (patch)
treeb3194886952e5ffe5338640587b353abbef5ef95 /mail/fetchmail/Makefile
parent94aba44867a7d4618f2967b5af50a680d5226bea (diff)
downloadpkgsrc-dd14af765d0b84d7176b320dc00e42d351914747.tar.gz
Fix compilation with SSL and kerberos on -current (and hopefully 1.5).
Still works on 1.4.2.
Diffstat (limited to 'mail/fetchmail/Makefile')
-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)