1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/devel/re2/Makefile
Adam Weinberger a84c115a09 Convert a bunch of EXTRACT_SUFX=... into USES=tar:...
Approved by:	portmgr (not really, but touches unstaged ports)
2014-07-29 19:11:51 +00:00

32 lines
645 B
Makefile

# Created by: Julien Laffaye <kimelto@gmail.com>
# $FreeBSD$
PORTNAME= re2
PORTVERSION= 20140304
CATEGORIES= devel
MASTER_SITES= GOOGLE_CODE
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 tar:tgz
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>