alarm/kodi-rpi-legacy to 21.0-5

This commit is contained in:
graysky 2024-05-14 09:56:03 -04:00
parent 0f3c207866
commit 4363e4d3ea
2 changed files with 45 additions and 3 deletions

View file

@ -0,0 +1,25 @@
From 674dff295d535ab063ea18a5f6d7b06e24994cf6 Mon Sep 17 00:00:00 2001
From: graysky <therealgraysky@proton.me>
Date: Fri, 2 Feb 2024 14:58:55 -0500
Subject: [PATCH] taglib: use 1.13.1 for internal build like LE
---
tools/depends/target/taglib/TAGLIB-VERSION | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/depends/target/taglib/TAGLIB-VERSION b/tools/depends/target/taglib/TAGLIB-VERSION
index 8f980b0..d9d76c8 100644
--- a/tools/depends/target/taglib/TAGLIB-VERSION
+++ b/tools/depends/target/taglib/TAGLIB-VERSION
@@ -1,6 +1,6 @@
LIBNAME=taglib
-VERSION=1.13
+VERSION=1.13.1
ARCHIVE=$(LIBNAME)-$(VERSION).tar.gz
-SHA512=b6e3253d158b41173073c0da1915f5e4a3de947db918660817cb1c755fba7e3723ea1a335fbbc30b0dcf942348a471b493fe2ce1d52d1a808578edee14e1bfc7
+SHA512=986231ee62caa975afead7e94630d58acaac25a38bc33d4493d51bd635d79336e81bba60586d7355ebc0670e31f28d32da3ecceaf33292e4bc240c64bf00f35b
BYPRODUCT=libtag.a
BYPRODUCT_WIN=tag.lib
--
2.43.0

View file

@ -24,7 +24,7 @@ _commit=97e00d4b693ae20da5c9b9c4dd91b762b8351ff1
_clangbuild=
pkgver=21.0
pkgrel=4
pkgrel=5
arch=('armv7h')
url="https://github.com/graysky2/xbmc/tree/gs-gbm_omega"
license=('GPL2')
@ -35,7 +35,7 @@ makedepends=(
'libmodplug' 'libmpeg2' 'libnfs' 'libplist' 'libpulse'
'libxrandr' 'libxslt' 'lirc' 'lzo' 'mesa' 'nasm'
'pipewire' 'python-pycryptodomex' 'python-pillow' 'python-pybluez'
'python-simplejson' 'shairplay' 'smbclient' 'sndio' 'spdlog' 'taglib'
'python-simplejson' 'shairplay' 'smbclient' 'sndio' 'spdlog'
'tinyxml' 'swig' 'upower' 'giflib' 'rapidjson' 'ghostscript' 'meson' 'gtest'
'graphviz' 'libinput' 'libxkbcommon' 'pcre' 'libdisplay-info' 'tinyxml2' 'python-setuptools'
)
@ -68,9 +68,11 @@ source=(
"https://mirrors.kodi.tv/build-deps/sources/fstrcmp-$_fstrcmp_version.tar.gz"
"https://mirrors.kodi.tv/build-deps/sources/flatbuffers-$_flatbuffers_version.tar.gz"
"https://mirrors.kodi.tv/build-deps/sources/libudfread-$_libudfread_version.tar.gz"
https://taglib.github.io/releases/taglib-1.13.1.tar.gz
"ArchARM-kodi-init-v$_init_version.tar.gz::https://github.com/graysky2/kodi-standalone-service/archive/v$_init_version.tar.gz"
kodi.config.txt
0001-temp-revert-fences.patch
0002-taglib-use-1.13.1-for-internal-build-like-LE.patch
)
backup=(boot/kodi.config.txt etc/conf.d/kodi-standalone)
noextract=(
@ -82,6 +84,7 @@ noextract=(
"fstrcmp-$_fstrcmp_version.tar.gz"
"flatbuffers-$_flatbuffers_version.tar.gz"
"libudfread-$_libudfread_version.tar.gz"
taglib-1.13.1.tar.gz
)
sha256sums=('3a07933a16e51251dcaefa77b5ecb1da5bcc70c800918baa980ea05a6588b36d'
'f38c4a4e7a4f4da6d8e83b8852489aa3bb6588a915dc41f5ee89d9aad305a06e'
@ -92,9 +95,11 @@ sha256sums=('3a07933a16e51251dcaefa77b5ecb1da5bcc70c800918baa980ea05a6588b36d'
'e4018e850f80700acee8da296e56e15b1eef711ab15157e542e7d7e1237c3476'
'8aff985da30aaab37edf8e5b02fda33ed4cbdd962699a8e2af98fdef306f4e4d'
'2bf16726ac98d093156195bb049a663e07d3323e079c26912546f4e05c77bac5'
'c8da2b10f1bfec2cd7dbfcd33f4a2338db0765d851a50583d410bacf055cfd0b'
'8f8ab84a0cf3bd382edb118e475b336ca2fe1e1d4da3ad8e4637f8278ed9179c'
'6418929a98e2c8ebb8eb85c3d2e48952b29b57f033afd1c05dd845536ab9a3f5'
'e812fc2f74d71915c3179785a8f99647612bd21ce96f866769ee1bc58682ee3b')
'e812fc2f74d71915c3179785a8f99647612bd21ce96f866769ee1bc58682ee3b'
'c0efb77425f86e8a743d59529c4ab0b2d634d53413db1c6f71974c000bc31c14')
prepare() {
[[ -d kodi-build ]] && rm -rf kodi-build
@ -105,11 +110,21 @@ prepare() {
# fix https://forum.kodi.tv/showthread.php?tid=376430
patch -p1 -i ../0001-temp-revert-fences.patch
# modify to use internal taglib v1.13.1 due to build fails for armv7h with v2.0+
patch -p1 -i ../0002-taglib-use-1.13.1-for-internal-build-like-LE.patch
}
build() {
cd kodi-build
# -march= defined in /etc/makepkg.conf will override the value for -mcpu we
# uses here so unset them and redefine below
unset CFLAGS CXXFLAGS
CFLAGS="-mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard"
CFLAGS+=" -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection"
CXXFLAGS+="${CFLAGS} -Wp,-D_GLIBCXX_ASSERTIONS"
if [[ -n "$_clangbuild" ]]; then
export CC=clang CXX=clang++
# depending on your build system, optionally redefine DISTCC_HOSTS
@ -150,6 +165,8 @@ build() {
-DENABLE_INTERNAL_FSTRCMP=ON
-DENABLE_INTERNAL_FLATBUFFERS=ON
-DENABLE_INTERNAL_UDFREAD=ON
-DENABLE_INTERNAL_TAGLIB=ON
-DTAGLIB_URL="$srcdir/taglib-1.13.1.tar.gz"
-Dlibdvdcss_URL="$srcdir/libdvdcss-$_libdvdcss_version.tar.gz"
-Dlibdvdnav_URL="$srcdir/libdvdnav-$_libdvdnav_version.tar.gz"
-Dlibdvdread_URL="$srcdir/libdvdread-$_libdvdread_version.tar.gz"