All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/2] package/libtomcrypt: add pkgconfig support
@ 2021-05-02 10:50 Peter Seiderer
  2021-05-02 10:50 ` [Buildroot] [PATCH v2 2/2] package/libtomcrypt: compile with -fPIC to enable linking to dynamic libraries/exectuables Peter Seiderer
  2021-05-04 20:18 ` [Buildroot] [PATCH v2 1/2] package/libtomcrypt: add pkgconfig support Arnout Vandecappelle
  0 siblings, 2 replies; 6+ messages in thread
From: Peter Seiderer @ 2021-05-02 10:50 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
Changes v1 -> v2:
  - use libtomcrypt provided libtomcrypt.pc.in template file
---
 package/libtomcrypt/libtomcrypt.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/libtomcrypt/libtomcrypt.mk b/package/libtomcrypt/libtomcrypt.mk
index fccd4b051c..3d166a6854 100644
--- a/package/libtomcrypt/libtomcrypt.mk
+++ b/package/libtomcrypt/libtomcrypt.mk
@@ -27,6 +27,10 @@ define LIBTOMCRYPT_INSTALL_STAGING_CMDS
 	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(STAGING_DIR)" \
 		PREFIX=/usr NODOCS=1 INSTALL_USER=$(shell id -u) \
 		INSTALL_GROUP=$(shell id -g) install
+	sed -e 's,^prefix=.*,prefix=/usr,' \
+		-e 's,^Version:.*,Version: $(LIBTOMCRYPT_VERSION),' \
+		$(@D)/libtomcrypt.pc.in \
+		> $(STAGING_DIR)/usr/lib/pkgconfig/libtomcrypt.pc
 endef
 
 $(eval $(generic-package))
-- 
2.31.1

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

end of thread, other threads:[~2021-05-08  9:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-02 10:50 [Buildroot] [PATCH v2 1/2] package/libtomcrypt: add pkgconfig support Peter Seiderer
2021-05-02 10:50 ` [Buildroot] [PATCH v2 2/2] package/libtomcrypt: compile with -fPIC to enable linking to dynamic libraries/exectuables Peter Seiderer
2021-05-04 20:17   ` Arnout Vandecappelle
2021-05-08  9:35   ` Peter Korsgaard
2021-05-04 20:18 ` [Buildroot] [PATCH v2 1/2] package/libtomcrypt: add pkgconfig support Arnout Vandecappelle
2021-05-06 20:16   ` Peter Seiderer

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.