From e314db9da9ab42c62bfa84522d889a3048c1c2d5 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Mon, 18 Oct 2021 18:11:42 +0200 Subject: [PATCH] nlohmann_json: new recipe used by bear --- .../nlohmann_json/nlohmann_json-3.10.4.recipe | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 dev-cpp/nlohmann_json/nlohmann_json-3.10.4.recipe diff --git a/dev-cpp/nlohmann_json/nlohmann_json-3.10.4.recipe b/dev-cpp/nlohmann_json/nlohmann_json-3.10.4.recipe new file mode 100644 index 000000000..3973ef2a6 --- /dev/null +++ b/dev-cpp/nlohmann_json/nlohmann_json-3.10.4.recipe @@ -0,0 +1,44 @@ +SUMMARY="JSON for Modern C++" +DESCRIPTION="Header only library" +HOMEPAGE="https://github.com/nlohmann/json" +COPYRIGHT="2013-2021 Niels Lohmann" +LICENSE="MIT" +REVISION="1" +SOURCE_URI="http://github.com/nlohmann/json/archive/v$portVersion/json-$portVersion.tar.gz" +CHECKSUM_SHA256="1155fd1a83049767360e9a120c43c578145db3204d2b309eba49fbbedd0f4ed3" +SOURCE_DIR="json-$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + nlohmann_json$secondaryArchSuffix = $portVersion + devel:nlohmann_json$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:gcc$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + sed -i -e "s|:include>|:${relativeIncludeDir}>|" CMakeLists.txt + cmake -B build -S . $cmakeDirArgs \ + -DCMAKE_BUILD_TYPE=Release + make -C build $jobArgs +} + +INSTALL() +{ + make -C build install + + fixPkgconfig +}