summaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2012-12-25 21:13:42 +0000
committerjoerg <joerg@pkgsrc.org>2012-12-25 21:13:42 +0000
commit9edf811344c734ac8dcbf82b45de6bfdf3527bba (patch)
treed575906ee1b52b047d354bd58a34c78f5189bba2 /cad
parente546e218ccf4ade6afe63a10072b60d9f8b1a84d (diff)
downloadpkgsrc-9edf811344c734ac8dcbf82b45de6bfdf3527bba.tar.gz
Explicitly put clang into C++11 mode.
Diffstat (limited to 'cad')
-rw-r--r--cad/openscad/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/cad/openscad/Makefile b/cad/openscad/Makefile
index e42b66b2cd3..4b90d50c6f2 100644
--- a/cad/openscad/Makefile
+++ b/cad/openscad/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2012/10/08 23:01:16 adam Exp $
+# $NetBSD: Makefile,v 1.16 2012/12/25 21:13:42 joerg Exp $
#
PKGNAME= openscad-2011.12
@@ -37,6 +37,11 @@ CHECK_INTERPRETER_SKIP+=share/openscad/libraries/MCAD/get_submodules.py
pre-build:
(cd ${WRKSRC} && ${QTDIR}/bin/qmake)
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mclang)
+_WRAP_EXTRA_ARGS.CXX+= -std=c++11
+.endif
+
# DragonFly requires FlexLexer.h from pkgsrc - base doesn't cut it.
.include "../../devel/flex/buildlink3.mk"
.include "../../devel/gmp/buildlink3.mk"