kmod: fix wrong paths in pkgconfig files
authorRosen Penev <rosenp@gmail.com>
Wed, 9 Dec 2020 10:53:22 +0000 (02:53 -0800)
committerRosen Penev <rosenp@gmail.com>
Thu, 10 Dec 2020 09:50:28 +0000 (01:50 -0800)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
utils/kmod/Makefile

index b8e91a9ee18056b707cdc852513611ca06576ac8..916839656fea2ded88097738ea1de1a78dc14026 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=kmod
 PKG_VERSION:=27
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@KERNEL/linux/utils/kernel/kmod
@@ -82,6 +82,8 @@ define Build/InstallDev
 
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libkmod.pc $(1)/usr/lib/pkgconfig/
+       $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libkmod.pc
+       $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libkmod.pc
 endef