mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 15:20:07 +02:00
41 lines
970 B
Bash
41 lines
970 B
Bash
SUMMARY="JSON for Modern C++"
|
|
DESCRIPTION="One-header JSON library with intuitive syntax."
|
|
HOMEPAGE="https://github.com/nlohmann/json"
|
|
COPYRIGHT="2013-2025 Niels Lohmann"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="http://github.com/nlohmann/json/archive/v$portVersion/json-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="4b92eb0c06d10683f7447ce9406cb97cd4b453be18d7279320f7b2f025c10187"
|
|
SOURCE_FILENAME="nlohmann-json.v$portVersion.tar.gz"
|
|
SOURCE_DIR="json-$portVersion"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
nlohmann_json = $portVersion
|
|
devel:nlohmann_json = $portVersion
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
sed -i -e "s|:include>|:${relativeIncludeDir}>|" \
|
|
-e "s/CMAKE_INSTALL_LIBDIR/CMAKE_INSTALL_DATADIR/g" CMakeLists.txt
|
|
cmake -B build -S . $cmakeDirArgs \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_CXX_COMPILER=/bin/true \
|
|
-Wno-dev \
|
|
-DJSON_MultipleHeaders=ON \
|
|
-DJSON_BuildTests=OFF
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
}
|