libgcrypt: restore BBCLASSEXTEND
[openembedded.git] / recipes / libgcrypt / libgcrypt.inc
1 DESCRIPTION = "A 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+"
8 LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
9                     file://COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff"
10
11 DEPENDS = "libgpg-error"
12
13 SRC_URI = "ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-${PV}.tar.gz \
14            file://add-pkgconfig-support.patch;patch=1"
15
16 inherit autotools binconfig pkgconfig
17
18 EXTRA_OECONF = "--without-pth --disable-asm --with-capabilities"
19
20 # libgcrypt.pc is added locally and thus installed here
21 do_install_append() {
22         install -d ${D}/${libdir}/pkgconfig
23         install -m 0644 ${S}/src/libgcrypt.pc ${D}/${libdir}/pkgconfig/
24 }
25
26 ARM_INSTRUCTION_SET = "arm"
27 BBCLASSEXTEND = "native"
28
29 # move libgcrypt-config into -dev package
30 FILES_${PN} = "${libdir}/lib*.so.*"
31 FILES_${PN}-dev += "${bindir} ${libdir}/pkgconfig/*.pc"