Files
haikuports/dev-libs/libsodium/libsodium-1.0.15.recipe
Jerome Duval 7148bec07f libsodium: bump version.
* SONAME CHANGE!!
2017-10-20 17:24:07 +02: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-2017 Frank Denis"
LICENSE="ISC"
REVISION="1"
SOURCE_URI="https://download.libsodium.org/libsodium/releases/libsodium-$portVersion.tar.gz"
CHECKSUM_SHA256="fb6a9e879a2f674592e4328c5d9f79f082405ee4bb05cb6e679b90afe9e178f4"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
libsodium$secondaryArchSuffix = $portVersion
lib:libsodium$secondaryArchSuffix = 23.0.0 compat >= 23
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libsodium${secondaryArchSuffix}_devel = $portVersion
devel:libsodium$secondaryArchSuffix = 23.0.0 compat >= 23
"
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
}