blob: 4d1f5843a67e6910d5b303dcfddd9c68f2b0af55 [file] [log] [blame]
Richard Marian Thomaiyar14fddef2018-07-13 23:55:56 +05301SUMMARY = "Library of hashing algorithms."
2DESCRIPTION = "\
3 Mhash is a free (under GNU Lesser GPL) library \
4 which provides a uniform interface to a large number of hash \
5 algorithms. These algorithms can be used to compute checksums, \
6 message digests, and other signatures. \
7 "
8HOMEPAGE = "http://mhash.sourceforge.net/"
9
Patrick Williamsde0582f2022-04-08 10:23:27 -050010LICENSE = "LGPL-2.0-only"
Richard Marian Thomaiyar14fddef2018-07-13 23:55:56 +053011LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7"
12
13S = "${WORKDIR}/mhash-${PV}"
14
15SECTION = "libs"
16
17SRC_URI = "${SOURCEFORGE_MIRROR}/mhash/mhash-${PV}.tar.bz2 \
18 file://Makefile.test \
19 file://mhash.c \
20 file://run-ptest \
21 "
22
23SRC_URI[md5sum] = "f91c74f9ccab2b574a98be5bc31eb280"
24SRC_URI[sha256sum] = "56521c52a9033779154432d0ae47ad7198914785265e1f570cee21ab248dfef0"
25
26inherit autotools-brokensep ptest
27
28do_compile_ptest() {
29 if [ ! -d ${S}/demo ]; then mkdir ${S}/demo; fi
30 cp ${WORKDIR}/Makefile.test ${S}/demo/Makefile
31 cp ${WORKDIR}/mhash.c ${S}/demo/
32 make -C ${S}/demo CFLAGS="${CFLAGS} -I${S}/include/" LDFLAGS="${LDFLAGS} -L${S}/lib/.libs"
33}
34
35do_install_ptest() {
36 install -m 0755 ${S}/demo/mhash ${D}${PTEST_PATH}
37}
Andrew Geissler615f2f12022-07-15 14:00:58 -050038
39BBCLASSEXTEND = "native"