[Buildroot] [PATCH v1 1/3] package/libtomcrypt: add pkgconfig support
Peter Seiderer
ps.report at gmx.net
Mon Apr 12 19:55:25 UTC 2021
Signed-off-by: Peter Seiderer <ps.report at gmx.net>
---
package/libtomcrypt/libtomcrypt.mk | 3 +++
package/libtomcrypt/libtomcrypt.pc.in | 10 ++++++++++
2 files changed, 13 insertions(+)
create mode 100644 package/libtomcrypt/libtomcrypt.pc.in
diff --git a/package/libtomcrypt/libtomcrypt.mk b/package/libtomcrypt/libtomcrypt.mk
index fccd4b051c..fa6dde64cd 100644
--- a/package/libtomcrypt/libtomcrypt.mk
+++ b/package/libtomcrypt/libtomcrypt.mk
@@ -27,6 +27,9 @@ 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
+ $(INSTALL) -D -m 0644 package/libtomcrypt/libtomcrypt.pc.in \
+ $(STAGING_DIR)/usr/lib/pkgconfig/libtomcrypt.pc
+ $(SED) "s/@PACKAGE_VERSION@/${LIBTOMCRYPT_VERSION}/" $(STAGING_DIR)/usr/lib/pkgconfig/libtomcrypt.pc
endef
$(eval $(generic-package))
diff --git a/package/libtomcrypt/libtomcrypt.pc.in b/package/libtomcrypt/libtomcrypt.pc.in
new file mode 100644
index 0000000000..14a010e216
--- /dev/null
+++ b/package/libtomcrypt/libtomcrypt.pc.in
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: LibTomCrypt
+Description: public domain open source cryptographic toolkit
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -ltomcrypt
+Cflags: -I${includedir}
--
2.31.1
More information about the buildroot
mailing list