mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
70 lines
1.5 KiB
Bash
70 lines
1.5 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-2015 Niels Möller"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="ftp://ftp.gnu.org/gnu/nettle/nettle-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="5fd4d25d64d8ddcb85d0d897572af73b05b4d163c6cc49438a5bfbb8ff293d4c"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
nettle$secondaryArchSuffix = $portVersion
|
|
lib:libnettle$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgmp$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
nettle${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libnettle$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
nettle$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libgmp$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize
|
|
cmd:make
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
sed -i 's/-lm/-lroot/g' $sourceDir/Makefile.in
|
|
sed -i 's/-lm/-lroot/g' $sourceDir/examples/Makefile.in
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
libtoolize --force --copy --install
|
|
autoconf
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLibs libnettle
|
|
|
|
fixPkgconfig
|
|
|
|
packageEntries devel $developDir
|
|
}
|