blob: 81f5c108a3624b521305125f7ed78e660bf8f774 (
plain)
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
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
class Recipe(recipe.Recipe):
name = 'libgcrypt'
version = '1.6.0'
# TODO: check license - some source files are LGPLv2+, others LGPLv2.1+
# and COPYING.LIB is GPLv2.1
licenses = [License.LGPLv2_1Plus]
stype = SourceType.TARBALL
url = 'ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%(version)s.tar.bz2'
autoreconf = True
configure_options = ' --enable-static --enable-shared --with-gpg-error-prefix=$CERBERO_PREFIX'
patches = ['0001-Add-missing-file-in-distribution-tarball.patch', '0002-add-other-missing-file.patch', '0003-rndhw-Don-t-use-__LP64__-it-does-not-work-on-Windows.patch']
deps = ['libgpg-error']
files_libs = ['libgcrypt']
files_devel = ['include/gcrypt.h', 'bin/libgcrypt-config']
def prepare(self):
if self.config.target_platform == Platform.WINDOWS:
if self.config.target_arch == Architecture.X86_64:
self.configure_options += ' --disable-asm'
self.can_use_configure_cache = False
elif self.config.target_platform in [Platform.DARWIN]:
if self.config.target_arch == Architecture.X86_64:
self.configure_options += ' --disable-asm'
|