libgd: install pkgconfig file
authorMichal Vasilek <michal.vasilek@nic.cz>
Tue, 21 Jun 2022 15:46:36 +0000 (17:46 +0200)
committerRosen Penev <rosenp@gmail.com>
Thu, 23 Jun 2022 18:35:30 +0000 (12:35 -0600)
Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
libs/libgd/Makefile

index 1c32fa10c52ac707b0ded384298ca23aee18702b..0b2c998f69f52b2686cac73f16ceea5b1f2c1c12 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libgd
 PKG_VERSION:=2.2.5
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://github.com/$(PKG_NAME)/$(PKG_NAME)/releases/download/gd-$(PKG_VERSION)/
@@ -104,6 +104,8 @@ define Build/InstallDev
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgd.{a,la,so*} $(1)/usr/lib/
        $(INSTALL_DIR) $(2)/bin
        $(LN) ../../usr/bin/gdlib-config $(2)/bin/
+       $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/gdlib.pc $(1)/usr/lib/pkgconfig/gdlib.pc
 endef
 
 define Package/libgd/install