mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
nlohmann_json: switch to any arch
remove old recipe
This commit is contained in:
@@ -1,44 +1,40 @@
|
||||
SUMMARY="JSON for Modern C++"
|
||||
DESCRIPTION="Header only library"
|
||||
DESCRIPTION="One-header JSON library with intuitive syntax."
|
||||
HOMEPAGE="https://github.com/nlohmann/json"
|
||||
COPYRIGHT="2013-2021 Niels Lohmann"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="http://github.com/nlohmann/json/archive/v$portVersion/json-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="1155fd1a83049767360e9a120c43c578145db3204d2b309eba49fbbedd0f4ed3"
|
||||
SOURCE_FILENAME="nlohmann-json.v$portVersion.tar.gz"
|
||||
SOURCE_DIR="json-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
nlohmann_json$secondaryArchSuffix = $portVersion
|
||||
devel:nlohmann_json$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
nlohmann_json = $portVersion
|
||||
devel:nlohmann_json = $portVersion
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
sed -i -e "s|:include>|:${relativeIncludeDir}>|" CMakeLists.txt
|
||||
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_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
|
||||
|
||||
fixPkgconfig
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user