Files
haikuports/dev-libs/libgcrypt/libgcrypt-1.7.3.recipe
fbrosson 0686e80dac libgcrypt: bump to 1.7.3, fix REQUIRES_devel, add TEST. (#771)
* Add lib:libgpg_error to REQUIRES_devel, as cmd:mpicalc needs it.
* Drop documentation on secondary architectures.
* Add TEST() with "make check".
2016-08-19 11:00:58 -04:00

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-2016 Free Software Foundation, Inc."
LICENSE="GNU LGPL v3"
REVISION="1"
SOURCE_URI="https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-$portVersion.tar.bz2"
CHECKSUM_SHA256="ddac6111077d0a1612247587be238c5294dd0ee4d76dc7ba783cc55fb0337071"
PATCHES="libgcrypt-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
libgcrypt$secondaryArchSuffix = $portVersion compat >= 1.6
lib:libgcrypt$secondaryArchSuffix = 20.1.3 compat >= 20
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libgpg_error$secondaryArchSuffix
"
PROVIDES_devel="
libgcrypt${secondaryArchSuffix}_devel = $portVersion compat >= 1.6
devel:libgcrypt$secondaryArchSuffix = 20.1.3 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 = $portVersion compat >= 1.6
"
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
}