openbsd-ports/devel/cppcheck/Makefile
jasper e76cc5d9e7 import cppcheck 1.44
Cppcheck is an analysis tool for C/C++ code. Unlike C/C++ compilers and
many other analysis tools, we don't detect syntax errors. Cppcheck only
detects the types of bugs that the compilers normally fail to detect.
The goal is no false positives.

from igor zinovik, with tweaks by me
ok aja@
2010-09-23 09:34:51 +00:00

42 lines
942 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2010/09/23 09:34:51 jasper Exp $
COMMENT= C/C++ static checker
DISTNAME= cppcheck-1.44
CATEGORIES= devel
HOMEPAGE= http://cppcheck.sourceforge.net/
MAINTAINER= Igor Zinovik <zinovik.igor@gmail.com>
# GPLv3
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c m stdc++
BUILD_DEPENDS= ::textproc/docbook-xsl \
::textproc/libxslt
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cppcheck/}
ALL_TARGET= cppcheck
MAKE_FLAGS= BIN=${PREFIX}/bin CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
NO_REGRESS= Yes
post-build:
cd ${WRKSRC} && \
${PREFIX}/bin/xsltproc --novalid --nonet --param man.charmap.use.subset "0" \
${PREFIX}/share/xsl/docbook/manpages/docbook.xsl \
${WRKSRC}/man/cppcheck.1.xml
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cppcheck ${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/cppcheck.1 ${PREFIX}/man/man1/
.include <bsd.port.mk>