summaryrefslogtreecommitdiff
path: root/editors/codeblocks
diff options
context:
space:
mode:
authorjoerg <joerg>2016-06-19 23:01:01 +0000
committerjoerg <joerg>2016-06-19 23:01:01 +0000
commit5ef0a49bc1f66eab7b7347fb72a9bf1e83adcdbb (patch)
tree4ca11ddec4495698ab0eea28df7a60819c3116ac /editors/codeblocks
parent037126b99e72084084ada8410622488d46a175e7 (diff)
downloadpkgsrc-5ef0a49bc1f66eab7b7347fb72a9bf1e83adcdbb.tar.gz
clang objects to the nullptr emulation, so just real C++11 for it.
Diffstat (limited to 'editors/codeblocks')
-rw-r--r--editors/codeblocks/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/editors/codeblocks/Makefile b/editors/codeblocks/Makefile
index b32283175a3..19dcfe0d41a 100644
--- a/editors/codeblocks/Makefile
+++ b/editors/codeblocks/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2016/06/16 02:28:51 kamil Exp $
+# $NetBSD: Makefile,v 1.2 2016/06/19 23:01:01 joerg Exp $
#
DISTNAME= codeblocks_16.01
@@ -24,6 +24,11 @@ BUILD_DEPENDS+= zip-[0-9]*:../../archivers/zip
PKGCONFIG_OVERRIDE+= codeblocks.pc.in
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mclang)
+CXXFLAGS+= -std=c++11
+.endif
+
.include "../../databases/shared-mime-info/mimedb.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"