diff --git a/pythonforandroid/recipes/ffpyplayer/__init__.py b/pythonforandroid/recipes/ffpyplayer/__init__.py index 6260037a70..a78f65d8c6 100644 --- a/pythonforandroid/recipes/ffpyplayer/__init__.py +++ b/pythonforandroid/recipes/ffpyplayer/__init__.py @@ -1,12 +1,12 @@ -from pythonforandroid.recipe import CythonRecipe -from pythonforandroid.toolchain import Recipe +from pythonforandroid.recipe import PyProjectRecipe, Recipe from os.path import join -class FFPyPlayerRecipe(CythonRecipe): - version = 'v4.3.2' +class FFPyPlayerRecipe(PyProjectRecipe): + version = 'v4.5.1' url = 'https://github.com/matham/ffpyplayer/archive/{version}.zip' depends = ['python3', 'sdl2', 'ffmpeg'] + patches = ["setup.py.patch"] opt_depends = ['openssl', 'ffpyplayer_codecs'] def get_recipe_env(self, arch, with_flags_in_cc=True): diff --git a/pythonforandroid/recipes/ffpyplayer/setup.py.patch b/pythonforandroid/recipes/ffpyplayer/setup.py.patch new file mode 100644 index 0000000000..c082358f43 --- /dev/null +++ b/pythonforandroid/recipes/ffpyplayer/setup.py.patch @@ -0,0 +1,15 @@ +--- ffpyplayer/setup.py 2024-06-02 11:10:49.691183467 +0530 ++++ ffpyplayer.mod/setup.py 2024-06-02 11:20:16.220966873 +0530 +@@ -27,12 +27,6 @@ + # This sets whether or not Cython gets added to setup_requires. + declare_cython = False + +-if platform in ('ios', 'android'): +- # NEVER use or declare cython on these platforms +- print('Not using cython on %s' % platform) +- can_use_cython = False +-else: +- declare_cython = True + + src_path = build_path = dirname(__file__) + print(f'Source/build path: {src_path}')