Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame^] | 1 | SUMMARY = "General purpose cryptographic library based on the code from GnuPG" |
| 2 | HOMEPAGE = "http://directory.fsf.org/project/libgcrypt/" |
| 3 | BUGTRACKER = "https://bugs.g10code.com/gnupg/index" |
| 4 | SECTION = "libs" |
| 5 | |
| 6 | # helper program gcryptrnd and getrandom are under GPL, rest LGPL |
| 7 | LICENSE = "GPLv2+ & LGPLv2.1+ & GPLv3+" |
| 8 | LICENSE_${PN} = "LGPLv2.1+" |
| 9 | LICENSE_${PN}-dev = "GPLv2+ & LGPLv2.1+" |
| 10 | LICENSE_dumpsexp-dev = "GPLv3+" |
| 11 | |
| 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ |
| 13 | file://COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff" |
| 14 | |
| 15 | DEPENDS = "libgpg-error libcap" |
| 16 | |
| 17 | SRC_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 | |
| 23 | BINCONFIG = "${bindir}/libgcrypt-config" |
| 24 | |
| 25 | PR = "r1" |
| 26 | |
| 27 | inherit autotools texinfo binconfig-disabled pkgconfig |
| 28 | |
| 29 | EXTRA_OECONF = "--disable-asm --with-capabilities" |
| 30 | |
| 31 | do_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 |
| 37 | do_install_append() { |
| 38 | install -d ${D}/${libdir}/pkgconfig |
| 39 | install -m 0644 ${B}/src/libgcrypt.pc ${D}/${libdir}/pkgconfig/ |
| 40 | } |
| 41 | |
| 42 | PACKAGES =+ "dumpsexp-dev" |
| 43 | |
| 44 | FILES_${PN}-dev += "${bindir}/hmac256" |
| 45 | FILES_dumpsexp-dev += "${bindir}/dumpsexp" |
| 46 | |
| 47 | ARM_INSTRUCTION_SET = "arm" |
| 48 | |
| 49 | BBCLASSEXTEND = "native" |