/
libgcrypt-1.7.6.recipe
85 lines (74 loc) · 1.94 KB
/
libgcrypt-1.7.6.recipe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
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="626aafee84af9d2ce253d2c143dc1c0902dda045780cc241f39970fc60be05bc"
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.6 compat >= 20
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libgpg_error$secondaryArchSuffix
"
PROVIDES_devel="
libgcrypt${secondaryArchSuffix}_devel = $portVersion compat >= 1.6
devel:libgcrypt$secondaryArchSuffix = 20.1.6 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
}