aboutsummaryrefslogtreecommitdiff
path: root/devel/nlohmann-json/Makefile
blob: cd3b56a36c9df3b943109f08fc721007856106d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
PORTNAME=	json
DISTVERSIONPREFIX=	v
DISTVERSION=	3.12.0
PORTREVISION=	1
CATEGORIES=	devel
PKGNAMEPREFIX=	nlohmann-

# https://github.com/nlohmann/json/pull/4736 fix for missing char8_t support
PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${PORTNAME}/commit/
PATCHFILES=	34868f90149de02432ea758a29227a6ad74f098c.patch:-p1

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	JSON library for Modern C++
WWW=		https://nlohmann.github.io/json/ \
		https://github.com/nlohmann/json

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE.MIT

USES=		cmake:testing compiler:c++11-lib
USE_GITHUB=	yes
GH_ACCOUNT=	nlohmann

NO_BUILD=	yes
NO_ARCH=	yes

CMAKE_ON=	JSON_MultipleHeaders
CMAKE_OFF=	JSON_BuildTests
CMAKE_TESTING_ON=	JSON_BuildTests

# tests as of 3.12.0: 96% tests passed, 4 tests failed out of 101 (4 cmake_fetch_content* tests fail, https://github.com/nlohmann/json/issues/2951)

.include <bsd.port.mk>