freebsd-ports/devel/re2/Makefile
Julien Laffaye 773f2c970b - Update to 20140304
- Specify BSD license
2014-03-09 17:14:57 +00:00

32 lines
656 B
Makefile

# Created by: Julien Laffaye <kimelto@gmail.com>
# $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 <bsd.port.pre.mk>
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 <bsd.port.post.mk>