Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "A low level cryptographic library" |
| 2 | HOMEPAGE = "http://www.lysator.liu.se/~nisse/nettle/" |
| 3 | SECTION = "libs" |
| 4 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | DEPENDS += "gmp" |
| 6 | |
| 7 | SRC_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 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 12 | UPSTREAM_CHECK_REGEX = "nettle-(?P<pver>\d+(\.\d+)+)\.tar" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 13 | |
| 14 | inherit autotools ptest |
| 15 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 16 | EXTRA_OECONF = "--disable-openssl" |
| 17 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 18 | do_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 | |
| 24 | do_compile_ptest() { |
| 25 | oe_runmake buildtest |
| 26 | } |
| 27 | |
| 28 | do_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 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 37 | BBCLASSEXTEND = "native nativesdk" |