aboutsummaryrefslogtreecommitdiff
path: root/devel/catch2/Makefile
blob: cafb9a5716a6d150b89e529faae2d1491714a3ee (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
PORTNAME=	catch2 # 2.x series is under devel/catch, the project is called catch2
DISTVERSIONPREFIX=	v
DISTVERSION=	3.2.1
CATEGORIES=	devel

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Test framework for C++ (3.x series)
WWW=		https://github.com/catchorg/Catch2

LICENSE=	BSL
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

USES=		cmake:testing compiler:c++14-lang pathfix python:build,test
USE_GITHUB=	yes
GH_ACCOUNT=	catchorg
GH_PROJECT=	Catch2

CMAKE_ARGS=	-DCMAKE_INSTALL_DOCDIR=${DOCSDIR} \
		-DPython3_EXECUTABLE=${PYTHON_CMD}
CMAKE_ON=	BUILD_SHARED_LIBS
CMAKE_TESTING_ON=	CATCH_DEVELOPMENT_BUILD BUILD_TESTING CATCH_BUILD_TESTING # 1 test fails, see https://github.com/catchorg/Catch2/issues/2606

PORTDOCS=	*

OPTIONS_DEFINE=	DOCS

CONFLICTS=	catch

.include <bsd.port.mk>