2017-03-29 02:28:19 +02:00
|
|
|
# Created by: Viacheslav Mikerov <SlavaMikerov@gmail.com>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
2017-04-07 20:01:06 +02:00
|
|
|
PORTNAME= json
|
|
|
|
DISTVERSIONPREFIX= v
|
2018-11-23 22:11:53 +01:00
|
|
|
DISTVERSION= 3.3.0
|
Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.
PR: 231590
2018-12-12 02:35:33 +01:00
|
|
|
PORTREVISION= 1
|
2017-03-29 02:28:19 +02:00
|
|
|
CATEGORIES= devel
|
2017-04-07 20:01:06 +02:00
|
|
|
PKGNAMEPREFIX= nlohmann-
|
2017-03-29 02:28:19 +02:00
|
|
|
|
|
|
|
MAINTAINER= SlavaMikerov@gmail.com
|
|
|
|
COMMENT= JSON library for Modern C++
|
|
|
|
|
2018-05-17 17:37:34 +02:00
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.MIT
|
2017-03-29 02:28:19 +02:00
|
|
|
|
2018-05-17 17:37:34 +02:00
|
|
|
USES= cmake:outsource compiler:c++11-lib
|
2017-03-29 02:28:19 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= nlohmann
|
2018-11-23 22:11:53 +01:00
|
|
|
|
2018-05-17 17:37:34 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
NO_ARCH= yes
|
2017-03-29 02:28:19 +02:00
|
|
|
|
2018-05-17 17:37:34 +02:00
|
|
|
CMAKE_OFF= JSON_BuildTests
|
2017-03-29 02:28:19 +02:00
|
|
|
|
2018-05-17 17:37:34 +02:00
|
|
|
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
|
2017-03-29 02:28:19 +02:00
|
|
|
|
2018-05-17 17:37:34 +02:00
|
|
|
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
|
2017-03-29 02:28:19 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|