Files
haikuports/dev-libs/libsodium/libsodium-1.0.12.recipe
Calvin Hill 740c961d3d libsodium: reapply SECONDARY_ARCH suffix (#1217)
Reapplies the recently removed suffix, as libraries can
be needed for a secondary architecture.
2017-03-16 14:37:02 +01:00

71 lines
1.7 KiB
Bash

SUMMARY="A modern, easy-to-use software library for cryptographic standards"
DESCRIPTION="Sodium is a portable, cross-compilable, installable, packageable \
fork of NaCl, with a compatible API, and an extended API to improve usability \
even further.
Its goal is to provide all of the core operations needed to build higher-level \
cryptographic tools.
The design choices emphasize security, and \"magic constants\" have clear \
rationales.
Despite the emphasis on high security, primitives are faster across-the-board \
than most implementations of the NIST standards."
HOMEPAGE="https://github.com/jedisct1/libsodium"
COPYRIGHT="2013-2016 Frank Denis"
LICENSE="ISC"
REVISION="4"
SOURCE_URI="https://download.libsodium.org/libsodium/releases/libsodium-$portVersion.tar.gz"
CHECKSUM_SHA256="b8648f1bb3a54b0251cf4ffa4f0d76ded13977d4fa7517d988f4c902dd8e2f95"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
libsodium$secondaryArchSuffix = $portVersion
lib:libsodium$secondaryArchSuffix = 18.1.1 compat >= 18
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libsodium${secondaryArchSuffix}_devel = $portVersion
devel:libsodium$secondaryArchSuffix = 18.1.1 compat >= 18
"
REQUIRES_devel="
libsodium$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:automake
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
BUILD()
{
runConfigure ./configure --disable-ssp
make
}
INSTALL()
{
make install
# remove libtool file
rm -f $libDir/libsodium.la
prepareInstalledDevelLib libsodium
fixPkgconfig
packageEntries devel $developDir
}
TEST()
{
make check
}