kodi-addon-peripheral-joystick: enable cross compilation

This commit is contained in:
marmeladema 2021-03-16 20:09:20 +00:00 committed by Érico Nogueira Rolim
parent 9f95b14ece
commit 687b227628

View file

@ -1,7 +1,7 @@
# Template file for 'kodi-addon-peripheral-joystick'
pkgname=kodi-addon-peripheral-joystick
version=1.7.1
revision=1
revision=2
_kodi_release="Matrix"
wrksrc="peripheral.joystick-${version}-${_kodi_release}"
build_style=cmake
@ -13,4 +13,8 @@ license="GPL-2.0-or-later"
homepage="https://github.com/xbmc/peripheral.joystick"
distfiles="https://github.com/xbmc/peripheral.joystick/archive/${version}-${_kodi_release}.tar.gz"
checksum=4dc63c6c5bdad25881eeba800765d97c53b2583addf28e71bbcd67775452ecdb
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