From f3d619767b4c5da8208d87ee1587f10b85d8cf76 Mon Sep 17 00:00:00 2001 From: Dexer <73297572+DexerBR@users.noreply.github.com> Date: Mon, 1 Sep 2025 23:55:08 -0300 Subject: [PATCH 1/6] bump to 3.2.22 --- pythonforandroid/recipes/sdl3/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pythonforandroid/recipes/sdl3/__init__.py b/pythonforandroid/recipes/sdl3/__init__.py index 139509c3e8..4876ee5d28 100644 --- a/pythonforandroid/recipes/sdl3/__init__.py +++ b/pythonforandroid/recipes/sdl3/__init__.py @@ -6,9 +6,9 @@ class LibSDL3Recipe(BootstrapNDKRecipe): - version = "3.2.18" + version = "3.2.22" url = "https://github.com/libsdl-org/SDL/releases/download/release-{version}/SDL3-{version}.tar.gz" - md5sum = "c7808ef624b74e2ac69cf531e78e0c6e" + md5sum = "99334e41c51003e70efe87ccda653b5c" conflicts = ["sdl2"] From baffd42d022e24274fba61c4406ae118605ee982 Mon Sep 17 00:00:00 2001 From: Dexer <73297572+DexerBR@users.noreply.github.com> Date: Sat, 21 Feb 2026 12:24:36 -0300 Subject: [PATCH 2/6] bump sdl3 and sdl3_image --- pythonforandroid/recipes/sdl3/__init__.py | 4 ++-- pythonforandroid/recipes/sdl3_image/__init__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pythonforandroid/recipes/sdl3/__init__.py b/pythonforandroid/recipes/sdl3/__init__.py index 4876ee5d28..b4735664d8 100644 --- a/pythonforandroid/recipes/sdl3/__init__.py +++ b/pythonforandroid/recipes/sdl3/__init__.py @@ -6,9 +6,9 @@ class LibSDL3Recipe(BootstrapNDKRecipe): - version = "3.2.22" + version = "3.4.2" url = "https://github.com/libsdl-org/SDL/releases/download/release-{version}/SDL3-{version}.tar.gz" - md5sum = "99334e41c51003e70efe87ccda653b5c" + md5sum = "b488ea1ede947c06855588314effe905" conflicts = ["sdl2"] diff --git a/pythonforandroid/recipes/sdl3_image/__init__.py b/pythonforandroid/recipes/sdl3_image/__init__.py index f6d705b168..0a09dff97c 100644 --- a/pythonforandroid/recipes/sdl3_image/__init__.py +++ b/pythonforandroid/recipes/sdl3_image/__init__.py @@ -6,7 +6,7 @@ class LibSDL3Image(BootstrapNDKRecipe): - version = "3.2.4" + version = "3.4.0" url = "https://github.com/libsdl-org/SDL_image/releases/download/release-{version}/SDL3_image-{version}.tar.gz" dir_name = "SDL3_image" From 94ee5156f6fd4776734048e19d94f0d49801e52e Mon Sep 17 00:00:00 2001 From: Dexer <73297572+DexerBR@users.noreply.github.com> Date: Mon, 1 Sep 2025 23:55:08 -0300 Subject: [PATCH 3/6] bump to 3.2.22 --- pythonforandroid/recipes/sdl3/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pythonforandroid/recipes/sdl3/__init__.py b/pythonforandroid/recipes/sdl3/__init__.py index 139509c3e8..4876ee5d28 100644 --- a/pythonforandroid/recipes/sdl3/__init__.py +++ b/pythonforandroid/recipes/sdl3/__init__.py @@ -6,9 +6,9 @@ class LibSDL3Recipe(BootstrapNDKRecipe): - version = "3.2.18" + version = "3.2.22" url = "https://github.com/libsdl-org/SDL/releases/download/release-{version}/SDL3-{version}.tar.gz" - md5sum = "c7808ef624b74e2ac69cf531e78e0c6e" + md5sum = "99334e41c51003e70efe87ccda653b5c" conflicts = ["sdl2"] From 36c2416e12128d3536b16f59698bb01766322be8 Mon Sep 17 00:00:00 2001 From: Dexer <73297572+DexerBR@users.noreply.github.com> Date: Sat, 21 Feb 2026 12:24:36 -0300 Subject: [PATCH 4/6] bump sdl3 and sdl3_image --- pythonforandroid/recipes/sdl3/__init__.py | 4 ++-- pythonforandroid/recipes/sdl3_image/__init__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pythonforandroid/recipes/sdl3/__init__.py b/pythonforandroid/recipes/sdl3/__init__.py index 4876ee5d28..b4735664d8 100644 --- a/pythonforandroid/recipes/sdl3/__init__.py +++ b/pythonforandroid/recipes/sdl3/__init__.py @@ -6,9 +6,9 @@ class LibSDL3Recipe(BootstrapNDKRecipe): - version = "3.2.22" + version = "3.4.2" url = "https://github.com/libsdl-org/SDL/releases/download/release-{version}/SDL3-{version}.tar.gz" - md5sum = "99334e41c51003e70efe87ccda653b5c" + md5sum = "b488ea1ede947c06855588314effe905" conflicts = ["sdl2"] diff --git a/pythonforandroid/recipes/sdl3_image/__init__.py b/pythonforandroid/recipes/sdl3_image/__init__.py index f6d705b168..0a09dff97c 100644 --- a/pythonforandroid/recipes/sdl3_image/__init__.py +++ b/pythonforandroid/recipes/sdl3_image/__init__.py @@ -6,7 +6,7 @@ class LibSDL3Image(BootstrapNDKRecipe): - version = "3.2.4" + version = "3.4.0" url = "https://github.com/libsdl-org/SDL_image/releases/download/release-{version}/SDL3_image-{version}.tar.gz" dir_name = "SDL3_image" From f659c0c2b791dd55fea9e1e6f318cba1f4da8c3e Mon Sep 17 00:00:00 2001 From: Dexer <73297572+DexerBR@users.noreply.github.com> Date: Mon, 2 Mar 2026 15:03:38 -0300 Subject: [PATCH 5/6] fix recipes build --- pythonforandroid/recipes/kivy/__init__.py | 2 +- pythonforandroid/recipes/kivy/use_cython.patch | 11 ----------- pythonforandroid/recipes/sdl3_image/enable-webp.patch | 11 ++++++----- 3 files changed, 7 insertions(+), 17 deletions(-) delete mode 100644 pythonforandroid/recipes/kivy/use_cython.patch diff --git a/pythonforandroid/recipes/kivy/__init__.py b/pythonforandroid/recipes/kivy/__init__.py index c545bbc4c1..31d76aa863 100644 --- a/pythonforandroid/recipes/kivy/__init__.py +++ b/pythonforandroid/recipes/kivy/__init__.py @@ -34,7 +34,6 @@ class KivyRecipe(PyProjectRecipe): # WARNING: Remove this patch when a new Kivy version is released. patches = [ ("sdl-gl-swapwindow-nogil.patch", is_kivy_affected_by_deadlock_issue), - "use_cython.patch", "no-ast-str.patch" ] @@ -59,6 +58,7 @@ def get_recipe_env(self, arch, **kwargs): # NDKPLATFORM is our switch for detecting Android platform, so can't be None env['NDKPLATFORM'] = "NOTNONE" + env['KIVY_CROSS_PLATFORM'] = 'android' if 'sdl2' in self.ctx.recipe_build_order: env['USE_SDL2'] = '1' env['KIVY_SPLIT_EXAMPLES'] = '1' diff --git a/pythonforandroid/recipes/kivy/use_cython.patch b/pythonforandroid/recipes/kivy/use_cython.patch deleted file mode 100644 index 2a0d2074ba..0000000000 --- a/pythonforandroid/recipes/kivy/use_cython.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- kivy-master/setup.py 2025-02-25 03:08:18.000000000 +0530 -+++ kivy-master.mod/setup.py 2025-03-01 13:10:24.227808612 +0530 -@@ -249,7 +249,7 @@ - # This determines whether Cython specific functionality may be used. - can_use_cython = True - --if platform in ('ios', 'android'): -+if platform in ('ios'): - # NEVER use or declare cython on these platforms - print('Not using cython on %s' % platform) - can_use_cython = False diff --git a/pythonforandroid/recipes/sdl3_image/enable-webp.patch b/pythonforandroid/recipes/sdl3_image/enable-webp.patch index 98d72f2017..ea9b6c4ff9 100644 --- a/pythonforandroid/recipes/sdl3_image/enable-webp.patch +++ b/pythonforandroid/recipes/sdl3_image/enable-webp.patch @@ -1,12 +1,13 @@ -diff -Naur SDL2_image.orig/Android.mk SDL2_image/Android.mk ---- SDL2_image.orig/Android.mk 2022-10-03 20:51:52.000000000 +0200 -+++ SDL2_image/Android.mk 2022-10-03 20:52:48.000000000 +0200 -@@ -32,7 +32,7 @@ +diff --git a/Android.mk b/Android.mk +index ad6d0f40..133379c8 100644 +--- a/Android.mk ++++ b/Android.mk +@@ -33,7 +33,7 @@ PNG_LIBRARY_PATH := external/libpng # Enable this if you want to support loading WebP images # The library path should be a relative path to this directory. -SUPPORT_WEBP ?= false +SUPPORT_WEBP := true + SUPPORT_SAVE_WEBP ?= true WEBP_LIBRARY_PATH := external/libwebp - From 23d8e777f5e75ea7f54fdc7df7152643f0bec230 Mon Sep 17 00:00:00 2001 From: Dexer <73297572+DexerBR@users.noreply.github.com> Date: Mon, 2 Mar 2026 16:19:50 -0300 Subject: [PATCH 6/6] disable SUPPORT_SAVE_WEBP --- pythonforandroid/recipes/sdl3_image/enable-webp.patch | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pythonforandroid/recipes/sdl3_image/enable-webp.patch b/pythonforandroid/recipes/sdl3_image/enable-webp.patch index ea9b6c4ff9..a8624a5b4b 100644 --- a/pythonforandroid/recipes/sdl3_image/enable-webp.patch +++ b/pythonforandroid/recipes/sdl3_image/enable-webp.patch @@ -1,13 +1,15 @@ diff --git a/Android.mk b/Android.mk -index ad6d0f40..133379c8 100644 +index ad6d0f40..ac77a18c 100644 --- a/Android.mk +++ b/Android.mk -@@ -33,7 +33,7 @@ PNG_LIBRARY_PATH := external/libpng +@@ -33,8 +33,8 @@ PNG_LIBRARY_PATH := external/libpng # Enable this if you want to support loading WebP images # The library path should be a relative path to this directory. -SUPPORT_WEBP ?= false +-SUPPORT_SAVE_WEBP ?= true +SUPPORT_WEBP := true - SUPPORT_SAVE_WEBP ?= true ++SUPPORT_SAVE_WEBP := false WEBP_LIBRARY_PATH := external/libwebp +