Files
haikuports/net-libs/libotr/libotr-4.1.0.recipe
Jerome Duval f9d8797279 libotr: disable fPIE, stack protector.
* enable x86_64.
* remove libtool file.
* fix provide versioning.
* remove x86_gcc2 secondary arch.
2017-01-29 12:43:00 +01:00

84 lines
2.2 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="4fdb891940ec89d300190a98f69a9138248dcb8c8d337633fb981b8d0a9cd930"
ARCHITECTURES="x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
libotr$secondaryArchSuffix = $portVersion
lib:libotr$secondaryArchSuffix = 5.1.0 compat >= 5
cmd:otr_mackey$secondaryArchSuffix
cmd:otr_modify$secondaryArchSuffix
cmd:otr_parse$secondaryArchSuffix
cmd:otr_readforge$secondaryArchSuffix
cmd:otr_remac$secondaryArchSuffix
cmd:otr_sesskeys$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libgcrypt$secondaryArchSuffix
lib:libgpg_error$secondaryArchSuffix
"
PROVIDES_devel="
libotr${secondaryArchSuffix}_devel = $portVersion
devel:libotr$secondaryArchSuffix = 5.1.0 compat >= 5
"
REQUIRES_devel="
libotr$secondaryArchSuffix == $portVersion base
"
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 ./configure
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libotr.la
prepareInstalledDevelLibs libotr
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}