2010-01-18 15:17:43 +00:00
|
|
|
# Template file for 'cppcheck'
|
|
|
|
pkgname=cppcheck
|
2015-01-07 13:47:35 +00:00
|
|
|
version=1.68
|
2014-08-02 15:52:26 +00:00
|
|
|
revision=1
|
2014-07-27 14:05:16 +00:00
|
|
|
hostmakedepends="libxslt docbook-xsl git"
|
2010-01-18 15:17:43 +00:00
|
|
|
short_desc="Static analysis of C/C++ code"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-10-14 15:58:04 +00:00
|
|
|
license="GPL-2"
|
2012-09-11 06:48:17 +00:00
|
|
|
homepage="http://cppcheck.sourceforge.net"
|
2014-01-09 08:12:14 +00:00
|
|
|
|
|
|
|
do_fetch() {
|
|
|
|
git clone -b ${version} git://github.com/danmar/cppcheck ${pkgname}-${version}
|
|
|
|
}
|
|
|
|
do_build() {
|
2014-08-02 15:52:26 +00:00
|
|
|
make ${makejobs} CFGDIR=/usr/share/cppcheck/cfg
|
2014-05-11 20:55:36 +00:00
|
|
|
make ${makejobs} DB2MAN=/usr/share/xsl/docbook/manpages/docbook.xsl all man
|
2014-01-09 08:12:14 +00:00
|
|
|
}
|
|
|
|
do_install() {
|
2014-05-11 20:55:36 +00:00
|
|
|
make DESTDIR=${DESTDIR} CFGDIR=/usr/share/cppcheck/cfg install
|
2014-08-02 15:52:26 +00:00
|
|
|
vman cppcheck.1
|
|
|
|
vmkdir usr/share/${pkgname}
|
2014-05-11 20:55:36 +00:00
|
|
|
vcopy cfg/ usr/share/${pkgname}/cfg
|
2014-01-09 08:12:14 +00:00
|
|
|
}
|