Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | SUMMARY = "A low level cryptographic library" |
| 2 | HOMEPAGE = "http://www.lysator.liu.se/~nisse/nettle/" |
Andrew Geissler | c723b72 | 2021-01-08 16:14:09 -0600 | [diff] [blame^] | 3 | DESCRIPTION = "It tries to solve a problem of providing a common set of \ |
| 4 | cryptographic algorithms for higher-level applications by implementing a \ |
| 5 | context-independent set of cryptographic algorithms" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 6 | SECTION = "libs" |
| 7 | LICENSE = "LGPLv3+ | GPLv2+" |
| 8 | |
| 9 | LIC_FILES_CHKSUM = "file://COPYING.LESSERv3;md5=6a6a8e020838b23406c81b19c1d46df6 \ |
| 10 | file://COPYINGv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 11 | file://serpent-decrypt.c;beginline=14;endline=36;md5=ca0d220bc413e1842ecc507690ce416e \ |
| 12 | file://serpent-set-key.c;beginline=14;endline=36;md5=ca0d220bc413e1842ecc507690ce416e" |
| 13 | |
| 14 | DEPENDS += "gmp" |
| 15 | |
| 16 | SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ |
| 17 | file://Add-target-to-only-build-tests-not-run-them.patch \ |
| 18 | file://run-ptest \ |
| 19 | file://check-header-files-of-openssl-only-if-enable_.patch \ |
| 20 | " |
| 21 | |
| 22 | SRC_URI_append_class-target = "\ |
| 23 | file://dlopen-test.patch \ |
| 24 | " |
| 25 | |
Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 26 | SRC_URI[md5sum] = "c45ee24ed7361dcda152a035d396fe8a" |
| 27 | SRC_URI[sha256sum] = "d24c0d0f2abffbc8f4f34dcf114b0f131ec3774895f3555922fe2f40f3d5e3f1" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 28 | |
| 29 | UPSTREAM_CHECK_REGEX = "nettle-(?P<pver>\d+(\.\d+)+)\.tar" |
| 30 | |
| 31 | inherit autotools ptest multilib_header |
| 32 | |
| 33 | EXTRA_AUTORECONF += "--exclude=aclocal" |
| 34 | |
| 35 | EXTRA_OECONF = "--disable-openssl" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 36 | |
| 37 | do_compile_ptest() { |
| 38 | oe_runmake buildtest |
| 39 | } |
| 40 | |
| 41 | do_install_append() { |
Brad Bishop | 08902b0 | 2019-08-20 09:16:51 -0400 | [diff] [blame] | 42 | oe_multilib_header nettle/version.h |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | do_install_ptest() { |
| 46 | install -d ${D}${PTEST_PATH}/testsuite/ |
| 47 | install ${S}/testsuite/gold-bug.txt ${D}${PTEST_PATH}/testsuite/ |
| 48 | install ${S}/testsuite/*-test ${D}${PTEST_PATH}/testsuite/ |
| 49 | # tools can be found in PATH, not in ../tools/ |
| 50 | sed -i -e 's|../tools/||' ${D}${PTEST_PATH}/testsuite/*-test |
| 51 | install ${B}/testsuite/*-test ${D}${PTEST_PATH}/testsuite/ |
| 52 | } |
| 53 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 54 | RDEPENDS_${PN}-ptest += "${PN}-dev" |
| 55 | INSANE_SKIP_${PN}-ptest += "dev-deps" |
| 56 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 57 | BBCLASSEXTEND = "native nativesdk" |