Skip to content

Commit af04bee

Browse files
committed
ffpyplayer: update to 4.5.1
1 parent 5dc17e1 commit af04bee

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

pythonforandroid/recipes/ffpyplayer/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
from pythonforandroid.recipe import CythonRecipe
2-
from pythonforandroid.toolchain import Recipe
1+
from pythonforandroid.recipe import PyProjectRecipe, Recipe
32
from os.path import join
43

54

6-
class FFPyPlayerRecipe(CythonRecipe):
7-
version = 'v4.3.2'
5+
class FFPyPlayerRecipe(PyProjectRecipe):
6+
version = 'v4.5.1'
87
url = 'https://github.com/matham/ffpyplayer/archive/{version}.zip'
98
depends = ['python3', 'sdl2', 'ffmpeg']
9+
patches = ["setup.py.patch"]
1010
opt_depends = ['openssl', 'ffpyplayer_codecs']
1111

1212
def get_recipe_env(self, arch, with_flags_in_cc=True):
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
--- ffpyplayer/setup.py 2024-06-02 11:10:49.691183467 +0530
2+
+++ ffpyplayer.mod/setup.py 2024-06-02 11:20:16.220966873 +0530
3+
@@ -27,12 +27,6 @@
4+
# This sets whether or not Cython gets added to setup_requires.
5+
declare_cython = False
6+
7+
-if platform in ('ios', 'android'):
8+
- # NEVER use or declare cython on these platforms
9+
- print('Not using cython on %s' % platform)
10+
- can_use_cython = False
11+
-else:
12+
- declare_cython = True
13+
14+
src_path = build_path = dirname(__file__)
15+
print(f'Source/build path: {src_path}')

0 commit comments

Comments
 (0)