summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2016-06-19 23:01:01 +0000
committerjoerg <joerg@pkgsrc.org>2016-06-19 23:01:01 +0000
commite1bb7efd25ad4b7f2f782feeed6f991ffa845c1f (patch)
tree15477253e7aeb16b8740d357676a59301561383c /editors
parent5c4ef33406a625ec64697ee06e9d4c5aa13ae7fd (diff)
downloadpkgsrc-e1bb7efd25ad4b7f2f782feeed6f991ffa845c1f.tar.gz
clang objects to the nullptr emulation, so just real C++11 for it.
Diffstat (limited to 'editors')
-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"