mtxclient: remove dependency on nlohmann_json

This commit is contained in:
Jerome Duval
2021-10-20 15:26:56 +02:00
parent 896c8d0dd1
commit 30e9f95432

View File

@@ -3,7 +3,7 @@ DESCRIPTION="mtxclient is a C++ library implementing the Matrix protocol"
HOMEPAGE="https://github.com/Nheko-Reborn/mtxclient"
COPYRIGHT="2018 Konstantinos Sideris"
LICENSE="MIT"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/Nheko-Reborn/mtxclient/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="9478d870296ebe7679c90f563cb798eb3cdd3f9c4578ceea5af75b66f456baaa"
SOURCE_FILENAME="mtxclient-v$portVersion.tar.gz"
@@ -22,12 +22,12 @@ PROVIDES="
"
REQUIRES="
haiku$secondaryArchSuffix
nlohmann_json
lib:libboost_iostreams$secondaryArchSuffix
lib:libboost_system$secondaryArchSuffix
lib:libboost_thread$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libolm$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
"
PROVIDES_devel="
@@ -40,12 +40,12 @@ REQUIRES_devel="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
nlohmann_json
devel:nlohmann_json
devel:libboost_iostreams$secondaryArchSuffix >= $boostMinimumVersion
devel:libboost_system$secondaryArchSuffix >= $boostMinimumVersion
devel:libboost_thread$secondaryArchSuffix >= $boostMinimumVersion
devel:libssl$secondaryArchSuffix
devel:libolm$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
@@ -57,16 +57,16 @@ BUILD_PREREQUIRES="
BUILD()
{
cmake $cmakeDirArgs -S. \
cmake $cmakeDirArgs -Bbuild -S. \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_LIB_TESTS=OFF \
-DBUILD_LIB_EXAMPLES=OFF
make $jobArgs
make -C build $jobArgs
}
INSTALL()
{
make install
make -C build install
prepareInstalledDevelLib libmatrix_client
fixPkgconfig