kodi-addon-pvr-hts: enable cross compilation

This commit is contained in:
marmeladema 2021-03-16 01:34:13 +00:00 committed by Érico Nogueira Rolim
parent 4261c3afa6
commit fd7baeb4cf
1 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'kodi-addon-pvr-hts' # Template file for 'kodi-addon-pvr-hts'
pkgname=kodi-addon-pvr-hts pkgname=kodi-addon-pvr-hts
version=8.2.3 version=8.2.3
revision=1 revision=2
_kodi_release=Matrix _kodi_release=Matrix
wrksrc="pvr.hts-${version}-${_kodi_release}" wrksrc="pvr.hts-${version}-${_kodi_release}"
build_style=cmake build_style=cmake
@ -12,8 +12,12 @@ license="GPL-2.0-or-later"
homepage="https://github.com/kodi-pvr/pvr.hts" homepage="https://github.com/kodi-pvr/pvr.hts"
distfiles="https://github.com/kodi-pvr/pvr.hts/archive/${version}-${_kodi_release}.tar.gz" distfiles="https://github.com/kodi-pvr/pvr.hts/archive/${version}-${_kodi_release}.tar.gz"
checksum=bdaf63945d6552bead5a6e8ba4ffe1b8057e3b0c05b52c0fbf93a7834f652330 checksum=bdaf63945d6552bead5a6e8ba4ffe1b8057e3b0c05b52c0fbf93a7834f652330
nocross="depends on kodi-platform"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-legacy-compat" makedepends+=" musl-legacy-compat"
fi fi
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