aboutsummaryrefslogtreecommitdiff
path: root/devel/cppcheck/Makefile
blob: efea4862f7531686f442b770ee86abc3dcc207e9 (plain) (blame)
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
# New ports collection makefile for:	cppcheck
# Date created:		March 3, 2009
# Whom:	      		Gabor Pali <pgj@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	cppcheck
PORTVERSION=	1.30
CATEGORIES=	devel
MASTER_SITES=	SF

MAINTAINER=	pgj@FreeBSD.org
COMMENT=	Static analysis of C/C++ code

BUILD_DEPENDS=	xsltproc:${PORTSDIR}/textproc/libxslt \
		${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl

MANCOMPRESSED=	no
MAN1=		cppcheck.1

USE_GMAKE=	yes
ALL_TARGET=	cppcheck cppcheck.1

PLIST_FILES=	bin/cppcheck

post-patch:
	@${REINPLACE_CMD} -e 's|CXXFLAGS=|CXXFLAGS= ${CXXFLAGS} |' \
		${WRKSRC}/Makefile

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/cppcheck ${PREFIX}/bin
	@${INSTALL_MAN} ${WRKSRC}/cppcheck.1 ${PREFIX}/man/man1

.include <bsd.port.mk>