summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2008-11-14 14:09:20 +0000
committertron <tron@pkgsrc.org>2008-11-14 14:09:20 +0000
commitb38f6faf2245320944a35161f339f6c60aaa750f (patch)
tree8c648da8f7fe1a5d3e6770485eb08a884363a0cc /mail
parent07e7458998131778627c8dc2ca91688e29c103bc (diff)
downloadpkgsrc-b38f6faf2245320944a35161f339f6c60aaa750f.tar.gz
Use "c99" to build under NetBSD if available. This makes "sendmail" build
until PR toolchain/38983 has been fixed.
Diffstat (limited to 'mail')
-rw-r--r--mail/sendmail/hacks.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/mail/sendmail/hacks.mk b/mail/sendmail/hacks.mk
new file mode 100644
index 00000000000..401c68da8f9
--- /dev/null
+++ b/mail/sendmail/hacks.mk
@@ -0,0 +1,16 @@
+# $NetBSD: hacks.mk,v 1.1 2008/11/14 14:09:20 tron Exp $
+
+.if !defined(SENDMAIL_HACKS_MK)
+SENDMAIL_HACKS_MK= # defined
+
+### Work around build problems under NetBSD 5.0_BETA and newer because
+### of redefinition of the "boolean" type. See PR pkg/38983 for details.
+. include "../../mk/bsd.fast.prefs.mk"
+. if ${OPSYS} == "NetBSD" && exists(/usr/bin/c99)
+PKG_HACKS+= c99
+
+post-configure:
+ ${CHMOD} +w ${WRKSRC}/devtools/OS/NetBSD
+ ${ECHO} "define(\`confCC', \`c99')" >>${WRKSRC}/devtools/OS/NetBSD
+. endif
+.endif