summaryrefslogtreecommitdiff
path: root/devel/catch/Makefile
blob: 77cc2f7c0d6152dc58fd2e281c29c009cc47b561 (plain)
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
34
# $NetBSD: Makefile,v 1.5 2017/01/04 13:48:02 mef Exp $

DISTNAME=	Catch-1.5.9
PKGNAME=	${DISTNAME:tl}
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_GITHUB:=philsquared/}
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/philsquared/Catch/
COMMENT=	C++-native, framework for unit-tests, TDD and BDD
LICENSE=	boost-license

EXTRACT_USING=	bsdtar

WRKSRC=		${WRKDIR}/${DISTNAME}

USE_TOOLS+=	gmake

USE_LANGUAGES=	c c++

NO_BUILD=	yes

AUTO_MKDIRS=	yes

do-install:
	${RUN} ${INSTALL_DATA} ${WRKSRC}/single_include/catch.hpp \
		${DESTDIR}${PREFIX}/include

do-test:
	${RUN} cd ${WRKSRC}/projects/SelfTest && \
		${GMAKE} -f makefile && ./CatchSelfTest

.include "../../mk/bsd.pkg.mk"