All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH 1/2] libtoml: add new recipe
@ 2025-12-17 16:11 Renaud Barrau
  2025-12-17 16:11 ` [meta-oe][PATCH 2/2] drm-lease-manager: " Renaud Barrau
  2025-12-17 18:06 ` [oe] [meta-oe][PATCH 1/2] libtoml: " Gyorgy Sarvari
  0 siblings, 2 replies; 5+ messages in thread
From: Renaud Barrau @ 2025-12-17 16:11 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Renaud Barrau

From: Renaud Barrau <rbarrau33@gmail.com>

Create a recipe for the tomlc99 project https://github.com/cktan/tomlc99

Signed-off-by: Renaud Barrau <rbarrau33@gmail.com>
---
 .../recipes-support/libtoml/libtoml_git.bb    | 41 +++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 meta-oe/recipes-support/libtoml/libtoml_git.bb

diff --git a/meta-oe/recipes-support/libtoml/libtoml_git.bb b/meta-oe/recipes-support/libtoml/libtoml_git.bb
new file mode 100644
index 0000000000..befd413d3c
--- /dev/null
+++ b/meta-oe/recipes-support/libtoml/libtoml_git.bb
@@ -0,0 +1,41 @@
+SUMMARY = "TOML parser in C"
+HOMEPAGE = "https://github.com/cktan/tomlc99"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=95bbe2f9180443b5dcef3fb959804a65"
+
+SRC_URI = "git://github.com/cktan/tomlc99;protocol=https;branch=master"
+
+SRCREV = "26b9c1ea770dab2378e5041b695d24ccebe58a7a"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig
+
+do_compile() {
+    oe_runmake CC="${CC}"
+}
+
+do_install() {
+    install -d ${D}${includedir}
+    install -m 0644 toml.h ${D}${includedir}/
+
+    install -d ${D}${libdir}
+    install -m 0644 libtoml.a ${D}${libdir}/
+}
+
+do_install:append() {
+    install -d ${D}${libdir}/pkgconfig
+
+    cat << EOF > ${D}${libdir}/pkgconfig/libtoml.pc
+prefix=${prefix}
+exec_prefix=${exec_prefix}
+includedir=${includedir}
+libdir=${libdir}
+
+Name: libtoml
+Description: TOML parser in C (tomlc99)
+Version: 1.0
+Libs: -L\${libdir} -ltoml
+Cflags: -I\${includedir}
+EOF
+}
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-12-17 18:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-17 16:11 [meta-oe][PATCH 1/2] libtoml: add new recipe Renaud Barrau
2025-12-17 16:11 ` [meta-oe][PATCH 2/2] drm-lease-manager: " Renaud Barrau
2025-12-17 18:14   ` [oe] " Gyorgy Sarvari
2025-12-17 18:21     ` Gyorgy Sarvari
2025-12-17 18:06 ` [oe] [meta-oe][PATCH 1/2] libtoml: " Gyorgy Sarvari

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.