Files
haikuports/net-libs/nettle/nettle-3.3.recipe
fbrosson faf855e362 nettle: bump to 3.3, enable x86_gcc2, add tiny gcc2 patch.
* Unlike 3.2, which would not build on x86_gcc2 without a patch,
  3.3 builds fine without any patch. A tiny one is only required
  for "make check".
* Update (GNU) LICENSE: LGPL v2.1 -> GPL v2 + GPL v3 + LGPL v3.
* Switch SOURCE_URI to https.
* Add $secondaryArchSuffix to cmd:libtoolize in BUILD_PREREQUIRES.
* Drop PATCH(), previously used to skip -lm and add -lroot.
* Drop unneeded calls to libtoolize and autoconf.
* Add TEST() with "make check" (and an appropriate LIBRARY_PATH.)
  All tests are OK, except for the Camellia cipher on x86_gcc2.
2017-01-27 12:46:47 +00:00

88 lines
1.9 KiB
Bash

SUMMARY="Low-level cryptographic library"
DESCRIPTION="Nettle is a cryptographic library that is designed to fit easily \
in more or less any context: In crypto toolkits for object-oriented languages \
(C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel \
space."
HOMEPAGE="https://www.lysator.liu.se/~nisse/nettle/"
COPYRIGHT="2001-2016 Niels Möller"
LICENSE="GNU GPL v2
GNU GPL v3
GNU LGPL v3"
REVISION="1"
SOURCE_URI="https://ftp.gnu.org/gnu/nettle/nettle-$portVersion.tar.gz"
CHECKSUM_SHA256="46942627d5d0ca11720fec18d81fc38f7ef837ea4197c1f630e71ce0d470b11e"
PATCHES="nettle-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
nettle$secondaryArchSuffix = $portVersion
lib:libnettle$secondaryArchSuffix = 6.3 compat >= 6
lib:libhogweed$secondaryArchSuffix = 4.3 compat >= 4
"
if [ -z "$secondaryArchSuffix" ]; then
PROVIDES="$PROVIDES
cmd:nettle_hash
cmd:nettle_lfib_stream
cmd:nettle_pbkdf2
cmd:pkcs1_conv
cmd:sexp_conv
"
fi
REQUIRES="
haiku$secondaryArchSuffix
lib:libgmp$secondaryArchSuffix
"
PROVIDES_devel="
nettle${secondaryArchSuffix}_devel = $portVersion
devel:libnettle$secondaryArchSuffix = 6.3 compat >= 6
devel:libhogweed$secondaryArchSuffix = 4.3 compat >= 4
"
REQUIRES_devel="
nettle$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libgmp$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:automake
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libnettle libhogweed
fixPkgconfig
packageEntries devel $developDir
if [ -n "$secondaryArchSuffix" ]; then
rm -rf $binDir
rm -rf $documentationDir
fi
}
TEST()
{
LIBRARY_PATH="$sourceDir/.lib:$LIBRARY_PATH" make check
}