From 6058f807d0b509f3cc524915178d7c837566eaf7 Mon Sep 17 00:00:00 2001 From: marmeladema Date: Tue, 16 Mar 2021 01:48:40 +0000 Subject: [PATCH] kodi-addon-vfs-sftp: enable cross compilation --- srcpkgs/kodi-addon-vfs-sftp/template | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/srcpkgs/kodi-addon-vfs-sftp/template b/srcpkgs/kodi-addon-vfs-sftp/template index 40d91f566d..9c3e23e3b7 100644 --- a/srcpkgs/kodi-addon-vfs-sftp/template +++ b/srcpkgs/kodi-addon-vfs-sftp/template @@ -1,7 +1,7 @@ # Template file for 'kodi-addon-vfs-sftp' pkgname=kodi-addon-vfs-sftp version=2.0.0 -revision=1 +revision=2 _kodi_release=Matrix wrksrc="vfs.sftp-${version}-${_kodi_release}" build_style=cmake @@ -13,4 +13,8 @@ license="GPL-2.0-or-later" homepage="https://github.com/xbmc/vfs.sftp" distfiles="https://github.com/xbmc/vfs.sftp/archive/${version}-${_kodi_release}.tar.gz" checksum=b15c5dde7b3aadb3e82e61cb9b0440812b6c2f65b38c6c25aef726f97e746f68 -nocross="depends on kodi-platform" + +if [ -n "${CROSS_BUILD}" ]; then + configure_args+=" -DCMAKE_MODULE_PATH=${XBPS_CROSS_BASE}/usr/share/kodi/cmake" + configure_args+=" -DKODI_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include/kodi" +fi