mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
spdlog: add recipe for version 1.4.2
This commit is contained in:
90
dev-libs/spdlog/spdlog-1.4.2.recipe
Normal file
90
dev-libs/spdlog/spdlog-1.4.2.recipe
Normal file
@@ -0,0 +1,90 @@
|
||||
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="1998-2000 Thai Open Source Software Center Ltd and Clark Cooper
|
||||
2001-2018 Expat maintainers."
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/gabime/spdlog/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="821c85b120ad15d87ca2bc44185fa9091409777c756029125a02f81354072157"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
|
||||
PROVIDES="
|
||||
spdlog$secondaryArchSuffix = $portVersion
|
||||
lib:libspdlog$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
spdlog${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libspdlog$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
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
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd build
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user