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 | |
| 5 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ |
| 6 | file://serpent-decrypt.c;beginline=53;endline=67;md5=bcfd4745d53ca57f82907089898e390d \ |
| 7 | file://serpent-set-key.c;beginline=56;endline=70;md5=bcfd4745d53ca57f82907089898e390d" |
| 8 | |
| 9 | DEPENDS += "gmp" |
| 10 | |
| 11 | SRC_URI = "http://www.lysator.liu.se/~nisse/archive/${BP}.tar.gz \ |
| 12 | file://Add-target-to-only-build-tests-not-run-them.patch \ |
| 13 | file://run-ptest \ |
| 14 | " |
| 15 | |
| 16 | SRC_URI[md5sum] = "003d5147911317931dd453520eb234a5" |
| 17 | SRC_URI[sha256sum] = "bc71ebd43435537d767799e414fce88e521b7278d48c860651216e1fc6555b40" |
| 18 | |
| 19 | EXTRA_OECONF = "--disable-openssl" |
| 20 | |
| 21 | inherit autotools ptest |
| 22 | |
| 23 | do_configure_prepend() { |
| 24 | if [ ! -e ${S}/acinclude.m4 -a -e ${S}/aclocal.m4 ]; then |
| 25 | cp ${S}/aclocal.m4 ${S}/acinclude.m4 |
| 26 | fi |
| 27 | } |
| 28 | |
| 29 | do_compile_ptest() { |
| 30 | oe_runmake buildtest |
| 31 | } |
| 32 | |
| 33 | do_install_ptest() { |
| 34 | install -d ${D}${PTEST_PATH}/testsuite/ |
| 35 | install ${S}/testsuite/gold-bug.txt ${D}${PTEST_PATH}/testsuite/ |
| 36 | install ${S}/testsuite/*-test ${D}${PTEST_PATH}/testsuite/ |
| 37 | # tools can be found in PATH, not in ../tools/ |
| 38 | sed -i -e 's|../tools/||' ${D}${PTEST_PATH}/testsuite/*-test |
| 39 | install ${B}/testsuite/*-test ${D}${PTEST_PATH}/testsuite/ |
| 40 | } |
| 41 | |
| 42 | |
| 43 | BBCLASSEXTEND = "native nativesdk" |