mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
96 lines
2.4 KiB
Bash
96 lines
2.4 KiB
Bash
SUMMARY="A Qt6 library to write cross-platform clients for Matrix"
|
|
DESCRIPTION="The Quotient project aims to produce a Qt6-based SDK to develop \
|
|
applications for Matrix.
|
|
libQuotient is a library that enables client applications.
|
|
It is the backbone of Quaternion, NeoChat and other projects.
|
|
Versions 0.5.x and older use the previous name - libQMatrixClient."
|
|
HOMEPAGE="https://github.com/quotient-im/libQuotient"
|
|
COPYRIGHT="Quotient contributors"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/quotient-im/libQuotient/archive/refs/tags/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="5dc75f1e4e23c8aac445a0e31d354adf97af456e29d27c032d4d467d4664ca06"
|
|
SOURCE_DIR="libQuotient-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%.*}"
|
|
|
|
PROVIDES="
|
|
libquotient_qt6$secondaryArchSuffix = $portVersion
|
|
cmd:quotest
|
|
lib:libQuotientQt6$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcrypto$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libolm$secondaryArchSuffix
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
lib:libQt6Gui$secondaryArchSuffix
|
|
lib:libQt6Keychain$secondaryArchSuffix
|
|
lib:libQt6Multimedia$secondaryArchSuffix
|
|
lib:libQt6Network$secondaryArchSuffix
|
|
"
|
|
REPLACES="
|
|
libquotient0.9_qt6$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libquotient_qt6${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libQuotientQt6$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libquotient_qt6$secondaryArchSuffix == $portVersion base
|
|
devel:libolm$secondaryArchSuffix
|
|
devel:libQt6Keychain$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libolm$secondaryArchSuffix
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Keychain$secondaryArchSuffix
|
|
devel:libssl$secondaryArchSuffix >= 3
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DBUILD_TESTING=ON
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
# get rid of dataDir with Android.mk
|
|
rm -rf $dataDir
|
|
|
|
prepareInstalledDevelLib \
|
|
libQuotientQt6
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
# 88% tests passed, 1 tests failed out of 8
|
|
ctest --test-dir build --output-on-failure
|
|
}
|