libiio: fix pkgconfig paths
[feed/packages.git] / libs / libiio / Makefile
index 1ff73915a317dd4a773b6d5120ee5524c0d94e82..ba78a6878e743955c1b5bf1434ad4f6ce50ef7d5 100644 (file)
@@ -128,6 +128,8 @@ define Build/InstallDev
 
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libiio.pc $(1)/usr/lib/pkgconfig/
+       $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libiio.pc
+       $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libiio.pc
 endef
 
 define Package/libiio/install