From owner-svn-ports-all@FreeBSD.ORG Sun Mar 30 22:11:50 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DA9153BF; Sun, 30 Mar 2014 22:11:50 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C74FAD4; Sun, 30 Mar 2014 22:11:50 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2UMBo7q006548; Sun, 30 Mar 2014 22:11:50 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2UMBoKR006547; Sun, 30 Mar 2014 22:11:50 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201403302211.s2UMBoKR006547@svn.freebsd.org> From: Baptiste Daroussin Date: Sun, 30 Mar 2014 22:11:50 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r349688 - head/textproc/libwps X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2014 22:11:50 -0000 Author: bapt Date: Sun Mar 30 22:11:50 2014 New Revision: 349688 URL: http://svnweb.freebsd.org/changeset/ports/349688 QAT: https://qat.redports.org/buildarchive/r349688/ Log: Use c++11 shared pointers when possible Modified: head/textproc/libwps/Makefile Modified: head/textproc/libwps/Makefile ============================================================================== --- head/textproc/libwps/Makefile Sun Mar 30 22:10:10 2014 (r349687) +++ head/textproc/libwps/Makefile Sun Mar 30 22:11:50 2014 (r349688) @@ -13,7 +13,6 @@ COMMENT= Microsoft file word processor f LICENSE= LGPL21 MPL LICENSE_COMB= dual -BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs LIB_DEPENDS= libwpd-0.9.so:${PORTSDIR}/textproc/libwpd OPTIONS_DEFINE= DOCS @@ -21,10 +20,19 @@ OPTIONS_DEFINE= DOCS CONFIGURE_ARGS= --disable-werror CPPFLAGS+= -I${LOCALBASE}/include GNU_CONFIGURE= yes -USES= libtool pkgconfig pathfix +USES= libtool pkgconfig pathfix compiler:features USE_LDCONFIG= yes PORTDOCS= * DOCS_BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen DOCS_CONFIGURE_OFF= --without-docs -.include +.include + +.if ${COMPILER_FEATURES:Mlibc++} +CONFIGURE_ARGS= --with-sharedptr=c++11 +.else +BUILD_DEPENDS+= ${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs +CONFIGURE_ARGS= --with-sharedptr=boost +.endif + +.include