pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/arts Fix build on SunOS >= 5.10 with gcc >= 4.6



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cd104d5ad971
branches:  trunk
changeset: 594633:cd104d5ad971
user:      hans <hans%pkgsrc.org@localhost>
date:      Tue Nov 01 16:18:54 2011 +0000

description:
Fix build on SunOS >= 5.10 with gcc >= 4.6

diffstat:

 audio/arts/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r f418bcc807d7 -r cd104d5ad971 audio/arts/Makefile
--- a/audio/arts/Makefile       Tue Nov 01 16:16:01 2011 +0000
+++ b/audio/arts/Makefile       Tue Nov 01 16:18:54 2011 +0000
@@ -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 @@
 
 .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
 



Home | Main Index | Thread Index | Old Index