summaryrefslogtreecommitdiffstats
path: root/devel/covtool/Makefile
blob: dc467f78617d2b530bec2067253bd8f3ac1e7534 (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
# Created by: novator24 <novator24@gmail.com>
# $FreeBSD$

PORTNAME=	covtool
PORTVERSION=	2.1
PORTREVISION=	2
CATEGORIES=	devel
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/rel_2.0

MAINTAINER=	novator24@gmail.com
COMMENT=	C++ test coverage analyzer

WRKSRC=	        ${WRKDIR}
USES=		gmake zip
USE_GCC=	yes
MAKEFILE=	makefile

MAN1=		cov++.1 \
		covannotate.1 \
		covmerge.1 \
		covtool.1 \
		gen_html.1

NO_STAGE=	yes
post-patch:
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
		-e 's|%%PORTNAME%%|${PORTNAME}|g' ${WRKSRC}/cov++
	@${REINPLACE_CMD} 's|%%CXXFLAGS%%|${CXXFLAGS}|g' \
		${WRKSRC}/rules.FreeBSD

post-install:
	@${INSTALL_MAN} ${MAN1:S,^,${WRKSRC}/man/man1/,} \
		${MANPREFIX}/man/man1/
	@${INSTALL_DATA} ${WRKSRC}/cov++.cfg ${PREFIX}/etc/cov++.cfg.sample
	@if [ ! -f ${PREFIX}/etc/cov++.cfg ]; then \
		${CP} -p ${PREFIX}/etc/cov++.cfg.sample ${PREFIX}/etc/cov++.cfg ; \
	fi

.include <bsd.port.mk>
OpenPOWER on IntegriCloud