1SUMMARY = "Data compression library providing in-memory LZMA compression and decompression functions"
2HOMEPAGE = "https://www.nongnu.org/lzip/lzlib.html"
3DESCRIPTION = "Lzlib is a data compression library providing in-memory LZMA compression and decompression functions, including integrity checking of the decompressed data. The compressed data format used by the library is the lzip format. Lzlib is written in C. "
4LICENSE = "BSD-2-Clause"
5LIC_FILES_CHKSUM = "file://COPYING;md5=04d943636aa1482e0a97d924d9f4f68f \
6                    "
7
8SRC_URI = "${SAVANNAH_GNU_MIRROR}/lzip/lzlib/lzlib-${PV}.tar.gz"
9SRC_URI[sha256sum] = "5acac8714ed4f306020bae660dddce706e5f8a795863679037da9fe6bf4dcf6f"
10
11B = "${WORKDIR}/build"
12do_configure[cleandirs] = "${B}"
13
14CONFIGUREOPTS = "\
15    '--srcdir=${S}' \
16    '--prefix=${prefix}' \
17    '--exec-prefix=${exec_prefix}' \
18    '--bindir=${bindir}' \
19    '--datadir=${datadir}' \
20    '--infodir=${infodir}' \
21    '--libdir=${libdir}' \
22    '--sysconfdir=${sysconfdir}' \
23    '--enable-shared' \
24    '--disable-static' \
25    'CC=${CC}' \
26    'CPPFLAGS=${CPPFLAGS}' \
27    'CXXFLAGS=${CXXFLAGS}' \
28    'LDFLAGS=${LDFLAGS}' \
29"
30
31do_configure () {
32    ${S}/configure ${CONFIGUREOPTS}
33}
34
35do_install () {
36    oe_runmake 'DESTDIR=${D}' install
37}
38
39BBCLASSEXTEND = "native nativesdk"
40