diff options
author | tron <tron@pkgsrc.org> | 2008-11-14 14:09:20 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2008-11-14 14:09:20 +0000 |
commit | b38f6faf2245320944a35161f339f6c60aaa750f (patch) | |
tree | 8c648da8f7fe1a5d3e6770485eb08a884363a0cc | |
parent | 07e7458998131778627c8dc2ca91688e29c103bc (diff) | |
download | pkgsrc-b38f6faf2245320944a35161f339f6c60aaa750f.tar.gz |
Use "c99" to build under NetBSD if available. This makes "sendmail" build
until PR toolchain/38983 has been fixed.
-rw-r--r-- | mail/sendmail/hacks.mk | 16 |
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 |