mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
112 lines
2.8 KiB
Bash
112 lines
2.8 KiB
Bash
SUMMARY="The Off-the-Record Messaging library"
|
|
DESCRIPTION="Off-the-Record (OTR) Messaging allows you to have private \
|
|
conversations over instant messaging by providing:
|
|
|
|
* Encryption
|
|
No one else can read your instant messages.
|
|
* Authentication
|
|
You are assured the correspondent is who you think it is.
|
|
* Deniability
|
|
The messages you send do not have digital signatures that are checkable by a \
|
|
third party. Anyone can forge messages after a conversation to make them look \
|
|
like they came from you. However, during a conversation, your correspondent is \
|
|
assured the messages he sees are authentic and unmodified.
|
|
* Perfect forward secrecy
|
|
If you lose control of your private keys, no previous conversation is \
|
|
compromised."
|
|
HOMEPAGE="https://otr.cypherpunks.ca/"
|
|
COPYRIGHT="2004-2015, The OTR Development Team"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="2"
|
|
SOURCE_URI="https://otr.cypherpunks.ca/libotr-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="8b3b182424251067a952fb4e6c7b95a21e644fbb27fbd5f8af2b2ed87ca419f5"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandBinDir=$binDir
|
|
commandSuffix=$secondaryArchSuffix
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="5.1.1"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libotr$secondaryArchSuffix = $portVersion
|
|
lib:libotr$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgcrypt$secondaryArchSuffix
|
|
lib:libgpg_error$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libotr${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libotr$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libotr$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
PROVIDES_tools="
|
|
libotr${secondaryArchSuffix}_tools = $portVersion
|
|
cmd:otr_mackey$commandSuffix
|
|
cmd:otr_modify$commandSuffix
|
|
cmd:otr_parse$commandSuffix
|
|
cmd:otr_readforge$commandSuffix
|
|
cmd:otr_remac$commandSuffix
|
|
cmd:otr_sesskeys$commandSuffix
|
|
"
|
|
REQUIRES_tools="
|
|
libotr$secondaryArchSuffix == $portVersion base
|
|
haiku$secondaryArchSuffix
|
|
lib:libgcrypt$secondaryArchSuffix
|
|
lib:libgpg_error$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libgcrypt$secondaryArchSuffix
|
|
devel:libgpg_error$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
otr_cv_cflags__fPIE=no otr_cv_cflags__fstack_protector_all=no \
|
|
runConfigure --omit-dirs binDir ./configure \
|
|
--bindir=$commandBinDir \
|
|
--disable-static
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/libotr.la
|
|
|
|
prepareInstalledDevelLib libotr
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir \
|
|
$dataDir
|
|
|
|
# tools package
|
|
packageEntries tools \
|
|
$commandBinDir \
|
|
$manDir
|
|
}
|