# Created by: Julien Laffaye # $FreeBSD$ PORTNAME= re2 PORTVERSION= 20140304 CATEGORIES= devel MASTER_SITES= GOOGLE_CODE EXTRACT_SUFX= .tgz MAINTAINER= jlaffaye@FreeBSD.org COMMENT= Fast C++ regex library LICENSE= BSD3CLAUSE MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" prefix=${PREFIX} USE_LDCONFIG= yes USES= compiler:c++11-lang gmake WRKSRC= ${WRKDIR}/${PORTNAME} .include post-patch: # remove tr1 if using libc++ .if ${COMPILER_FEATURES:Mlibc++} @${REINPLACE_CMD} -e 's|tr1/||; s|tr1::||' ${WRKSRC}/util/util.h .endif post-build: @${STRIP_CMD} ${WRKSRC}/obj/so/libre2.so .include