alarm/kodi-rpi-git to 20.x.60294.4343e7cfba-1

This commit is contained in:
graysky 2022-05-08 11:21:16 -04:00
parent 2a98f7e583
commit d84f7e1707

View file

@ -13,8 +13,8 @@ pkgname=(
'kodi-rpi-git-eventclients' 'kodi-rpi-git-tools-texturepacker' 'kodi-rpi-git-dev'
)
_commitnumber=60292
_commit=ba1f364b59a477c16378035019fc319c1a89658e
_commitnumber=60294
_commit=4343e7cfba477a678bea010f2c3e7d5ee4f7d759
# set this to anything to build with clang
# recommend manually setting -DUSE_LTO=OFF to -DUSE_LTO=$(nproc) in build()
@ -23,7 +23,7 @@ _clangbuild=
pkgver="20.x.$_commitnumber.${_commit:0:10}"
pkgrel=1
arch=('armv7h' 'aarch64')
url="https://github.com/graysky2/xbmc/tree/gs-gbm_nexus-v3"
url="https://github.com/graysky2/xbmc/tree/gs-gbm_nexus-v4"
license=('GPL2')
makedepends=(
'afpfs-ng' 'bluez-libs' 'cmake' 'curl' 'dav1d' 'doxygen' 'git' 'glew'
@ -81,7 +81,7 @@ noextract=(
"flatbuffers-$_flatbuffers_version.tar.gz"
"libudfread-$_libudfread_version.tar.gz"
)
sha256sums=('7d34414489fb056f42b525d78d8fc77a1fc18b44ca17fd32a5166803710ae9a7'
sha256sums=('660b9e19e85a5e564fd94f0f219b0e6987fba63b0588d5960111a1c87f8b8762'
'38816f8373e243bc5950449b4f3b18938c4e1c59348e3411e23f31db4072e40d'
'071e414e61b795f2ff9015b21a85fc009dde967f27780d23092643916538a57a'
'a30b6aa0aad0f2c505bc77948af2d5531a80b6e68112addb4c123fca24d5d3bf'
@ -108,7 +108,7 @@ prepare() {
tools/depends/target/ffmpeg/0002-use-mcpu-avoiding-march-and-mtune.patch
# patch kodi build system to apply the patch we just copied over
patch -Np1 -i ../0001-mcpu-cortex-application-to-ffmpeg.patch
patch -p1 -i ../0001-mcpu-cortex-application-to-ffmpeg.patch
}
build() {
@ -118,22 +118,20 @@ build() {
# uses here so unset them and redefine below
unset CFLAGS CXXFLAGS
CFLAGS="-O2 -pipe -fno-plt"
CXXFLAGS="${CFLAGS}"
if [[ $CARCH = "armv7h" ]]; then
# we use -mcpu=cortex-a53 rather than cortex-a72 to maximize RPi 3B and RPi 4B/400 compatibility
# in a single package which is consistent with how LibreELEC is currently built, see:
# https://github.com/LibreELEC/LibreELEC.tv/commit/8e6605f6da56f25a00272b1cbacb93d40200153f#commitcomment-46341034
export CFLAGS+=" -mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard"
export CXXFLAGS="${CFLAGS}"
CFLAGS="-mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard"
elif [[ $CARCH = "aarch64" ]]; then
# note that we use a value of cortex-a53 here to allow RPi3 and RPi4 to use the same package
# consistent with rationale of previous comment
export CFLAGS+=" -mcpu=cortex-a53"
export CXXFLAGS="${CFLAGS}"
CFLAGS="-mcpu=cortex-a53"
fi
export CFLAGS+=" -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection"
export CXXFLAGS+="${CFLAGS} -Wp,-D_GLIBCXX_ASSERTIONS"
if [[ -n "$_clangbuild" ]]; then
export CC=clang CXX=clang++
# depending on your build system, optionally redefine DISTCC_HOSTS