8000 add kivy recipe · felixjimenez/python-for-android@a834d4e · GitHub
[go: up one dir, main page]

Skip to content

Commit a834d4e

Browse files
committed
add kivy recipe
1 parent 4728d64 commit a834d4e

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

recipes/kivy/recipe.sh

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/bin/bash
2+
3+
PRIORITY_kivy=30
4+
VERSION_kivy=
5+
URL_kivy=
6+
DEPS_kivy=(pygame)
7+
MD5_kivy=
8+
BUILD_kivy=$BUILD_PATH/kivy/kivy
9+
RECIPE_kivy=$RECIPES_PATH/kivy
10+
11+
function prebuild_kivy() {
12+
cd $BUILD_PATH/kivy
13+
14+
if [ ! -d kivy ]; then
15+
# initial clone
16+
try git clone https://github.com/kivy/kivy
17+
cd kivy
18+
try git checkout android-support
19+
fi
20+
}
21+
22+
function build_kivy() {
23+
cd $BUILD_kivy
24+
25+
push_arm
26+
27+
export LDFLAGS="$LDFLAGS -L$LIBS_PATH"
28+
29+
# fake try to be able to cythonize generated files
30+
$BUILD_PATH/python-install/bin/python.host setup.py build_ext
31+
try find . -iname '*.pyx' -exec cython {} \;
32+
try $BUILD_PATH/python-install/bin/python.host setup.py build_ext
33+
try find build/lib.* -name "*.o" -exec $STRIP {} \;
34+
try $BUILD_PATH/python-install/bin/python.host setup.py install -O2
35+
36+
pop_arm
37+
}
38+
39+
function postbuild_kivy() {
40+
true
41+
}

0 commit comments

Comments
 (0)
0