forked from kivy/python-for-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kivy#320 from kived/recipe-environment
save and restore environment when running recipe functions
- Loading branch information
Showing
3 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
VERSION_freetype=${VERSION_freetype:-2.5.5} | ||
URL_freetype=http://download.savannah.gnu.org/releases/freetype/freetype-2.5.5.tar.gz | ||
BUILD_freetype=$BUILD_PATH/freetype/$(get_directory $URL_freetype) | ||
RECIPE_freetype=$RECIPES_PATH/freetype | ||
|
||
# function called for preparing source code if needed | ||
# (you can apply patch etc here.) | ||
function prebuild_freetype() { | ||
true | ||
} | ||
|
||
function build_freetype() { | ||
cd $BUILD_freetype | ||
push_arm | ||
|
||
#try ./configure --build=i686-pc-linux-gnu --host=arm-linux-androideabi --prefix="$BUILD_PATH/python-install" --without-zlib --with-png=no --without-harfbuzz --enable-shared | ||
try ./configure --build=i686-pc-linux-gnu --host=arm-linux-androideabi --prefix=$BUILD_freetype --without-zlib --with-png=no --without-harfbuzz --enable-shared | ||
try make -j5 | ||
pop_arm | ||
|
||
try cp $BUILD_freetype/objs/.libs/libfreetype.so $LIBS_PATH | ||
} | ||
|
||
# function called after all the compile have been done | ||
function postbuild_freetype() { | ||
true | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters