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/" |
| 3 | SECTION = "libs" |
| 4 | LICENSE = "LGPLv3+ | GPLv2+" |
| 5 | |
| 6 | LIC_FILES_CHKSUM = "file://COPYING.LESSERv3;md5=6a6a8e020838b23406c81b19c1d46df6 \ |
| 7 | file://COPYINGv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 8 | file://serpent-decrypt.c;beginline=14;endline=36;md5=ca0d220bc413e1842ecc507690ce416e \ |
| 9 | file://serpent-set-key.c;beginline=14;endline=36;md5=ca0d220bc413e1842ecc507690ce416e" |
| 10 | |
| 11 | DEPENDS += "gmp" |
| 12 | |
| 13 | SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ |
| 14 | file://Add-target-to-only-build-tests-not-run-them.patch \ |
| 15 | file://run-ptest \ |
| 16 | file://check-header-files-of-openssl-only-if-enable_.patch \ |
| 17 | " |
| 18 | |
| 19 | SRC_URI_append_class-target = "\ |
| 20 | file://dlopen-test.patch \ |
| 21 | " |
| 22 | |
Brad Bishop | 08902b0 | 2019-08-20 09:16:51 -0400 | [diff] [blame] | 23 | SRC_URI[md5sum] = "0e5707b418c3826768d41130fbe4ee86" |
| 24 | SRC_URI[sha256sum] = "75cca1998761b02e16f2db56da52992aef622bf55a3b45ec538bc2eedadc9419" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 25 | |
| 26 | UPSTREAM_CHECK_REGEX = "nettle-(?P<pver>\d+(\.\d+)+)\.tar" |
| 27 | |
| 28 | inherit autotools ptest multilib_header |
| 29 | |
| 30 | EXTRA_AUTORECONF += "--exclude=aclocal" |
| 31 | |
| 32 | EXTRA_OECONF = "--disable-openssl" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 33 | CFLAGS_append = " -std=gnu99" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 34 | |
| 35 | do_compile_ptest() { |
| 36 | oe_runmake buildtest |
| 37 | } |
| 38 | |
| 39 | do_install_append() { |
Brad Bishop | 08902b0 | 2019-08-20 09:16:51 -0400 | [diff] [blame] | 40 | oe_multilib_header nettle/version.h |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | do_install_ptest() { |
| 44 | install -d ${D}${PTEST_PATH}/testsuite/ |
| 45 | install ${S}/testsuite/gold-bug.txt ${D}${PTEST_PATH}/testsuite/ |
| 46 | install ${S}/testsuite/*-test ${D}${PTEST_PATH}/testsuite/ |
| 47 | # tools can be found in PATH, not in ../tools/ |
| 48 | sed -i -e 's|../tools/||' ${D}${PTEST_PATH}/testsuite/*-test |
| 49 | install ${B}/testsuite/*-test ${D}${PTEST_PATH}/testsuite/ |
| 50 | } |
| 51 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 52 | RDEPENDS_${PN}-ptest += "${PN}-dev" |
| 53 | INSANE_SKIP_${PN}-ptest += "dev-deps" |
| 54 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 55 | BBCLASSEXTEND = "native nativesdk" |