Skip to content

Commit

Permalink
Merge pull request #3025 from T-Dynamos/ffpyplayer
Browse files Browse the repository at this point in the history
`ffpyplayer`: update to `4.5.1`
  • Loading branch information
AndreMiras authored Jun 2, 2024
2 parents 5dc17e1 + af04bee commit 71c8cc0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pythonforandroid/recipes/ffpyplayer/__init__.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
15 changes: 15 additions & 0 deletions pythonforandroid/recipes/ffpyplayer/setup.py.patch
Original file line number Diff line number Diff line change
@@ -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}')

0 comments on commit 71c8cc0

Please sign in to comment.