diff options
Diffstat (limited to 'meta/recipes-support/libgcrypt/libgcrypt_1.11.1.bb')
-rw-r--r-- | meta/recipes-support/libgcrypt/libgcrypt_1.11.1.bb | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/meta/recipes-support/libgcrypt/libgcrypt_1.11.1.bb b/meta/recipes-support/libgcrypt/libgcrypt_1.11.1.bb new file mode 100644 index 0000000000..14cbe53647 --- /dev/null +++ b/meta/recipes-support/libgcrypt/libgcrypt_1.11.1.bb | |||
@@ -0,0 +1,56 @@ | |||
1 | SUMMARY = "General purpose cryptographic library based on the code from GnuPG" | ||
2 | DESCRIPTION = "A cryptography library developed as a separated module of GnuPG. \ | ||
3 | It can also be used independently of GnuPG, but depends on its error-reporting \ | ||
4 | library Libgpg-error." | ||
5 | HOMEPAGE = "http://directory.fsf.org/project/libgcrypt/" | ||
6 | BUGTRACKER = "https://bugs.g10code.com/gnupg/index" | ||
7 | SECTION = "libs" | ||
8 | |||
9 | LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later & BSD-3-Clause" | ||
10 | LICENSE:${PN} = "LGPL-2.1-or-later & BSD-3-Clause" | ||
11 | LICENSE:${PN}-dev = "GPL-2.0-or-later & LGPL-2.1-or-later" | ||
12 | |||
13 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
14 | file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c \ | ||
15 | file://LICENSES;md5=034b4e369944ad4b52a68368f1cf98b8 \ | ||
16 | " | ||
17 | |||
18 | DEPENDS = "libgpg-error" | ||
19 | |||
20 | UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html" | ||
21 | SRC_URI = "${GNUPG_MIRROR}/libgcrypt/libgcrypt-${PV}.tar.bz2 \ | ||
22 | file://0001-libgcrypt-fix-m4-file-for-oe-core.patch \ | ||
23 | file://0004-tests-Makefile.am-fix-undefined-reference-to-pthread.patch \ | ||
24 | file://0001-tests-Fix-link-errors-for-t-thread-local.patch \ | ||
25 | file://no-native-gpg-error.patch \ | ||
26 | file://no-bench-slope.patch \ | ||
27 | file://run-ptest \ | ||
28 | " | ||
29 | SRC_URI[sha256sum] = "24e91c9123a46c54e8371f3a3a2502f1198f2893fbfbf59af95bc1c21499b00e" | ||
30 | |||
31 | BINCONFIG = "${bindir}/libgcrypt-config" | ||
32 | |||
33 | inherit autotools texinfo binconfig-disabled pkgconfig ptest | ||
34 | |||
35 | require recipes-support/gnupg/drop-unknown-suffix.inc | ||
36 | |||
37 | EXTRA_OECONF = "--disable-asm" | ||
38 | EXTRA_OEMAKE:class-target = "LIBTOOLFLAGS='--tag=CC'" | ||
39 | |||
40 | PACKAGECONFIG ??= "capabilities" | ||
41 | PACKAGECONFIG[capabilities] = "--with-capabilities,--without-capabilities,libcap" | ||
42 | |||
43 | do_configure:prepend () { | ||
44 | # Else this could be used in preference to the one in aclocal-copy | ||
45 | rm -f ${S}/m4/gpg-error.m4 | ||
46 | } | ||
47 | |||
48 | do_install_ptest() { | ||
49 | cd tests | ||
50 | oe_runmake testdrv-build testdrv | ||
51 | install testdrv $(srcdir=${S}/tests ./testdrv-build --files | sort | uniq) ${D}${PTEST_PATH} | ||
52 | } | ||
53 | |||
54 | FILES:${PN}-dev += "${bindir}/hmac256 ${bindir}/dumpsexp" | ||
55 | |||
56 | BBCLASSEXTEND = "native nativesdk" | ||