ports/devel/cppcheck/files/patch-Makefile
Gabor Pali 12f0981a82 Cppcheck is a tool for static C/C++ code analysis, and it tries to
detect bugs that your compiler do not see.  Checks for: memory leaks,
mismatching allocation-deallocation, buffer overrun, and many more.

Cppcheck is versatile.  You can check non-standard code that includes
various compiler extensions, inline assembly code, etc.

The goal is no false positives.

WWW: http://sourceforge.net/projects/cppcheck

Approved by:	tabthorpe
2009-03-06 19:53:54 +00:00

15 lines
446 B
Text

--- Makefile.orig 2009-03-02 20:22:53.000000000 +0100
+++ Makefile 2009-03-03 22:49:59.000000000 +0100
@@ -92,6 +92,12 @@
clean:
rm -f src/*.o test/*.o testrunner cppcheck tools/dmake tools/errmsg
+DB2MAN= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl
+XP= xsltproc -''-nonet -''-param man.charmap.use.subset "0"
+
+cppcheck.1: man/cppcheck.1.xml
+ $(XP) $(DB2MAN) $<
+
install: cppcheck
install -d ${BIN}
install cppcheck ${BIN}