libssh: fix bad pkgconfig paths
authorRosen Penev <rosenp@gmail.com>
Thu, 30 May 2024 20:59:52 +0000 (13:59 -0700)
committerRosen Penev <rosenp@gmail.com>
Sun, 2 Jun 2024 00:27:37 +0000 (17:27 -0700)
Avoid leaking host paths.

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

index 21d03c7feca8fe68ca6bfb95f693c0f51b1176ab..1f51a9820a6154c4a78989bc638e61324f90bf0a 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libssh
 PKG_VERSION:=0.10.6
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://www.libssh.org/files/0.10/
@@ -61,6 +61,12 @@ CMAKE_OPTIONS += \
        -DWITH_STACK_PROTECTOR_STRONG=0 \
        -DHAVE_WORDS_BIGENDIAN=$(if $(CONFIG_BIG_ENDIAN),1,0)
 
+define Build/InstallDev
+       $(call Build/InstallDev/cmake,$(1))
+       $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libssh.pc
+       $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libssh.pc
+endef
+
 define Package/libssh/install
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libssh* $(1)/usr/lib/