summaryrefslogtreecommitdiff
path: root/devel/cppunit/Makefile
blob: 2a55a76777d1f2efc9fd309c24fffdac2199060e (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
35
36
37
PORTNAME=	cppunit
PORTVERSION=	1.14.0
PORTREVISION=	9
CATEGORIES=	devel
MASTER_SITES=	https://dev-www.libreoffice.org/src/

MAINTAINER=	bdrewery@FreeBSD.org
COMMENT=	C++ port of the JUnit framework for unit testing

LICENSE=	LGPL21

OPTIONS_DEFINE=	DOCS DOXYGEN

DOXYGEN_BUILD_DEPENDS=	doxygen:devel/doxygen \
			dot:graphics/graphviz
DOXYGEN_CONFIGURE_ENABLE=	dot doxygen html-docs
DOXYGEN_CONFIGURE_ON=	--htmldir="${DOCSDIR}/html"

GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip
OPTIONS_SUB=	yes
USE_LDCONFIG=	yes
USES=		libtool pathfix compiler:c++11-lang

SUB_FILES=	cppunit-config
SUB_LIST+=	DISTVERSION=${DISTVERSION}

post-install:
	${INSTALL_SCRIPT} ${WRKDIR}/cppunit-config ${STAGEDIR}${PREFIX}/bin/

post-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/FAQ ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/NEWS ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>