mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 00:30:06 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
59 lines
1.4 KiB
Bash
59 lines
1.4 KiB
Bash
SUMMARY="Automatically generate compilation database for Clang tooling"
|
|
DESCRIPTION="Bear records the flags passed to the compiler for each translation unit and \
|
|
stores them in a JSON file. This file can be used by Clang's tooling interface \
|
|
and programs like clang-check to process a translation unit.\
|
|
\
|
|
cmake supports the generation of JSON compilation databases out of the box. \
|
|
For any other build system that does not support this, Bear can be used \
|
|
instead to intercept the invocation of the compiler."
|
|
HOMEPAGE="https://github.com/rizsotto/Bear"
|
|
COPYRIGHT="2012-2019 by László Nagy"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/rizsotto/Bear/archive/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="e80c0d622a8192a1ec0c0efa139e5767c6c4b1defe1c75fc99cf680c6d1816c0"
|
|
SOURCE_DIR="Bear-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2 ?x86 ?arm"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
bear$secondaryArchSuffix = $portVersion
|
|
cmd:bear = $portVersion compat >= 3
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
cmd:python2
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:python2
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake . -DCMAKE_INSTALL_PREFIX=$prefix \
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
mkdir -vp $manDir
|
|
cp -vrd $prefix/share/man/man1 $manDir
|
|
|
|
mkdir -p $dataDir
|
|
mv -v $prefix/share $dataDir
|
|
}
|