mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
olm, bump version, move to dev-libs (#11495)
This commit is contained in:
@@ -1,79 +0,0 @@
|
||||
SUMMARY="Implementation of the olm and megolm cryptographic ratchets"
|
||||
DESCRIPTION="An implementation of the Double Ratchet cryptographic ratchet, \
|
||||
written in C and C++11 and exposed as a C API.
|
||||
This library also includes an implementation of the Megolm cryptographic
|
||||
ratchet."
|
||||
HOMEPAGE="https://gitlab.matrix.org/matrix-org/olm"
|
||||
COPYRIGHT="2015-2016 OpenMarket Ltd.
|
||||
2018-2019 New Vector Ltd."
|
||||
LICENSE="Apache v2"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://gitlab.matrix.org/matrix-org/olm/-/archive/$portVersion/olm-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="b16e776f1b751744ab4942a5e2e5db418f5c912f7c429fae37d8444c7191a1f7"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
||||
|
||||
libVersion="3.2.7"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
olm$secondaryArchSuffix = $portVersion
|
||||
lib:libolm$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
olm${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libolm$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
olm$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
defineDebugInfoPackage olm$secondaryArchSuffix \
|
||||
"$libDir"/libolm.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p haiku_build && cd "$_"
|
||||
|
||||
# Test fals to build, complains about fPIC
|
||||
cmake .. \
|
||||
-DOLM_TESTS=OFF \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
$cmakeDirArgs
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd haiku_build
|
||||
make install
|
||||
|
||||
rm -f "$libDir"/libolm.la
|
||||
|
||||
prepareInstalledDevelLib libolm
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
"$developDir" \
|
||||
"$libDir"/cmake
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make test
|
||||
}
|
||||
Reference in New Issue
Block a user