libgcrypt: use pkgconfig metadata in InstallDev
authorDaniel Golle <daniel@makrotopia.org>
Sat, 9 Nov 2024 00:39:07 +0000 (00:39 +0000)
committerRosen Penev <rosenp@gmail.com>
Sun, 10 Nov 2024 06:32:18 +0000 (22:32 -0800)
Install pkgconfig metadata to allow detection of libgcrypt during
build of other packages which rely on pkgconfig.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libs/libgcrypt/Makefile

index bde888032103899ee1c9b6be7a4860951e18b278..6edfe2ac2162373805b30792865c1d0b7b3991a6 100644 (file)
@@ -54,13 +54,14 @@ CONFIGURE_ARGS += \
 TARGET_CFLAGS += $(FPIC)
 
 define Build/InstallDev
-       $(INSTALL_DIR) $(1)/usr/bin $(2)/bin $(1)/usr/include $(1)/usr/lib $(1)/usr/share/aclocal
+       $(INSTALL_DIR) $(1)/usr/bin $(2)/bin $(1)/usr/include $(1)/usr/lib/pkgconfig $(1)/usr/share/aclocal
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libgcrypt-config $(1)/usr/bin/
        $(CP) $(PKG_INSTALL_DIR)/usr/include/gcrypt*.h $(1)/usr/include/
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgcrypt.{la,a,so*} $(1)/usr/lib/
        $(CP) $(PKG_INSTALL_DIR)/usr/share/aclocal/libgcrypt.m4 $(1)/usr/share/aclocal/
        $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(1)/usr/bin/libgcrypt-config
        $(LN) ../../usr/bin/libgcrypt-config $(2)/bin/libgcrypt-config
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig
 endef
 
 define Package/libgcrypt/install