libgcrypt: use pkgconfig metadata in InstallDev

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>
pull/25293/head
Daniel Golle 2024-11-09 00:39:07 +00:00 committed by Rosen Penev
parent ae40d866ca
commit c952d4574a
1 changed files with 2 additions and 1 deletions

View 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