aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libantlr4/Makefile
blob: c6c4261868d3687dac706e0845e079c9569a37c5 (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
PORTNAME=	antlr4
DISTVERSION=	4.13.2
DISTVERSIONPREFIX=	cpp-runtime-
DISTVERSIONSUFFIX=	-source
CATEGORIES=	devel
MASTER_SITES=	http://www.antlr.org/download/
PKGNAMEPREFIX=		lib

MAINTAINER=	fluffy@FreeBSD.org
COMMENT=	ANother Tool for Language Recognition (C runtime)
WWW=		https://www.antlr.org/

LICENSE=	BSD3CLAUSE

BUILD_DEPENDS=	utf8cpp>0:devel/utf8cpp

USES=		cmake:testing compiler:c11 localbase:ldflags zip

NO_WRKSUBDIR=	yes

CMAKE_OFF=	ANTLR_BUILD_CPP_TESTS
CMAKE_TESTING_ON=	ANTLR_BUILD_CPP_TESTS # tests fail to link, see https://github.com/antlr/antlr4/issues/4074

DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
LIBVERSION=	${PORTVERSION}
PLIST_SUB+=	LIBVERSION=${PORTVERSION}

post-install:
	@${RMDIR} ${STAGEDIR}${PREFIX}/include/antlr4-runtime/.idea

.include <bsd.port.mk>