summaryrefslogtreecommitdiff
path: root/audio/arts
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2011-11-01 16:18:54 +0000
committerhans <hans@pkgsrc.org>2011-11-01 16:18:54 +0000
commitacd2d2721515e2cc800712b3fa239ef87c396946 (patch)
treec9ff57f22c5f32e3852258678fac1bb8125d3c48 /audio/arts
parent17e60bd372513b3fdc9c07b9de35839325ffe252 (diff)
downloadpkgsrc-acd2d2721515e2cc800712b3fa239ef87c396946.tar.gz
Fix build on SunOS >= 5.10 with gcc >= 4.6
Diffstat (limited to 'audio/arts')
-rw-r--r--audio/arts/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/audio/arts/Makefile b/audio/arts/Makefile
index 056a4ba07d6..4942804948d 100644
--- a/audio/arts/Makefile
+++ b/audio/arts/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.75 2011/09/14 15:44:23 hans Exp $
+# $NetBSD: Makefile,v 1.76 2011/11/01 16:18:54 hans Exp $
DISTNAME= arts-1.5.10
PKGREVISION= 4
@@ -8,7 +8,14 @@ COMMENT= Analog Real-Time Synthesizer
.include "../../meta-pkgs/kde3/Makefile.kde3"
+.include "../../mk/bsd.prefs.mk"
+.include "../../mk/compiler.mk"
+.if !empty(MACHINE_PLATFORM:MSunOS-5.1[0-9]-*) && \
+ !empty(CC_VERSION:Mgcc-4.[6-9].*)
+CFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -std=c99
+.else
CFLAGS.SunOS+= -D_XOPEN_SOURCE=500
+.endif
PKG_DESTDIR_SUPPORT= user-destdir