freebsd-ports/devel/nlohmann-json/Makefile
Michael Gmelin 37be1ecae4 Fix version string, improve package naming
Also removed PORTREVISION, as pkg version -t v2.1.1_1 2.1.1 results in "<"

Reported by:	mat
2017-04-07 18:01:06 +00:00

38 lines
873 B
Makefile

# Created by: Viacheslav Mikerov <SlavaMikerov@gmail.com>
# $FreeBSD$
PORTNAME= json
PORTVERSION= 2.1.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>