diff options
author | joerg <joerg@pkgsrc.org> | 2013-09-17 21:15:06 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2013-09-17 21:15:06 +0000 |
commit | f6231ed6083dc46ebfb2f5b4d626af8f27026da5 (patch) | |
tree | 4d503e2be3d5f03e3b5f0b5421d3e594f42f1aca | |
parent | e8082ff3a91aaf963fda196df4d2fdf2d5d5c851 (diff) | |
download | pkgsrc-f6231ed6083dc46ebfb2f5b4d626af8f27026da5.tar.gz |
Use C++11 shared_ptr with clang.
-rw-r--r-- | textproc/libodfgen/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/textproc/libodfgen/Makefile b/textproc/libodfgen/Makefile index aeaf4370bd6..4e45269185c 100644 --- a/textproc/libodfgen/Makefile +++ b/textproc/libodfgen/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2013/08/24 16:17:12 jaapb Exp $ +# $NetBSD: Makefile,v 1.2 2013/09/17 21:15:06 joerg Exp $ DISTNAME= libodfgen-0.0.2 CATEGORIES= textproc @@ -12,13 +12,19 @@ COMMENT= Library to generate ODF documents through libwpd and libwps LICENSE= mpl-2.0 OR gnu-lgpl-v2 GNU_CONFIGURE= yes -CONFIGURE_ARGS+= --with-sharedptr=tr1 USE_LIBTOOL= yes USE_TOOLS+= pkg-config USE_LANGUAGES= c c++ PKGCONFIG_OVERRIDE+= libodfgen.pc.in +.include "../../mk/compiler.mk" +.if !empty(PKGSRC_COMPILER:Mclang) +CONFIGURE_ARGS+= --with-sharedptr=c++11 +.else +CONFIGURE_ARGS+= --with-sharedptr=tr1 +.endif + .include "../../converters/libwpd/buildlink3.mk" .include "../../converters/libwpg/buildlink3.mk" .include "../../mk/bsd.pkg.mk" |