mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
cppcheck: bump version.
This commit is contained in:
71
dev-util/cppcheck/cppcheck-1.87.recipe
Normal file
71
dev-util/cppcheck/cppcheck-1.87.recipe
Normal file
@@ -0,0 +1,71 @@
|
||||
SUMMARY="A static analysis tool for C/C++ code"
|
||||
DESCRIPTION="Cppcheck provides unique code analysis to detect bugs and focuses on \
|
||||
detecting undefined behaviour and dangerous coding constructs. The goal is \
|
||||
to detect only real errors in the code (i.e. have very few false positives).
|
||||
|
||||
Features:
|
||||
* Unique code analysis that detect various kinds of bugs in your code.
|
||||
* Both command line interface and graphical user interface are available.
|
||||
* Cppcheck has a strong focus on detecting undefined behaviour."
|
||||
HOMEPAGE="http://cppcheck.sourceforge.net/"
|
||||
COPYRIGHT="2007-2018 Cppcheck team"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/danmar/cppcheck/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="ea7ac1cd2f5c00ecffd596fd0f7281cba44308e565a634fae02b77ecd927c153"
|
||||
SOURCE_FILENAME="cppcheck-$portVersion.tar.gz"
|
||||
PATCHES="cppcheck-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
cppcheck$secondaryArchSuffix = $portVersion
|
||||
cmd:cppcheck$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libpcre$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libpcre$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
defineDebugInfoPackage cppcheck$secondaryArchSuffix \
|
||||
$binDir/cppcheck
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. \
|
||||
-DUSE_CLANG=OFF \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DBUILD_TESTS=ON \
|
||||
-DHAVE_RULES=ON \
|
||||
-DCFGDIR=$settingsDir/cppcheck \
|
||||
$cmakeDirArgs
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd build
|
||||
make test
|
||||
}
|
||||
Reference in New Issue
Block a user