freebsd-ports/devel/nlohmann-json/Makefile
Tobias C. Berner 707c6bf295 Change cmake default behaviour to outsource.
Ports that build out of source now simply can use "USES=cmake"
instead of "USES=cmake:outsource". Ports that fail to build
out of source now need to specify "USES=cmake:insource".

I tried to only set insource where explictely needed.

PR:		232038
Exp-run by:	antoine
2018-12-25 20:25:39 +00:00

37 lines
934 B
Makefile

# Created by: Viacheslav Mikerov <SlavaMikerov@gmail.com>
# $FreeBSD$
PORTNAME= json
DISTVERSIONPREFIX= v
DISTVERSION= 3.3.0
PORTREVISION= 1
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>