mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 22:00:09 +02:00
86 lines
1.9 KiB
Bash
86 lines
1.9 KiB
Bash
SUMMARY="GNU's basic cryptographic library"
|
|
DESCRIPTION="Libgcrypt is a general purpose crypto library based on the code \
|
|
used in GnuPG."
|
|
HOMEPAGE="https://gnupg.org/related_software/libgcrypt/"
|
|
COPYRIGHT="2000-2017 Free Software Foundation, Inc."
|
|
LICENSE="GNU LGPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="7a2875f8b1ae0301732e878c0cca2c9664ff09ef71408f085c50e332656a78b3"
|
|
PATCHES="libgcrypt-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
libgcrypt$secondaryArchSuffix = $portVersion compat >= 1.6
|
|
lib:libgcrypt$secondaryArchSuffix = 20.2.1 compat >= 20
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgpg_error$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libgcrypt${secondaryArchSuffix}_devel = $portVersion compat >= 1.6
|
|
devel:libgcrypt$secondaryArchSuffix = 20.2.1 compat >= 20
|
|
cmd:dumpsexp$secondaryArchSuffix = $portVersion compat >= 1.6
|
|
cmd:libgcrypt_config$secondaryArchSuffix = $portVersion compat >= 1.6
|
|
cmd:hmac256$secondaryArchSuffix = $portVersion compat >= 1.6
|
|
cmd:mpicalc$secondaryArchSuffix = 2.0
|
|
"
|
|
REQUIRES_devel="
|
|
libgcrypt$secondaryArchSuffix == $portVersion base
|
|
haiku$secondaryArchSuffix
|
|
lib:libgpg_error$secondaryArchSuffix
|
|
devel:libgpg_error$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libgpg_error$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:autoconf
|
|
cmd:make
|
|
cmd:gcc$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoconf
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
#remove libtool file
|
|
rm -f $libDir/libgcrypt.la
|
|
|
|
prepareInstalledDevelLib libgcrypt
|
|
|
|
if [ -z "$secondaryArchSuffix" ]; then
|
|
maybe_infoDir=$infoDir
|
|
maybe_manDir=$manDir
|
|
else
|
|
maybe_infoDir=
|
|
maybe_manDir=
|
|
rm -rf $documentationDir
|
|
fi
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$binDir \
|
|
$dataDir \
|
|
$maybe_infoDir \
|
|
$maybe_manDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|