Created
January 8, 2012 15:44
-
-
Save tito/1578752 to your computer and use it in GitHub Desktop.
python-for-android/recipes/cymunk/recipe.sh
This file contains hidden or 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
#!/bin/bash | |
VERSION_cymunk= | |
URL_cymunk= | |
DEPS_cymunk=(chipmunk python) | |
MD5_cymunk= | |
BUILD_cymunk=$BUILD_PATH/cymunk/chipmunk-android | |
RECIPE_cymunk=$RECIPES_PATH/cymunk | |
function prebuild_cymunk() { | |
cd $BUILD_PATH/cymunk | |
if [ ! -d chipmunk-android ]; then | |
try git clone https://github.com/minou/chipmunk-android | |
fi | |
} | |
function build_cymunk() { | |
cd $BUILD_cymunk | |
push_arm | |
export CFLAGS="$CFLAGS -I$BUILD_chipmunk/include" | |
export LDFLAGS="$LDFLAGS -L$BUILD_chipmunk/build/src" | |
try find . -iname '*.pyx' -exec cython {} \; | |
try $BUILD_PATH/python-install/bin/python.host setup.py build_ext -v | |
try $BUILD_PATH/python-install/bin/python.host setup.py install -O2 | |
pop_arm | |
} | |
function postbuild_cymunk() { | |
true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment