From e4a1ed5a205890c0f01da8a2a7c5568e75669964 Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 17 Sep 2013 21:15:06 +0000 Subject: Use C++11 shared_ptr with clang. --- textproc/libodfgen/Makefile | 10 ++++++++-- 1 file 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" -- cgit v1.2.3