aboutsummaryrefslogtreecommitdiff
path: root/textproc/re-flex/Makefile
blob: 3800283a3efa46256ae3fd48ba999289e712e186 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
PORTNAME=	re-flex
PORTVERSION=	3.5.0
DISTVERSIONPREFIX=	v
CATEGORIES=	textproc

MAINTAINER=	gahr@FreeBSD.org
COMMENT=	Regex-centric, fast and flexible scanner generator for C++
WWW=		https://www.genivia.com/reflex.html

LICENSE=	BSD3CLAUSE

USES=		compiler:c++11-lib cmake

OPTIONS_DEFINE=	SIMD
SIMD_CMAKE_OFF=	-DUSE_AVX512BW:BOOL=OFF -DUSE_AVX2:BOOL=OFF \
		-DUSE_SSE2:BOOL=OFF -DUSE_NEON:BOOL=OFF

CONFLICTS_INSTALL=	reflex

USE_GITHUB=	yes
GH_ACCOUNT=	Genivia
GH_PROJECT=	RE-flex

post-patch:
	${REINPLACE_CMD} \
		's|reflex_static_lib|reflex|; s|reflex_shared_lib|reflex|' \
		${WRKSRC}/CMakeLists.txt

post-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/reflex
	(cd ${WRKSRC}/include/reflex && \
	 ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/include/reflex)
	@${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/lex.vim ${STAGEDIR}${DATADIR}/lex.vim
	${INSTALL_MAN} ${WRKSRC}/doc/man/reflex.1 ${STAGEDIR}/${MAN1PREFIX}/man/man1/

.include <bsd.port.mk>