freebsd-ports/devel/nlohmann-json/Makefile
Gerald Pfeifer e59c88cece Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 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, c++11-lib, c++11-lang,
   c++14-lang, c++0x, c11, or gcc-c++11-lib.

PR:		219275
2017-09-10 20:55:38 +00:00

39 lines
889 B
Makefile

# Created by: Viacheslav Mikerov <SlavaMikerov@gmail.com>
# $FreeBSD$
PORTNAME= json
PORTVERSION= 2.1.1
PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= devel
PKGNAMEPREFIX= nlohmann-
MAINTAINER= SlavaMikerov@gmail.com
COMMENT= JSON library for Modern C++
LICENSE= BSD2CLAUSE
NO_ARCH= yes
USE_GITHUB= yes
GH_ACCOUNT= nlohmann
GH_PROJECT= json
PLIST_FILES= share/cmake/Modules/nlohmann_jsonConfig.cmake \
share/cmake/Modules/nlohmann_jsonConfigVersion.cmake \
share/cmake/Modules/nlohmann_jsonTargets.cmake \
include/nlohmann/json.hpp
USES= compiler:c++11-lib cmake:outsource
OPTIONS_DEFINE= TEST
TEST_CMAKE_OFF= -DBuildTests=OFF
post-patch:
@${REINPLACE_CMD} -e \
's|set(JSON_CONFIG_DESTINATION "cmake")|set(JSON_CONFIG_DESTINATION "share/cmake/Modules")|g' \
${WRKSRC}/CMakeLists.txt
do-test-TEST-on:
@cd ${WRKDIR}/.build && ${MAKE_CMD} test
.include <bsd.port.mk>