summaryrefslogtreecommitdiff
path: root/recipes/libgcrypt/libgcrypt.recipe
blob: f28e5a7e7a16a4616909080becd5dc9949df2e8d (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 = ' --with-gpg-error-prefix=$CERBERO_PREFIX'
    patches = ['0001-Add-missing-file-in-distribution-tarball.patch']
    deps = ['libgpg-error']

    files_libs = ['libgcrypt']
    files_devel = ['include/gcrypt-module.h', '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'