diff options
Diffstat (limited to 'recipes-support/libgcrypt/libgcrypt.inc')
-rw-r--r-- | recipes-support/libgcrypt/libgcrypt.inc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-support/libgcrypt/libgcrypt.inc b/recipes-support/libgcrypt/libgcrypt.inc new file mode 100644 index 0000000000..da882dcc7e --- /dev/null +++ b/recipes-support/libgcrypt/libgcrypt.inc | |||
@@ -0,0 +1,33 @@ | |||
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 | PRIORITY = "optional" | ||
6 | |||
7 | BBCLASSEXTEND = "native" | ||
8 | |||
9 | # helper program gcryptrnd and getrandom are under GPL, rest LGPL | ||
10 | LICENSE = "GPLv2+ & LGPLv2.1+" | ||
11 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | ||
12 | file://COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff" | ||
13 | |||
14 | DEPENDS = "libgpg-error" | ||
15 | |||
16 | SRC_URI = "ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-${PV}.tar.gz \ | ||
17 | file://add-pkgconfig-support.patch" | ||
18 | |||
19 | inherit autotools binconfig pkgconfig | ||
20 | |||
21 | EXTRA_OECONF = "--without-pth --disable-asm --with-capabilities" | ||
22 | |||
23 | # libgcrypt.pc is added locally and thus installed here | ||
24 | do_install_append() { | ||
25 | install -d ${D}/${libdir}/pkgconfig | ||
26 | install -m 0644 ${S}/src/libgcrypt.pc ${D}/${libdir}/pkgconfig/ | ||
27 | } | ||
28 | |||
29 | ARM_INSTRUCTION_SET = "arm" | ||
30 | |||
31 | # move libgcrypt-config into -dev package | ||
32 | FILES_${PN} = "${libdir}/lib*.so.*" | ||
33 | FILES_${PN}-dev += "${bindir} ${libdir}/pkgconfig/*.pc" | ||