openzwave: fix pkgconfig libdir paths
authorRosen Penev <rosenp@gmail.com>
Tue, 14 Jul 2020 04:58:42 +0000 (21:58 -0700)
committerRosen Penev <rosenp@gmail.com>
Wed, 15 Jul 2020 19:06:17 +0000 (12:06 -0700)
It's currently pointing to the host.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
utils/openzwave/Makefile

index 64aa1b03b780d527aed8ae8a962ecc680d54a64b..b21d6669e6e06ad46bde1cfefc6e1bdd79057fa4 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=openzwave
 PKG_VERSION:=1.6.1149
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://old.openzwave.com/downloads
@@ -91,6 +91,7 @@ define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libopenzwave.pc $(1)/usr/lib/pkgconfig/
        $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libopenzwave.pc
+       $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libopenzwave.pc
 endef
 
 $(eval $(call BuildPackage,libopenzwave))