aboutsummaryrefslogtreecommitdiff
path: root/devel/nlohmann-json/Makefile
blob: ad7c9112681d08143128ac08b0dd7a87835cff5a (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
# Created by: Viacheslav Mikerov <SlavaMikerov@gmail.com>
# $FreeBSD$

PORTNAME=	json
DISTVERSIONPREFIX=	v
DISTVERSION=	3.3.0
PORTREVISION=	2
CATEGORIES=	devel
PKGNAMEPREFIX=	nlohmann-

MAINTAINER=	SlavaMikerov@gmail.com
COMMENT=	JSON library for Modern C++

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE.MIT

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

NO_BUILD=	yes
NO_ARCH=	yes

CMAKE_OFF=	JSON_BuildTests

PLIST_FILES=	lib/cmake/nlohmann_json/nlohmann_jsonConfig.cmake \
		lib/cmake/nlohmann_json/nlohmann_jsonConfigVersion.cmake \
		lib/cmake/nlohmann_json/nlohmann_jsonTargets.cmake \
		include/nlohmann/json.hpp

do-test:
	@cd ${BUILD_WRKSRC} && \
		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DJSON_BuildTests: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>