summaryrefslogtreecommitdiff
path: root/mail/sendmail
diff options
context:
space:
mode:
authorseb <seb>2003-03-04 11:39:56 +0000
committerseb <seb>2003-03-04 11:39:56 +0000
commit709783d14b0bfa7f2214302088730ba2cdcdcf81 (patch)
tree461bc4ceddc25af47854268478b8e5996984f900 /mail/sendmail
parenta6fd8b0ef633a7b86e613d4e18ffed9bd89e7902 (diff)
downloadpkgsrc-709783d14b0bfa7f2214302088730ba2cdcdcf81.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/sendmail')
-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}