Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 1 | SUMMARY = "Base64 Encoding/Decoding Routines" |
| 2 | DESCRIPTION = "base64 encoding/decoding library - runtime library \ |
| 3 | libb64 is a library of ANSI C routines for fast encoding/decoding data into \ |
| 4 | and from a base64-encoded format" |
| 5 | HOMEPAGE = "https://github.com/libb64" |
| 6 | LICENSE = "PD" |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=81296a564fa0621472714aae7c763d96" |
| 8 | |
| 9 | PV .= "+2.0.0.2+git${SRCPV}" |
| 10 | SRCREV = "ce864b17ea0e24a91e77c7dd3eb2d1ac4175b3f0" |
| 11 | |
| 12 | SRC_URI = "git://github.com/libb64/libb64;protocol=https;branch=master \ |
| 13 | file://0001-example-Do-not-run-the-tests.patch \ |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 14 | file://0002-use-BUFSIZ-as-buffer-size.patch \ |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 15 | file://0001-Makefile-fix-parallel-build-of-examples.patch \ |
| 16 | file://0001-examples-Use-proper-function-prototype-for-main.patch \ |
| 17 | " |
| 18 | |
| 19 | S = "${WORKDIR}/git" |
| 20 | |
| 21 | CFLAGS += "-fPIC" |
| 22 | |
| 23 | do_configure () { |
| 24 | : |
| 25 | } |
| 26 | |
| 27 | do_compile () { |
| 28 | oe_runmake |
| 29 | ${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,${BPN}.so.0 src/*.o -o src/${BPN}.so.0 |
| 30 | } |
| 31 | |
| 32 | do_install () { |
| 33 | install -d ${D}${includedir}/b64 |
| 34 | install -Dm 0644 ${B}/src/libb64.a ${D}${libdir}/libb64.a |
| 35 | install -Dm 0644 ${B}/src/libb64.so.0 ${D}${libdir}/libb64.so.0 |
| 36 | ln -s libb64.so.0 ${D}${libdir}/libb64.so |
| 37 | install -Dm 0644 ${S}/include/b64/*.h ${D}${includedir}/b64/ |
| 38 | } |