xref: /openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/minini/minini_1.2.b.bb (revision 8460358c3d24c71d9d38fd126c745854a6301564)
1SUMMARY = "A minimal INI file parser"
2DESCRIPTION = "minIni is a programmer's library to read and write INI files in \
3embedded systems. minIni takes little resources, has a deterministic memory \
4footprint and can be configured for various kinds of file I/O libraries. minIni \
5provides functionality for reading, writing and deleting keys from an INI file, \
6all in 830 lines of (commented) source code (version 1.2) in C (the code also \
7compiles in C++ and comes with a wrapper class)."
8HOMEPAGE = "https://code.google.com/p/minini/"
9
10# License is Apache 2.0 with an exception to allow object code built from
11# unmodified original sources to be distributed more freely. See LICENSE
12# file for details.
13
14LICENSE = "Apache-2.0"
15LIC_FILES_CHKSUM = "file://LICENSE;md5=eb21481ad45c5578ae8c8d37b8c8d76d"
16
17SRC_URI = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/minini/minIni_12b.zip;subdir=${BP}"
18
19SRC_URI[sha256sum] = "b08839af74acb36061fb76e1123bf56711bc5cf7a08b32e189b0ad78a2e888e2"
20
21do_configure[noexec] = "1"
22
23do_compile() {
24    ${CC} ${CFLAGS} -fPIC -c minIni.c -o minIni.o
25    ${CC} ${LDFLAGS} -shared -Wl,-soname,libminini.so.0 minIni.o -o libminini.so.0.0
26}
27
28do_install () {
29
30    install -d ${D}${libdir}
31    install -m 0644 libminini.so.0.0 ${D}${libdir}/
32    ln -s libminini.so.0.0 ${D}${libdir}/libminini.so
33    ln -s libminini.so.0.0 ${D}${libdir}/libminini.so.0
34
35    install -d ${D}${includedir}/minini
36    install -m 0644 minIni.h ${D}${includedir}/minini/
37    install -m 0644 minGlue-stdio.h ${D}${includedir}/minini/minGlue.h
38}
39