Files
haikuports/dev-libs/spdlog/spdlog-1.4.2.recipe
Sergei Reznikov 54e49bcc26 spdlog: add missing compat strings
* put $libDir into devel package
* remove unsupported x86_gcc2 arch

Spotted by korli, thanks!
2019-10-31 13:39:11 +03:00

92 lines
1.7 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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
}