diff options
Diffstat (limited to 'meta/recipes-support/libgcrypt/libgcrypt_1.10.1.bb')
-rw-r--r-- | meta/recipes-support/libgcrypt/libgcrypt_1.10.1.bb | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/meta/recipes-support/libgcrypt/libgcrypt_1.10.1.bb b/meta/recipes-support/libgcrypt/libgcrypt_1.10.1.bb new file mode 100644 index 0000000000..251e0d0348 --- /dev/null +++ b/meta/recipes-support/libgcrypt/libgcrypt_1.10.1.bb | |||
@@ -0,0 +1,60 @@ | |||
1 | SUMMARY = "General purpose cryptographic library based on the code from GnuPG" | ||
2 | DESCRIPTION = "A cryptography library developed as a separated module of GnuPG. \ | ||
3 | It can also be used independently of GnuPG, but depends on its error-reporting \ | ||
4 | library Libgpg-error." | ||
5 | HOMEPAGE = "http://directory.fsf.org/project/libgcrypt/" | ||
6 | BUGTRACKER = "https://bugs.g10code.com/gnupg/index" | ||
7 | SECTION = "libs" | ||
8 | |||
9 | # helper program gcryptrnd and getrandom are under GPL, rest LGPL | ||
10 | LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later & GPL-3.0-or-later" | ||
11 | LICENSE:${PN} = "LGPL-2.1-or-later" | ||
12 | LICENSE:${PN}-dev = "GPL-2.0-or-later & LGPL-2.1-or-later" | ||
13 | LICENSE:dumpsexp-dev = "GPL-3.0-or-later" | ||
14 | |||
15 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | ||
16 | file://COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff \ | ||
17 | file://LICENSES;md5=ef545b6cc717747072616519a1256d69 \ | ||
18 | " | ||
19 | |||
20 | DEPENDS = "libgpg-error" | ||
21 | |||
22 | UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html" | ||
23 | SRC_URI = "${GNUPG_MIRROR}/libgcrypt/libgcrypt-${PV}.tar.bz2 \ | ||
24 | file://0001-libgcrypt-fix-m4-file-for-oe-core.patch \ | ||
25 | file://0003-tests-bench-slope.c-workaround-ICE-failure-on-mips-w.patch \ | ||
26 | file://0002-libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch \ | ||
27 | file://0004-tests-Makefile.am-fix-undefined-reference-to-pthread.patch \ | ||
28 | " | ||
29 | SRC_URI[sha256sum] = "ef14ae546b0084cd84259f61a55e07a38c3b53afc0f546bffcef2f01baffe9de" | ||
30 | |||
31 | # Below whitelisted CVEs are disputed and not affecting crypto libraries for any distro. | ||
32 | CVE_CHECK_IGNORE += "CVE-2018-12433 CVE-2018-12438" | ||
33 | |||
34 | BINCONFIG = "${bindir}/libgcrypt-config" | ||
35 | |||
36 | inherit autotools texinfo binconfig-disabled pkgconfig | ||
37 | |||
38 | EXTRA_OECONF = "--disable-asm" | ||
39 | EXTRA_OEMAKE:class-target = "LIBTOOLFLAGS='--tag=CC'" | ||
40 | |||
41 | PACKAGECONFIG ??= "capabilities" | ||
42 | PACKAGECONFIG[capabilities] = "--with-capabilities,--without-capabilities,libcap" | ||
43 | |||
44 | do_configure:prepend () { | ||
45 | # Else this could be used in preference to the one in aclocal-copy | ||
46 | rm -f ${S}/m4/gpg-error.m4 | ||
47 | } | ||
48 | |||
49 | # libgcrypt.pc is added locally and thus installed here | ||
50 | do_install:append() { | ||
51 | install -d ${D}/${libdir}/pkgconfig | ||
52 | install -m 0644 ${B}/src/libgcrypt.pc ${D}/${libdir}/pkgconfig/ | ||
53 | } | ||
54 | |||
55 | PACKAGES =+ "dumpsexp-dev" | ||
56 | |||
57 | FILES:${PN}-dev += "${bindir}/hmac256" | ||
58 | FILES:dumpsexp-dev += "${bindir}/dumpsexp" | ||
59 | |||
60 | BBCLASSEXTEND = "native nativesdk" | ||