# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
description Static analysis of C and C++ code.
long_description Cppcheck is an analysis tool for C and C++ code. Unlike \
compilers and many other analysis tools, we do not detect \
syntax errors. Cppcheck only detects the types of bugs that \
the compilers normally fail to detect. The goal is no false \
homepage http://cppcheck.sourceforge.net/
master_sites sourceforge:project/cppcheck/cppcheck/${version}
checksums rmd160 d8b2a54386bd278cd38136c23818b4a89137786b \
sha256 7164a0fc15839957c69f1cf48d714a8ea346005ef6cc413f4f6a41f173ce4c7a
depends_build port:libxslt \
build.args CXX="${configure.cxx} [get_canonical_archflags cxx]" \
HAVE_RULES=yes CFGDIR=${prefix}/share/cppcheck \
DB2MAN=${prefix}/share/xsl/docbook-xsl/manpages/docbook.xsl
destroot.args PREFIX=${prefix}
notes "If you've updated cppcheck from a previous version," \
"you may want to replace the included config files:" \
"sudo find ${prefix}/share/cppcheck -type f -name \"*.dist\" -exec bash -c 'f=\"\{\}\"; cp \"\$f\" \"\$\{f%.dist\}\"' \\;"
xinstall -m 444 ${worksrcpath}/cppcheck.1 ${destroot}${prefix}/share/man/man1
xinstall -d ${destroot}${prefix}/share/cppcheck
copy ${worksrcpath}/cfg/avr.cfg ${destroot}${prefix}/share/cppcheck/avr.cfg.dist
copy ${worksrcpath}/cfg/bsd.cfg ${destroot}${prefix}/share/cppcheck/bsd.cfg.dist
copy ${worksrcpath}/cfg/cppcheck-cfg.rng ${destroot}${prefix}/share/cppcheck/cppcheck-cfg.rng.dist
copy ${worksrcpath}/cfg/gnu.cfg ${destroot}${prefix}/share/cppcheck/gnu.cfg.dist
copy ${worksrcpath}/cfg/gtk.cfg ${destroot}${prefix}/share/cppcheck/gtk.cfg.dist
copy ${worksrcpath}/cfg/microsoft_sal.cfg ${destroot}${prefix}/share/cppcheck/microsoft_sal.cfg.dist
copy ${worksrcpath}/cfg/motif.cfg ${destroot}${prefix}/share/cppcheck/motif.cfg.dist
copy ${worksrcpath}/cfg/posix.cfg ${destroot}${prefix}/share/cppcheck/posix.cfg.dist
copy ${worksrcpath}/cfg/qt.cfg ${destroot}${prefix}/share/cppcheck/qt.cfg.dist
copy ${worksrcpath}/cfg/sdl.cfg ${destroot}${prefix}/share/cppcheck/sdl.cfg.dist
copy ${worksrcpath}/cfg/sfml.cfg ${destroot}${prefix}/share/cppcheck/sfml.cfg.dist