mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-18 01:30:07 +02:00
* Dependency of nheko Matrix client * Project name is "mtxclient", libraries are libmatrix_client not in Gentoo ports, so went with library name.
69 lines
1.6 KiB
Bash
69 lines
1.6 KiB
Bash
SUMMARY="A C++ Matrix Client Library"
|
|
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"
|
|
SOURCE_URI="https://github.com/Nheko-Reborn/mtxclient/archive/v$portVersion.tar.gz"
|
|
SOURCE_DIR="mtxclient-$portVersion"
|
|
CHECKSUM_SHA256="edd2ac051cf8019579942107fd32ec67dbf3581829954b5cca07e74431b9770a"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libmatrix_client$secondaryArchSuffix = $portVersion
|
|
lib:libmatrix_client$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
boost170$secondaryArchSuffix
|
|
nlohmann_json
|
|
lib:libssl$secondaryArchSuffix
|
|
lib:libolm$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libmatrix_client${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libmatrix_client$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libmatrix_client$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
boost170_devel$secondaryArchSuffix
|
|
nlohmann_json
|
|
devel:libssl$secondaryArchSuffix
|
|
devel:libolm$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:cmake
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake $cmakeDirArgs -S. -DBUILD_LIB_TESTS=OFF -DBUILD_LIB_EXAMPLES=OFF
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLib libmatrix_client
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
"$developDir"
|
|
}
|