36 lines
938 B
Makefile
36 lines
938 B
Makefile
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>
|