From 7014e51e893d71a34518ba4d35ff5c828046cb30 Mon Sep 17 00:00:00 2001 From: Sergei Reznikov Date: Thu, 31 Oct 2019 02:10:46 +0300 Subject: [PATCH] spdlog: add recipe for version 1.4.2 --- dev-libs/spdlog/spdlog-1.4.2.recipe | 90 +++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 dev-libs/spdlog/spdlog-1.4.2.recipe diff --git a/dev-libs/spdlog/spdlog-1.4.2.recipe b/dev-libs/spdlog/spdlog-1.4.2.recipe new file mode 100644 index 000000000..3c713f4bb --- /dev/null +++ b/dev-libs/spdlog/spdlog-1.4.2.recipe @@ -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 +}