diff options
Diffstat (limited to 'recipes-support/nettle/nettle.inc')
-rw-r--r-- | recipes-support/nettle/nettle.inc | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes-support/nettle/nettle.inc b/recipes-support/nettle/nettle.inc new file mode 100644 index 0000000..af51fb6 --- /dev/null +++ b/recipes-support/nettle/nettle.inc | |||
@@ -0,0 +1,37 @@ | |||
1 | SUMMARY = "A low level cryptographic library" | ||
2 | HOMEPAGE = "http://www.lysator.liu.se/~nisse/nettle/" | ||
3 | SECTION = "libs" | ||
4 | |||
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 | |||
12 | UPSTREAM_CHECK_REGEX = "nettle-(?P<pver>\d+(\.\d+)+)\.tar" | ||
13 | |||
14 | inherit autotools ptest | ||
15 | |||
16 | EXTRA_OECONF = "--disable-openssl" | ||
17 | |||
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 | |||
37 | BBCLASSEXTEND = "native nativesdk" | ||