libmaxminddb: install pkgconfig file
authorRosen Penev <rosenp@gmail.com>
Wed, 4 Jan 2023 00:15:16 +0000 (16:15 -0800)
committerRosen Penev <rosenp@gmail.com>
Wed, 4 Jan 2023 06:05:23 +0000 (22:05 -0800)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit c0be86e1ac2a632842616fa228c43e1a52e97390)

libs/libmaxminddb/Makefile

index 02bd2f473cd552b629d2aaddd057cd61cd6f8662..b1bc2452f33448ab34846f7138e78c99510c911d 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libmaxminddb
 PKG_VERSION:=1.7.1
-PKG_RELEASE=$(AUTORELEASE)
+PKG_RELEASE=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/maxmind/libmaxminddb/releases/download/$(PKG_VERSION)/
@@ -42,6 +42,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.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