svn commit: r349687 - head/textproc/libmwaw

Baptiste Daroussin bapt at FreeBSD.org
Sun Mar 30 22:10:11 UTC 2014


Author: bapt
Date: Sun Mar 30 22:10:10 2014
New Revision: 349687
URL: http://svnweb.freebsd.org/changeset/ports/349687
QAT: https://qat.redports.org/buildarchive/r349687/

Log:
  When STL is libc++ use shared pointer from C++11 instead of boost one

Modified:
  head/textproc/libmwaw/Makefile

Modified: head/textproc/libmwaw/Makefile
==============================================================================
--- head/textproc/libmwaw/Makefile	Sun Mar 30 21:59:27 2014	(r349686)
+++ head/textproc/libmwaw/Makefile	Sun Mar 30 22:10:10 2014	(r349687)
@@ -12,7 +12,6 @@ COMMENT=	Import library for some old mac
 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
@@ -22,11 +21,19 @@ CPPFLAGS+=	-I${LOCALBASE}/include
 
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
-USE_XZ=		yes
-USES=		libtool pkgconfig pathfix
+USES=		libtool pkgconfig pathfix tar:xz compiler:features
 
 PORTDOCS=	*
 DOCS_BUILD_DEPENDS=	doxygen:${PORTSDIR}/devel/doxygen
 DOCS_CONFIGURE_OFF=	--without-docs
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.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 <bsd.port.post.mk>


More information about the svn-ports-head mailing list