From 1032fa4285a0ca4a1bbbc7c095103592f0b4dfcd Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Wed, 29 Jan 2025 07:07:42 +0100 Subject: [PATCH] libspng: add recipe --- recipes-devtools/libspng/libspng_git.bb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 recipes-devtools/libspng/libspng_git.bb diff --git a/recipes-devtools/libspng/libspng_git.bb b/recipes-devtools/libspng/libspng_git.bb new file mode 100644 index 0000000..4b3c193 --- /dev/null +++ b/recipes-devtools/libspng/libspng_git.bb @@ -0,0 +1,19 @@ +SUMMARY = "libspng is a C library for reading and writing PNG format files with a focus on security and ease of use" +HOMEPAGE = "https://github.com/randy408/libspng" +LICENSE = "BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=29809adc19b040d93257a61c5bff614b" + +SRC_URI = "git://github.com/randy408/libspng.git;protocol=https;branch=master" +SRCREV = "fb768002d4288590083a476af628e51c3f1d47cd" +S = "${WORKDIR}/git" + +DEPENDS = "libdeflate" + +inherit cmake pkgconfig + +EXTRA_OECMAKE += "-DSPNG_STATIC=OFF -DBUILD_EXAMPLES=OFF" + +FILES:${PN} = "${libdir}/libspng.so" +FILES:${PN}-dev = "${libdir}/cmake ${libdir}/pkgconfig ${includedir}" + +BBCLASSEXTEND = "native"