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

PATCH_SITES+=	https://github.com/antlr/antlr4/commit/
PATCHFILES+=	df4d68c09cdef73e023b8838a8bc7ca4dff1d1de.patch:-p3

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>