Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame] | 1 | SUMMARY = "Library of hashing algorithms." |
| 2 | DESCRIPTION = "\ |
| 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 | " |
| 8 | HOMEPAGE = "http://mhash.sourceforge.net/" |
| 9 | |
Patrick Williams | de0582f | 2022-04-08 10:23:27 -0500 | [diff] [blame^] | 10 | LICENSE = "LGPL-2.0-only" |
Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame] | 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7" |
| 12 | |
| 13 | S = "${WORKDIR}/mhash-${PV}" |
| 14 | |
| 15 | SECTION = "libs" |
| 16 | |
| 17 | SRC_URI = "${SOURCEFORGE_MIRROR}/mhash/mhash-${PV}.tar.bz2 \ |
| 18 | file://Makefile.test \ |
| 19 | file://mhash.c \ |
| 20 | file://run-ptest \ |
| 21 | " |
| 22 | |
| 23 | SRC_URI[md5sum] = "f91c74f9ccab2b574a98be5bc31eb280" |
| 24 | SRC_URI[sha256sum] = "56521c52a9033779154432d0ae47ad7198914785265e1f570cee21ab248dfef0" |
| 25 | |
| 26 | inherit autotools-brokensep ptest |
| 27 | |
| 28 | do_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 | |
| 35 | do_install_ptest() { |
| 36 | install -m 0755 ${S}/demo/mhash ${D}${PTEST_PATH} |
| 37 | } |