blob: 3aa296b77256a3835374062fa0964f7d0b6d3fdb (
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
36
37
38
39
40
41
42
43
44
45
46
47
|
# New ports collection makefile for: cppcheck
# Date created: March 3, 2009
# Whom: Gabor Pali <pgj@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= cppcheck
PORTVERSION= 1.31
CATEGORIES= devel
MASTER_SITES= SF
MAINTAINER= pgj@FreeBSD.org
COMMENT= Static analysis of C/C++ code
USE_GMAKE= yes
USE_BZIP2= yes
PLIST_FILES= bin/cppcheck
ALL_TARGET= cppcheck
.if !defined(NO_INSTALL_MANPAGES)
BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt \
${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl
MANCOMPRESSED= no
MAN1= cppcheck.1
ALL_TARGET+= cppcheck.1
post-install:
@${INSTALL_MAN} ${WRKSRC}/cppcheck.1 ${PREFIX}/man/man1
.endif
post-patch:
@${REINPLACE_CMD} -e 's|CXXFLAGS=|CXXFLAGS= ${CXXFLAGS} | ; \
s|CXX=(.*)|CXX= ${CXX}|' \
${WRKSRC}/Makefile
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/cppcheck ${PREFIX}/bin
regression-test: build
@(cd ${BUILD_WRKSRC}; \
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} test)
.include <bsd.port.mk>
|