aboutsummaryrefslogtreecommitdiff
path: root/devel/bear/Makefile
blob: 45e03bba6356944bdb8c8359fbfb8ba9e942278f (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
38
39
40
41
42
PORTNAME=	bear
DISTVERSION=	3.0.20
PORTREVISION=	4
CATEGORIES=	devel

MAINTAINER=	jrm@FreeBSD.org
COMMENT=	Tool that generates a compilation database for clang tooling
WWW=		https://github.com/rizsotto/Bear

LICENSE=	GPLv3+

BUILD_DEPENDS=	nlohmann-json>0:devel/nlohmann-json
LIB_DEPENDS=	libabsl_hash.so:devel/abseil \
		libcares.so:dns/c-ares \
		libfmt.so:devel/libfmt \
		libgrpc.so:devel/grpc \
		libprotobuf.so:devel/protobuf \
		libre2.so:devel/re2 \
		libspdlog.so:devel/spdlog

USES=		cmake compiler:c++17-lang pkgconfig
USE_GITHUB=	yes
GH_ACCOUNT=	rizsotto
GH_PROJECT=	Bear
USE_LDCONFIG=	${PREFIX}/lib/${PORTNAME}

CMAKE_ARGS=	-DCMAKE_INSTALL_DOCDIR=${DOCSDIR} \
		-DENABLE_FUNC_TESTS=OFF \
		-DENABLE_UNIT_TESTS=OFF

OPTIONS_DEFINE=	DOCS

pre-install:
	${MV} ${STAGEDIR}/${CONFIGURE_WRKSRC}/stage ${CONFIGURE_WRKSRC}/
	${RM} -r ${STAGEDIR}/wrkdirs

post-install:
.for l in bin/citnames bin/intercept lib/bear/libexec.so lib/bear/wrapper
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${l}
.endfor

.include <bsd.port.mk>