Skip to content

Commit aecc1a7

Browse files
committed
Use SDL2 mixer in ffpyplayer recipe.
1 parent 2040bca commit aecc1a7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

pythonforandroid/recipes/ffpyplayer/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@
77

88

99
class FFPyPlayerRecipe(CythonRecipe):
10-
version = 'master'
11-
url = 'https://github.com/matham/ffpyplayer/archive/{version}.zip'
12-
depends = ['python2', 'sdl2', 'ffmpeg']
10+
version = 'android_sdl_mixer'
11+
url = 'https://github.com/rammie/ffpyplayer/archive/{version}.zip'
12+
depends = ['python2', 'sdl2', 'sdl2_mixer', 'ffmpeg']
1313
opt_depends = ['openssl', 'ffpyplayer_codecs']
1414

1515
def get_recipe_env(self, arch, with_flags_in_cc=True):
1616
env = super(FFPyPlayerRecipe, self).get_recipe_env(arch)
1717

18+
env["USE_SDL2_MIXER"] = "1"
19+
env["SDL_MIXER_INCLUDE_DIR"] = join(self.ctx.bootstrap.build_dir, 'jni', 'SDL2_mixer')
1820
env["SDL_INCLUDE_DIR"] = join(self.ctx.bootstrap.build_dir, 'jni', 'SDL', 'include')
1921
env["SDL_LIB_DIR"] = join(self.ctx.bootstrap.build_dir, 'libs', arch.arch)
2022

0 commit comments

Comments
 (0)