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