From fcf7ff4890f122f4747677829c93d372a83b4ff6 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Sat, 15 May 2021 18:54:18 +0200 Subject: [PATCH] libquotient, new recipe (#5917) Authored-by: Pascal Abresch (nephele) --- net-libs/libquotient/libquotient-0.6.6.recipe | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 net-libs/libquotient/libquotient-0.6.6.recipe diff --git a/net-libs/libquotient/libquotient-0.6.6.recipe b/net-libs/libquotient/libquotient-0.6.6.recipe new file mode 100644 index 000000000..0ebccb359 --- /dev/null +++ b/net-libs/libquotient/libquotient-0.6.6.recipe @@ -0,0 +1,74 @@ +SUMMARY="Short description of ProjectX" +DESCRIPTION="The Quotient project aims to produce a Qt5-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="33d3da5a7045bbe2611dd73104279986dd8356b24de339dd10874c1a9417bba7" +SOURCE_DIR="libQuotient-$portVersion" + +ARCHITECTURES="!x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +libVersion="$portVersion" +libVersionCompat="$libVersion compat >= ${libVersion%.*}" + +PROVIDES=" + libquotient$secondaryArchSuffix = $portVersion + lib:libQuotient$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libQt5Core$secondaryArchSuffix + lib:libQt5Gui$secondaryArchSuffix + lib:libQt5Multimedia$secondaryArchSuffix + lib:libQt5Network$secondaryArchSuffix + " + +PROVIDES_devel=" + libquotient${secondaryArchSuffix}_devel = $portVersion + devel:libQuotient$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + libquotient$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libQt5Core$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:gcc$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + cmake $cmakeDirArgs \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_SHARED_LIBS=ON \ + -DQuotient_INSTALL_TESTS=OFF -L + cmake --build . --target all +} + +INSTALL() +{ + cmake --install . + + # get rid of share dir with Android.mk + rm -rf $prefix/share + + prepareInstalledDevelLib \ + libQuotient + fixPkgconfig + + packageEntries devel \ + $developDir \ + $libDir/cmake +}