kodi-addon-pvr-hts: enable cross compilation
This commit is contained in:
parent
4261c3afa6
commit
fd7baeb4cf
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue