mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
* put $libDir into devel package * remove unsupported x86_gcc2 arch Spotted by korli, thanks!
92 lines
1.7 KiB
Bash
92 lines
1.7 KiB
Bash
SUMMARY="Very fast, header-only/compiled, C++ logging library"
|
||
DESCRIPTION="The description is really “in a nut”:
|
||
|
||
Very fast, header only, C++ logging library.
|
||
|
||
Install: Just copy the files to your build tree and use a C++11 compiler
|
||
|
||
Features:
|
||
|
||
* Very fast – performance is the primary goal (see becnhmarks below)
|
||
* Headers only
|
||
* No dependencies
|
||
* Cross platform - Linux / Windows on 32/64 bits
|
||
* Mult/Single threaded loggers
|
||
* Rotating log files
|
||
* Daily log files
|
||
* Console logging
|
||
* Optional async logging
|
||
* Logging levels
|
||
* Custom formatting with user defined patterns"
|
||
COPYRIGHT="Gabi Melman"
|
||
HOMEPAGE="https://github.com/gabime/spdlog"
|
||
LICENSE="MIT"
|
||
REVISION="2"
|
||
SOURCE_URI="https://github.com/gabime/spdlog/archive/v$portVersion.tar.gz"
|
||
CHECKSUM_SHA256="821c85b120ad15d87ca2bc44185fa9091409777c756029125a02f81354072157"
|
||
|
||
ARCHITECTURES="x86 x86_64"
|
||
SECONDARY_ARCHITECTURES="x86"
|
||
|
||
|
||
PROVIDES="
|
||
spdlog$secondaryArchSuffix = $portVersion compat >= 1
|
||
lib:libspdlog$secondaryArchSuffix = $portVersion compat >= 1
|
||
"
|
||
|
||
REQUIRES="
|
||
haiku$secondaryArchSuffix
|
||
"
|
||
|
||
PROVIDES_devel="
|
||
spdlog${secondaryArchSuffix}_devel = $portVersion compat >= 1
|
||
devel:libspdlog$secondaryArchSuffix = $portVersion compat >= 1
|
||
"
|
||
REQUIRES_devel="
|
||
spdlog$secondaryArchSuffix == $portVersion
|
||
"
|
||
|
||
BUILD_REQUIRES="
|
||
haiku${secondaryArchSuffix}_devel
|
||
"
|
||
BUILD_PREREQUIRES="
|
||
cmd:cmake
|
||
cmd:gcc$secondaryArchSuffix
|
||
cmd:ld$secondaryArchSuffix
|
||
cmd:make
|
||
"
|
||
|
||
BUILD()
|
||
{
|
||
mkdir -p build
|
||
cd build
|
||
|
||
cmake .. $cmakeDirArgs \
|
||
-DSPDLOG_BUILD_BENCH=no \
|
||
-DSPDLOG_BUILD_TESTS=no
|
||
|
||
make $jobArgs
|
||
}
|
||
|
||
INSTALL()
|
||
{
|
||
cd build
|
||
make install
|
||
|
||
|
||
# prepare develop/lib
|
||
prepareInstalledDevelLib libspdlog
|
||
fixPkgconfig
|
||
|
||
# devel package
|
||
packageEntries devel \
|
||
$developDir \
|
||
$libDir
|
||
}
|
||
|
||
TEST()
|
||
{
|
||
cd build
|
||
make check
|
||
}
|