diff options
author | tron <tron> | 2008-11-14 14:09:20 +0000 |
---|---|---|
committer | tron <tron> | 2008-11-14 14:09:20 +0000 |
commit | e08f07d7c6efe2be31229f7d17fd0f4d9a581146 (patch) | |
tree | 8c648da8f7fe1a5d3e6770485eb08a884363a0cc /mail/sendmail | |
parent | 5f1533f11b0287e128f42294609bbbdcebb1eb88 (diff) | |
download | pkgsrc-e08f07d7c6efe2be31229f7d17fd0f4d9a581146.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/sendmail')
-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 |