summaryrefslogtreecommitdiff
path: root/mail/nmh/Makefile
diff options
context:
space:
mode:
authorschwarz <schwarz@pkgsrc.org>2006-12-16 13:18:54 +0000
committerschwarz <schwarz@pkgsrc.org>2006-12-16 13:18:54 +0000
commit57468e92498cbac4c96067e333533e2c4909b22c (patch)
tree0a1394937d7b8fcb65619fa645f6e0d1043586dd /mail/nmh/Makefile
parent6d211aa2c5cf49bf23b4c2a7b994919c7f31c577 (diff)
downloadpkgsrc-57468e92498cbac4c96067e333533e2c4909b22c.tar.gz
added support for IRIX 5
Diffstat (limited to 'mail/nmh/Makefile')
-rw-r--r--mail/nmh/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/mail/nmh/Makefile b/mail/nmh/Makefile
index 37edb228586..20c34a7a20f 100644
--- a/mail/nmh/Makefile
+++ b/mail/nmh/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.62 2006/10/01 07:34:16 dsainty Exp $
+# $NetBSD: Makefile,v 1.63 2006/12/16 13:18:54 schwarz Exp $
DISTNAME= nmh-1.0.4
PKGREVISION= 7
@@ -13,9 +13,6 @@ COMMENT= Cleaned up MH mailer suite
CONFLICTS= ja-mh-[0-9]*
CONFLICTS+= ja-mh6-[0-9]*
-# Avoids SEGV in nmh's private version of strcasecmp() under gcc4
-CFLAGS+= -O1
-
# We choose DOT_LOCKING in our patches because ".lock" files are
# the most common locking mechanism supported by mail software.
# It also works well over NFS.
@@ -23,6 +20,15 @@ CFLAGS+= -O1
# Locks supported by `mail.local' are ".lock" and flock(2).
.include "../../mk/bsd.prefs.mk"
+# Avoids SEGV in nmh's private version of strcasecmp() under gcc4
+.if !empty(PKGSRC_COMPILER:Mgcc*)
+CFLAGS+= -O1
+.endif
+
+.if !empty(LOWER_OPSYS:Mirix5*)
+CPPFLAGS+= -DIRIX5 # for a patch with extra typedefs
+.endif
+
.include "options.mk"
# Mail Transport Agent - either "smtp" or "sendmail"