blob: af51fb6c77930961ad129dea956a276a0fb13c56 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001SUMMARY = "A low level cryptographic library"
2HOMEPAGE = "http://www.lysator.liu.se/~nisse/nettle/"
3SECTION = "libs"
4
5DEPENDS += "gmp"
6
7SRC_URI = "http://www.lysator.liu.se/~nisse/archive/${BP}.tar.gz \
8 file://Add-target-to-only-build-tests-not-run-them.patch \
9 file://run-ptest \
10 "
11
12UPSTREAM_CHECK_REGEX = "nettle-(?P<pver>\d+(\.\d+)+)\.tar"
13
14inherit autotools ptest
15
16EXTRA_OECONF = "--disable-openssl"
17
18do_configure_prepend() {
19 if [ ! -e ${S}/acinclude.m4 -a -e ${S}/aclocal.m4 ]; then
20 cp ${S}/aclocal.m4 ${S}/acinclude.m4
21 fi
22}
23
24do_compile_ptest() {
25 oe_runmake buildtest
26}
27
28do_install_ptest() {
29 install -d ${D}${PTEST_PATH}/testsuite/
30 install ${S}/testsuite/gold-bug.txt ${D}${PTEST_PATH}/testsuite/
31 install ${S}/testsuite/*-test ${D}${PTEST_PATH}/testsuite/
32 # tools can be found in PATH, not in ../tools/
33 sed -i -e 's|../tools/||' ${D}${PTEST_PATH}/testsuite/*-test
34 install ${B}/testsuite/*-test ${D}${PTEST_PATH}/testsuite/
35}
36
37BBCLASSEXTEND = "native nativesdk"