<s> from toolchain import Recipe , shprint <EOL> from os . path import join <EOL> import sh <EOL> arch_mapper = { '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' } <EOL> class OpensslRecipe ( Recipe ) : <EOL> version = "<STR_LIT>" <EOL> url = "<STR_LIT>" <EOL> libraries = [ "<STR_LIT>" , "<STR_LIT>" ] <EOL> include_dir = "<STR_LIT>" <EOL> include_per_arch = True <EOL> def build_arch ( self , arch ) : <EOL> options_iphoneos = ( <EOL> "<STR_LIT>" . format ( arch . sysroot ) , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> ) <EOL> build_env = arch . get_env ( ) <EOL> target = arch_mapper [ arch . arch ] <EOL> shprint ( sh . env , _env = build_env ) <EOL> sh . perl ( join ( self . build_dir , "<STR_LIT>" ) , <EOL> target , <EOL> _env = build_env ) <EOL> if target == '<STR_LIT>' : <EOL> sh . sed ( "<STR_LIT>" , "<STR_LIT>" . format ( build_env [ '<STR_LIT>' ] , <EOL> "<STR_LIT:U+0020>" . join ( options_iphoneos ) ) , <EOL> "<STR_LIT>" ) <EOL> sh . sed ( "<STR_LIT>" , "<STR_LIT>" , <EOL> "<STR_LIT>" ) <EOL> else : <EOL> sh . sed ( "<STR_LIT>" , "<STR_LIT>" . format ( build_env [ '<STR_LIT>' ] ) , <EOL> "<STR_LIT>" ) <EOL> shprint ( sh . make , "<STR_LIT>" ) <EOL> shprint ( sh . make , "<STR_LIT>" , "<STR_LIT>" ) <EOL> recipe = OpensslRecipe ( ) </s>
