freebsd-ports/devel/nlohmann-json/Makefile
Yuri Victorovich e9f32a9327 devel/nlohmann-json: Update 3.10.1 -> 3.10.2
Reported by:	portscout
2021-10-03 01:56:25 -07:00

31 lines
803 B
Makefile

# Created by: Viacheslav Mikerov <SlavaMikerov@gmail.com>
PORTNAME= json
DISTVERSIONPREFIX= v
DISTVERSION= 3.10.2
CATEGORIES= devel
PKGNAMEPREFIX= nlohmann-
MAINTAINER= yuri@FreeBSD.org
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_ON= JSON_MultipleHeaders
CMAKE_OFF= JSON_BuildTests
do-test: # 2 tests are expected to fail, see https://github.com/nlohmann/json/issues/2951
@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>