summaryrefslogtreecommitdiffstats
path: root/recipes-support/nettle/nettle.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-support/nettle/nettle.inc')
-rw-r--r--recipes-support/nettle/nettle.inc37
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 @@
1SUMMARY = "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"