@@ -8,7 +8,8 @@ class FFMpegRecipe(Recipe):
88 # Moved to github.com instead of ffmpeg.org to improve download speed
99 url = 'https://github.com/FFmpeg/FFmpeg/archive/{version}.zip'
1010 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' ]
1213
1314 def should_build (self , arch ):
1415 build_dir = self .get_build_dir (arch .arch )
@@ -39,7 +40,9 @@ def build_arch(self, arch):
3940 '-DOPENSSL_API_COMPAT=0x10002000L' ]
4041 ldflags += ['-L' + build_dir ]
4142
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+
4346 # Enable GPL
4447 flags += ['--enable-gpl' ]
4548
@@ -48,7 +51,7 @@ def build_arch(self, arch):
4851 build_dir = Recipe .get_recipe (
4952 'libx264' , self .ctx ).get_build_dir (arch .arch )
5053 cflags += ['-I' + build_dir + '/include/' ]
51- ldflags += ['-lx264' , '-L' + build_dir + '/lib/' ]
54+ ldflags += [build_dir + '/lib/' + 'libx264.a ' ]
5255
5356 # libshine
5457 flags += ['--enable-libshine' ]
0 commit comments