blob: 00870e3d277d710734d819956ad1bb91bbb4b3d3 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "General purpose cryptographic library based on the code from GnuPG"
2HOMEPAGE = "http://directory.fsf.org/project/libgcrypt/"
3BUGTRACKER = "https://bugs.g10code.com/gnupg/index"
4SECTION = "libs"
5
6# helper program gcryptrnd and getrandom are under GPL, rest LGPL
7LICENSE = "GPLv2+ & LGPLv2.1+ & GPLv3+"
8LICENSE_${PN} = "LGPLv2.1+"
9LICENSE_${PN}-dev = "GPLv2+ & LGPLv2.1+"
10LICENSE_dumpsexp-dev = "GPLv3+"
11
12LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
13 file://COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff"
14
15DEPENDS = "libgpg-error libcap"
16
Patrick Williamsc0f7c042017-02-23 20:41:17 -060017UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html"
18SRC_URI = "${GNUPG_MIRROR}/libgcrypt/libgcrypt-${PV}.tar.gz \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019 file://add-pkgconfig-support.patch \
20 file://libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch \
21 file://fix-ICE-failure-on-mips-with-option-O-and-g.patch \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060022 file://fix-undefined-reference-to-pthread.patch \
Brad Bishop37a0e4d2017-12-04 01:01:44 -050023 file://0001-ecc-Store-EdDSA-session-key-in-secure-memory.patch \
24 file://CVE-2017-7526.patch \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025"
26
27BINCONFIG = "${bindir}/libgcrypt-config"
28
Patrick Williamsc124f4f2015-09-15 14:41:29 -050029inherit autotools texinfo binconfig-disabled pkgconfig
30
31EXTRA_OECONF = "--disable-asm --with-capabilities"
32
33do_configure_prepend () {
34 # Else this could be used in preference to the one in aclocal-copy
35 rm -f ${S}/m4/gpg-error.m4
36}
37
38# libgcrypt.pc is added locally and thus installed here
39do_install_append() {
40 install -d ${D}/${libdir}/pkgconfig
41 install -m 0644 ${B}/src/libgcrypt.pc ${D}/${libdir}/pkgconfig/
42}
43
44PACKAGES =+ "dumpsexp-dev"
45
46FILES_${PN}-dev += "${bindir}/hmac256"
47FILES_dumpsexp-dev += "${bindir}/dumpsexp"
48
49ARM_INSTRUCTION_SET = "arm"
50
51BBCLASSEXTEND = "native"