Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libzenoh-c: install to staging
@ 2025-08-13  6:08 Michel Alex
  2025-08-16 20:11 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Michel Alex @ 2025-08-13  6:08 UTC (permalink / raw)
  To: Thomas Petazzoni via buildroot; +Cc: Michel Alex


[-- Attachment #1.1: Type: text/plain, Size: 1543 bytes --]

Install libzenohc.pc to staging. Packages, which use
libzenoh-c as dependency, are not able to find it.

Signed-off-by: Alex Michel <alex.michel@wiedemann-group.com>
---
 package/libzenoh-c/libzenoh-c.mk | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/package/libzenoh-c/libzenoh-c.mk b/package/libzenoh-c/libzenoh-c.mk
index bfee8f33e0..41b04d98f8 100644
--- a/package/libzenoh-c/libzenoh-c.mk
+++ b/package/libzenoh-c/libzenoh-c.mk
@@ -35,6 +35,15 @@ define LIBZENOH_C_INSTALL_STAGING_CMDS
      $(call LIBZENOH_C_INSTALL_FILES,$(STAGING_DIR))
      mkdir -p $(STAGING_DIR)/usr/include/
      cp -dpfr $(@D)/include/* $(STAGING_DIR)/usr/include/
+     cat $(@D)/install/zenohc.pc.in \
+           | sed "s|@CMAKE_INSTALL_PREFIX@|/usr|g" \
+           | sed "s|@PROJECT_NAME@|libzenohc|g" \
+           | sed "s|@CMAKE_PROJECT_DESCRIPTION@|The C bindings for Zenoh|g" \
+           | sed "s|@CMAKE_PROJECT_HOMEPAGE_URL@|https://github.com/eclipse-zenoh/zenoh-c|g" \
+           | sed "s|@PROJECT_VERSION@|$(LIBZENOH_C_VERSION)|g" \
+           | sed "s|@CMAKE_INSTALL_INCLUDEDIR@|include|g" \
+           | sed "s|@CMAKE_INSTALL_LIBDIR@|lib|g" \
+           | sed "s|@LIBNAME@|zenohc|g" > $(STAGING_DIR)/usr/lib/pkgconfig/libzenohc.pc
 endef

 $(eval $(cargo-package))
--
2.43.0



[-- Attachment #1.2: Type: text/html, Size: 4431 bytes --]

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2025-08-16 20:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-13  6:08 [Buildroot] [PATCH 1/1] package/libzenoh-c: install to staging Michel Alex
2025-08-16 20:11 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox