libmaxminddb: install pkgconfig file
authorRosen Penev <rosenp@gmail.com>
Wed, 4 Jan 2023 00:15:16 +0000 (16:15 -0800)
committerGlenn Strauss <gstrauss@gluelogic.com>
Fri, 14 Apr 2023 19:18:46 +0000 (15:18 -0400)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit fe018482f83d51b9005c44d25652ea323aa338a2)

(cherry pick reduced for backport)
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
libs/libmaxminddb/Makefile

index 493061b736d1669500d7739aaaa864e8610d28a0..0a0a95568191f4c6f6607fec67be135e7a3259f0 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libmaxminddb
 PKG_VERSION:=1.5.0
-PKG_RELEASE=1
+PKG_RELEASE=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/maxmind/libmaxminddb/releases/download/$(PKG_VERSION)/
@@ -41,6 +41,8 @@ define Build/InstallDev
        $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
        $(INSTALL_DIR) $(1)/usr/lib/
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmaxminddb.{a,so*} $(1)/usr/lib/
+       $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmaxminddb.pc $(1)/usr/lib/pkgconfig
 endef
 
 define Package/libmaxminddb/install