Right now this is a noop in the former case and a noop in the latter case unless lang/gcc44 has been installed explicitly. This puts a bit more emphasis on standardizing on a canonical version "current" GCC and makes it easier to update that canonical version by changing the default in Mk/bsd.gcc.mk and updating the lang/gcc port. That is, USE_GCC=yes means "use a decent/modern version of GCC" without having to worry about details. Approved by: portmgr (bdrewery)
38 lines
894 B
Makefile
38 lines
894 B
Makefile
# Created by: novator24 <novator24@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= covtool
|
|
PORTVERSION= 2.1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/rel_2.0
|
|
|
|
MAINTAINER= novator24@gmail.com
|
|
COMMENT= C++ test coverage analyzer
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
USE_ZIP= yes
|
|
USE_GCC= yes
|
|
USE_GMAKE= yes
|
|
MAKEFILE= makefile
|
|
|
|
MAN1= cov++.1 \
|
|
covannotate.1 \
|
|
covmerge.1 \
|
|
covtool.1 \
|
|
gen_html.1
|
|
|
|
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>
|