mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 23:30:04 +02:00
68 lines
1.9 KiB
Bash
68 lines
1.9 KiB
Bash
SUMMARY="A web-based code browser for your C/C++ projects"
|
|
DESCRIPTION="This is the generator for Code Browser, formerly created and maintained by Woboq \
|
|
https://woboq.com/.
|
|
KDAB https://kdab.com wants to thank Woboq to have made available such a great tool to the \
|
|
community in the first place. See https://codebrowser.dev/ for an example."
|
|
HOMEPAGE="https://github.com/KDAB/codebrowser
|
|
http://woboq.com/codebrowser.html"
|
|
COPYRIGHT="2011 Woboq
|
|
2016 KDAB contributors"
|
|
LICENSE="CC-BY-SA-3.0"
|
|
REVISION="1"
|
|
srcGitRev="9c819d5072dba9ba8eb07646d712b46229f7ecb5"
|
|
SOURCE_URI="https://github.com/KDAB/codebrowser/archive/$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="6e0e067eba4bbdde612d96bc316149093b004873beaaadf75000add551bcc372"
|
|
SOURCE_DIR="codebrowser-$srcGitRev"
|
|
|
|
ARCHITECTURES="?all x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
woboq_codebrowser$secondaryArchSuffix = $portVersion
|
|
cmd:codebrowser_generator$commandSuffix = $portVersion
|
|
cmd:codebrowser_indexgenerator$commandSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libclang$secondaryArchSuffix
|
|
lib:libLLVM$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libLLVM_20$secondaryArchSuffix
|
|
devel:libomp$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
defineDebugInfoPackage woboq_codebrowser$secondaryArchSuffix \
|
|
$commandBinDir/codebrowser_generator \
|
|
$commandBinDir/codebrowser_indexgenerator
|
|
|
|
BUILD()
|
|
{
|
|
cmake -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
$cmakeDirArgs \
|
|
-DCMAKE_INSTALL_BINDIR=$commandBinDir
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
}
|