blob: 683be780ff3a7edce9407ae89f71bd2df491b9d1 [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
17SRC_URI = "ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-${PV}.tar.gz \
18 file://add-pkgconfig-support.patch \
19 file://libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch \
20 file://fix-ICE-failure-on-mips-with-option-O-and-g.patch \
21"
22
23BINCONFIG = "${bindir}/libgcrypt-config"
24
25PR = "r1"
26
27inherit autotools texinfo binconfig-disabled pkgconfig
28
29EXTRA_OECONF = "--disable-asm --with-capabilities"
30
31do_configure_prepend () {
32 # Else this could be used in preference to the one in aclocal-copy
33 rm -f ${S}/m4/gpg-error.m4
34}
35
36# libgcrypt.pc is added locally and thus installed here
37do_install_append() {
38 install -d ${D}/${libdir}/pkgconfig
39 install -m 0644 ${B}/src/libgcrypt.pc ${D}/${libdir}/pkgconfig/
40}
41
42PACKAGES =+ "dumpsexp-dev"
43
44FILES_${PN}-dev += "${bindir}/hmac256"
45FILES_dumpsexp-dev += "${bindir}/dumpsexp"
46
47ARM_INSTRUCTION_SET = "arm"
48
49BBCLASSEXTEND = "native"