Skip to content

Commit 0feb6c4

Browse files
committed
pyav: update to 17.0.0
1 parent 2f107b1 commit 0feb6c4

2 files changed

Lines changed: 8 additions & 40 deletions

File tree

pythonforandroid/recipes/av/__init__.py

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
11
from pythonforandroid.toolchain import Recipe
2-
from pythonforandroid.recipe import CythonRecipe
2+
from pythonforandroid.recipe import PyProjectRecipe
33

44

5-
class PyAVRecipe(CythonRecipe):
5+
class PyAVRecipe(PyProjectRecipe):
66

77
name = "av"
8-
version = "13.1.0"
8+
version = "17.0.0"
99
url = "https://github.com/PyAV-Org/PyAV/archive/v{version}.zip"
10-
11-
depends = ["python3", "cython", "ffmpeg", "av_codecs"]
12-
opt_depends = ["openssl"]
13-
patches = ['patches/compilation_syntax_errors.patch']
10+
depends = ["python3", "ffmpeg", "av_codecs", "openssl"]
11+
hostpython_prerequisites = ["cython>=3.1.0"]
1412

1513
def get_recipe_env(self, arch, with_flags_in_cc=True):
1614
env = super().get_recipe_env(arch)
17-
18-
build_dir = Recipe.get_recipe("ffmpeg", self.ctx).get_build_dir(
19-
arch.arch
20-
)
21-
self.setup_extra_args = ["--ffmpeg-dir={}".format(build_dir)]
22-
15+
build_dir = Recipe.get_recipe("ffmpeg", self.ctx).get_build_dir(arch.arch)
16+
env["CFLAGS"] += f" -I{build_dir}"
17+
self.extra_build_args += ["--config-setting=--ffmpeg-dir={}".format(build_dir)]
2318
return env
2419

2520

pythonforandroid/recipes/av/patches/compilation_syntax_errors.patch

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)