@@ -10,35 +10,28 @@ class FreetypeRecipe(Recipe):
10
10
version = '2.5.5'
11
11
url = 'http://download.savannah.gnu.org/releases/freetype/freetype-{version}.tar.gz' # noqa
12
12
13
- depends = ['harfbuzz' ]
14
-
15
13
def should_build (self , arch ):
16
14
if exists (join (self .get_build_dir (arch .arch ),
17
- 'objs' , '.libs' , 'libfreetype.a ' )):
15
+ 'objs' , '.libs' , 'libfreetype.so ' )):
18
16
return False
19
17
return True
20
18
21
19
def build_arch (self , arch ):
22
20
env = self .get_recipe_env (arch )
23
21
24
- harfbuzz_recipe = Recipe .get_recipe ('harfbuzz' , self .ctx )
25
- env ['LDFLAGS' ] = ' ' .join (
26
- [env ['LDFLAGS' ],
27
- '-L{}' .format (join (harfbuzz_recipe .get_build_dir (arch .arch ),
28
- 'src' , '.libs' ))])
29
-
30
22
with current_directory (self .get_build_dir (arch .arch )):
31
23
configure = sh .Command ('./configure' )
32
24
shprint (configure ,
33
25
'--host=arm-linux-androideabi' ,
34
26
'--prefix={}' .format (realpath ('.' )),
35
27
'--without-zlib' ,
28
+ '--without-harfbuzz' ,
36
29
'--with-png=no' ,
37
- '--disable-shared' ,
38
30
_env = env )
39
31
shprint (sh .make , '-j5' , _env = env )
40
32
41
- shprint (sh .cp , 'objs/.libs/libfreetype.a' , self .ctx .libs_dir )
33
+ def postbuild_arch (self , arch ):
34
+ shprint (sh .cp , 'objs/.libs/libfreetype.so' , self .ctx .get_libs_dir (arch .arch ))
42
35
43
36
44
37
recipe = FreetypeRecipe ()
0 commit comments