summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2003-03-04 11:39:56 +0000
committerseb <seb@pkgsrc.org>2003-03-04 11:39:56 +0000
commit20389674cd247c725b4cce3c11e37735bfe58d92 (patch)
tree461bc4ceddc25af47854268478b8e5996984f900 /mail
parent40912ed43db29e1be8d9805d1de872da3d48ce40 (diff)
downloadpkgsrc-20389674cd247c725b4cce3c11e37735bfe58d92.tar.gz
Older NetBSD's m4 (before 1.5Z) cannot be used by sendmail devtools.
So provide a build dependency on GNU m4 (devel/m4) when appropriate. Bump PKGREVISION.
Diffstat (limited to 'mail')
-rw-r--r--mail/sendmail/Makefile.common18
1 files changed, 17 insertions, 1 deletions
diff --git a/mail/sendmail/Makefile.common b/mail/sendmail/Makefile.common
index 910c15cf3e8..0c536c67252 100644
--- a/mail/sendmail/Makefile.common
+++ b/mail/sendmail/Makefile.common
@@ -1,10 +1,11 @@
-# $NetBSD: Makefile.common,v 1.3 2003/03/04 00:21:31 seb Exp $
+# $NetBSD: Makefile.common,v 1.4 2003/03/04 11:39:56 seb Exp $
#
# Makefile fragment shared with libmilter
#
DISTNAME= sendmail.${DIST_VERS}
CATEGORIES= mail
+PKGREVISION= 1
MASTER_SITES= ftp://ftp.sendmail.org/pub/sendmail/ \
ftp://ftp.fu-berlin.de/pub/unix/mail/sendmail/ \
ftp://ftp.kyoto.wide.ad.jp/pub/mail/sendmail/
@@ -34,6 +35,21 @@ USE_BUILDLINK2= YES
.include "../../mk/bsd.prefs.mk"
+_NEED_GNU_M4= NO
+_NEED_GNU_M4_PLATFORM= NetBSD-0.*-* NetBSD-1.[01234]*-*
+_NEED_GNU_M4_PLATFORM= NetBSD-1.5.*-* NetBSD-1.5[A-Y]-*
+.for __tmp__ in ${_NEED_GNU_M4_PLATFORM}
+. if ${MACHINE_PLATFORM:M${__tmp__}} != ""
+_NEED_GNU_M4= YES
+. endif
+.endfor
+
+.if ${_NEED_GNU_M4} == "YES"
+BUILD_DEPENDS+= m4-*:../../devel/m4
+EVAL_PREFIX+= M4_PREFIX=m4
+MAKE_ENV+= M4=${M4_PREFIX}/bin/${GNU_PROGRAM_PREFIX}m4
+.endif
+
make-sendmail-siteconfig:
${CP} ${FILESDIR}/site.config.m4 ${SITECONFIG}
${CHMOD} +w ${SITECONFIG}