File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ class FFMpegRecipe(Recipe):
14
14
depends = ['openssl' , 'ffpyplayer_codecs' ] # TODO should be opts_depends
15
15
patches = ['patches/fix-libshine-configure.patch' ]
16
16
17
- # TODO add should_build(self, arch)
17
+ def should_build (self , arch ):
18
+ build_dir = self .get_build_dir (arch .arch )
19
+ return not exists (join (build_dir , 'lib' , 'libavcodec.so' ))
18
20
19
21
def prebuild_arch (self , arch ):
20
22
self .apply_patches (arch )
Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ class LibShineRecipe(Recipe):
10
10
url = 'https://github.com/toots/shine/archive/{version}.zip'
11
11
md5sum = '24cf9488d06f7acf0a0fbb162cc587ab'
12
12
13
- # TODO add should_build(self, arch)
13
+ def should_build (self , arch ):
14
+ build_dir = self .get_build_dir (arch .arch )
15
+ return not exists (join (build_dir , 'lib' , 'libshine.a' ))
14
16
15
17
def build_arch (self , arch ):
16
18
with current_directory (self .get_build_dir (arch .arch )):
Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ class LibX264Recipe(Recipe):
10
10
url = 'http://mirror.yandex.ru/mirrors/ftp.videolan.org/x264/snapshots/{version}.tar.bz2'
11
11
md5sum = '6bcca94ae1d81ee14236ba9af42135d9'
12
12
13
- # TODO add should_build(self, arch)
13
+ def should_build (self , arch ):
14
+ build_dir = self .get_build_dir (arch .arch )
15
+ return not exists (join (build_dir , 'lib' , 'libx264.a' ))
14
16
15
17
def build_arch (self , arch ):
16
18
with current_directory (self .get_build_dir (arch .arch )):
You can’t perform that action at this time.
0 commit comments