Tue Dec 6 19:53:27 2011 UTC ()
Uses C++-2011 features


(joerg)
diff -r1.8 -r1.9 pkgsrc/inputmethod/ibus-pinyin/Makefile

cvs diff -r1.8 -r1.9 pkgsrc/inputmethod/ibus-pinyin/Makefile (expand / switch to context diff)
--- pkgsrc/inputmethod/ibus-pinyin/Makefile 2011/11/13 04:42:08 1.8
+++ pkgsrc/inputmethod/ibus-pinyin/Makefile 2011/12/06 19:53:27 1.9
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2011/11/13 04:42:08 obache Exp $
+# $NetBSD: Makefile,v 1.9 2011/12/06 19:53:27 joerg Exp $
 #
 
 DISTNAME=	ibus-pinyin-1.3.11
@@ -43,9 +43,14 @@
 .include "options.mk"
 
 .include "../../mk/bsd.prefs.mk"
+.include "../../mk/compiler.mk"
 
 .if ${OPSYS} == "Linux"
 .  include "../../devel/libuuid/buildlink3.mk"
+.endif
+
+.if (!empty(PKGSRC_COMPILER:Mgcc) && !empty(CC_VERSION:Mgcc-4.[4-9]*)) || !empty(PKGSRC_COMPILER:Mclang)
+CXXFLAGS+=		-std=c++0x
 .endif
 
 .include "../../inputmethod/ibus/bad-env-usage.mk"