lzo: fix pkgconfig paths
authorRosen Penev <rosenp@gmail.com>
Tue, 14 Jul 2020 05:12:52 +0000 (22:12 -0700)
committerPetr Štetiar <ynezz@true.cz>
Fri, 17 Jul 2020 09:00:33 +0000 (11:00 +0200)
The last commit to this package that added the pkgconfig file did not
fix the paths to point to the prefix.

This allows packages to find lzo properly.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
package/libs/lzo/Makefile

index 3ce5f53349ee13be4e786f5c3dd16038271e723e..09885e8d9b72618d2b3c4bd54593e326dc8045d4 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=lzo
 PKG_VERSION:=2.10
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.oberhumer.com/opensource/lzo/download/
@@ -49,6 +49,8 @@ define Build/InstallDev
        $(CP) $(PKG_INSTALL_DIR)/usr/include/lzo $(1)/usr/include/
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.{a,so*} $(1)/usr/lib/
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/lzo2.pc $(1)/usr/lib/pkgconfig
+       $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/lzo2.pc
+       $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/lzo2.pc
 endef
 
 define Package/liblzo/install