Skip to content

Instantly share code, notes, and snippets.

@tito
Created January 8, 2012 15:44
Show Gist options
  • Save tito/1578752 to your computer and use it in GitHub Desktop.
Save tito/1578752 to your computer and use it in GitHub Desktop.
python-for-android/recipes/cymunk/recipe.sh
#!/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