mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
72 lines
1.7 KiB
Bash
72 lines
1.7 KiB
Bash
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="dc17ecf2f6bacbee32141fe7713747de9026bbb36207bfad2d73a5185c6b14a3"
|
|
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
|
|
}
|