Files
haikuports/dev-libs/libsodium/libsodium-1.0.11.recipe
fbrosson 237454c766 libsodium: add "compat >= 18" for {lib,devel}:libsodium. Thx @korli!
While at it, sort items in BUILD_PREREQUIRES.
2016-11-30 13:44:24 +00:00

72 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="a14549db3c49f6ae2170cbbf4664bd48ace50681045e8dbea7c8d9fb96f9c765"
PATCHES="libsodium-$portVersion.patchset"
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
}