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
37 lines
944 B
Makefile
37 lines
944 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:outsource 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>
|