Skip to content

Commit b2b7605

Browse files
committed
Freetype Recipe added
1 parent a38252e commit b2b7605

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

recipes/freetype/recipe.sh

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/bash
2+
3+
# version of your package
4+
VERSION_freetype=2.4.11
5+
6+
# dependencies of this recipe
7+
DEPS_freetype=()
8+
9+
# url of the package
10+
URL_freetype=http://download.savannah.gnu.org/releases/freetype/freetype-$VERSION_freetype.tar.gz
11+
12+
# md5 of the package
13+
MD5_freetype=5af8234cf36f64dc2b97f44f89325117
14+
15+
# default build path
16+
BUILD_freetype=$BUILD_PATH/freetype/$(get_directory $URL_freetype)
17+
18+
# default recipe path
19+
RECIPE_freetype=$RECIPES_PATH/freetype
20+
21+
RECIPE_freetype=$RECIPES_PATH/freetype
22+
# function called for preparing source code if needed
23+
# (you can apply patch etc here.)
24+
function prebuild_freetype() {
25+
true
26+
}
27+
28+
# function called to build the source code
29+
function build_freetype() {
30+
cd $BUILD_freetype
31+
push_arm
32+
try ./configure --host=arm-linux-androideabi --prefix="$BUILD_PATH/python-install"
33+
try make
34+
try make install
35+
pop_arm
36+
}
37+
38+
# function called after all the compile have been done
39+
function postbuild_freetype() {
40+
true
41+
}
42+

0 commit comments

Comments
 (0)