summaryrefslogtreecommitdiff
path: root/devel/flatcc/Makefile
blob: a432167231d183fb33a72c499018341e655d299a (plain)
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

PORTNAME=	flatcc
DISTVERSIONPREFIX=	v
DISTVERSION=	0.6.0
CATEGORIES=	devel

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	FlatBuffers compiler and library in C for C

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cmake compiler:c++11-lib
USE_GITHUB=	yes
GH_ACCOUNT=	dvidelabs
USE_LDCONFIG=	yes

CMAKE_ON=	BUILD_SHARED_LIBS FLATCC_INSTALL
CMAKE_OFF=	FLATCC_TEST

PLIST_SUB=	SUFFIX=${WITH_DEBUG:D_d}

do-test:
	@cd ${BUILD_WRKSRC} && \
		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DFLATCC_TEST:BOOL=ON ${CMAKE_SOURCE_PATH} && \
		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test

.include <bsd.port.mk>