Files
ports/devel/nlohmann-json/Makefile
T
Mateusz Piotrowski cb74173174 devel/nlohmann-json: Install all the headers
It turns out that it is necessary to ship all the headers if the
JSON_MultipleHeaders option was used for building. Otherwise, even the most
popular header, json.hpp, no longer works correctly.

PR:		249895
Approved by:	yuri@ (maintainer)
2020-09-25 21:44:47 +00:00

34 lines
749 B
Makefile

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