summaryrefslogtreecommitdiffstats
path: root/devel/cppunit/Makefile
blob: 32568fdaa29eb2b4863ac5e6483afb219becd104 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# New ports collection makefile for:	cppunit
# Date created:				14 Feb 2002
# Whom:					Graeme Cross <gcross@netspace.net.au>
#
# $FreeBSD$

PORTNAME=	cppunit
PORTVERSION=	1.8.0
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

.if defined(WITH_DOXYGEN)
BUILD_DEPENDS=	doxygen:${PORTSDIR}/devel/doxygen
.endif

MAINTAINER=	gcross@fastmail.fm
COMMENT=	C++ port of the JUnit framework for unit testing

HAS_CONFIGURE=	yes
.if defined(WITH_DOXYGEN) && !defined(NOPORTDOCS)
CONFIGURE_ARGS+= --enable-doc --enable-doxygen --enable-html-docs
PLIST_SUB+=	DOXYGEN=""
.else
CONFIGURE_ARGS+= --disable-doc --disable-doxygen
PLIST_SUB+=	DOXYGEN="@comment "
.endif
INSTALLS_SHLIB=	yes
.if !defined(NOMAN)
MAN1=		cppunit-config.1
.endif
MANCOMPRESSED=	no

pre-everything:
.if !defined(WITH_DOXYGEN) && !defined(NOPORTDOCS)
	@${ECHO_MSG}
	@${ECHO_MSG} You could define WITH_DOXYGEN if you want HTML documentation
	@${ECHO_MSG}
.endif

post-install:
.if !defined(NOPORTDOCS)
.if !defined(WITH_DOXYGEN)
	${MKDIR} -p ${PREFIX}/share/doc/cppunit
	${INSTALL_MAN} ${WRKSRC}/doc/FAQ ${PREFIX}/share/doc/cppunit
.endif	
	${INSTALL_MAN} ${WRKSRC}/NEWS ${PREFIX}/share/doc/cppunit  
	${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/cppunit
.endif
	
.include <bsd.port.mk>
OpenPOWER on IntegriCloud