@@ -8,7 +8,8 @@ class FFMpegRecipe(Recipe):
8
8
# Moved to github.com instead of ffmpeg.org to improve download speed
9
9
url = 'https://github.com/FFmpeg/FFmpeg/archive/{version}.zip'
10
10
depends = ['sdl2' ] # Need this to build correct recipe order
11
- opts_depends = ['openssl' , 'ffpyplayer_codecs' ]
11
+ opts_depends = ['openssl' , 'ffpyplayer_codecs' , 'av_codecs' ]
12
+ patches = ['patches/configure.patch' ]
12
13
13
14
def should_build (self , arch ):
14
15
build_dir = self .get_build_dir (arch .arch )
@@ -39,7 +40,9 @@ def build_arch(self, arch):
39
40
'-DOPENSSL_API_COMPAT=0x10002000L' ]
40
41
ldflags += ['-L' + build_dir ]
41
42
42
- if 'ffpyplayer_codecs' in self .ctx .recipe_build_order :
43
+ codecs_opts = {"ffpyplayer_codecs" , "av_codecs" }
44
+ if codecs_opts .intersection (self .ctx .recipe_build_order ):
45
+
43
46
# Enable GPL
44
47
flags += ['--enable-gpl' ]
45
48
@@ -48,7 +51,7 @@ def build_arch(self, arch):
48
51
build_dir = Recipe .get_recipe (
49
52
'libx264' , self .ctx ).get_build_dir (arch .arch )
50
53
cflags += ['-I' + build_dir + '/include/' ]
51
- ldflags += ['-lx264' , '-L' + build_dir + '/lib/' ]
54
+ ldflags += [build_dir + '/lib/' + 'libx264.a ' ]
52
55
53
56
# libshine
54
57
flags += ['--enable-libshine' ]
0 commit comments