forked from kivy/python-for-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecipe.sh
More file actions
46 lines (34 loc) · 1001 Bytes
/
recipe.sh
File metadata and controls
46 lines (34 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
VERSION_pyopenssl=${VERSION_pyopenssl:-0.13}
URL_pyopenssl=http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-$VERSION_pyopenssl.tar.gz
DEPS_pyopenssl=(openssl python)
MD5_pyopenssl=767bca18a71178ca353dff9e10941929
BUILD_pyopenssl=$BUILD_PATH/pyopenssl/$(get_directory $URL_pyopenssl)
RECIPE_pyopenssl=$RECIPES_PATH/pyopenssl
function prebuild_pyopenssl() {
cd $BUILD_pyopenssl
if [ -f .patched ]; then
return
fi
try patch -p1 < $RECIPE_pyopenssl/fix-dlfcn.patch
touch .patched
}
function shouldbuild_pyopenssl() {
if [ -d "$SITEPACKAGES_PATH/OpenSSL" ]; then
DO_BUILD=0
fi
}
function build_pyopenssl() {
cd $BUILD_pyopenssl
push_arm
export CC="$CC -I$BUILD_openssl/include"
export LDFLAGS="$LDFLAGS -L$LIBS_PATH -L$BUILD_openssl"
try $HOSTPYTHON setup.py build_ext -v
try find build/lib.* -name "*.o" -exec $STRIP {} \;
try $HOSTPYTHON setup.py install -O2
try rm -rf $SITEPACKAGES/OpenSSL/test
pop_arm
}
function postbuild_pyopenssl() {
true
}