Skip to content

Commit d80e772

Browse files
committed
try to make libcript available
1 parent 2525476 commit d80e772

File tree

4 files changed

+45
-1
lines changed

4 files changed

+45
-1
lines changed

recipes/libcrypt/recipe.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/bash
2+
3+
VERSION_libcrypt=0.03
4+
URL_libcrypt=http://sourceforge.net/projects/libcrypt/files/libcrypt/$VERSION_libcrypt/crypt_${VERSION_libcrypt/./_}.zip
5+
DEPS_libcrypt=()
6+
BUILD_libcrypt=$BUILD_PATH/libcrypt/$(get_directory $URL_libcrypt)
7+
RECIPE_libcrypt=$RECIPES_PATH/libcrypt
8+
9+
function prebuild_libcrypt() {
10+
sed -i "s/-mpentium //" $BUILD_PATH/libcrypt/makefile
11+
try rm $BUILD_PATH/libcrypt/crypt_0_03
12+
if [ ! -d $BUILD_libcrypt ]
13+
then
14+
mkdir $BUILD_libcrypt
15+
cp $BUILD_PATH/libcrypt/* $BUILD_libcrypt
16+
fi
17+
true
18+
}
19+
20+
function build_libcrypt() {
21+
cd $BUILD_libcrypt
22+
23+
if [ -f libcrypt.a ]; then
24+
return
25+
fi
26+
27+
push_arm
28+
29+
try make
30+
31+
pop_arm
32+
}
33+
34+
function postbuild_libcrypt() {
35+
true
36+
}

recipes/python/patches/disable-modules.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# This global variable is used to hold the list of modules to be disabled.
77
-disabled_module_list = []
8-
+disabled_module_list = ['spwd', '_ctypes','bz2','ossaudiodev','_curses','_curses_panel','readline','_locale','_bsddb','gdbm','dbm','nis','linuxaudiodev','crypt','_multiprocessing']
8+
+disabled_module_list = ['spwd', '_ctypes','bz2','ossaudiodev','_curses','_curses_panel','readline','_locale','_bsddb','gdbm','dbm','nis','linuxaudiodev','_multiprocessing']
99

1010
def add_dir_to_list(dirlist, dir):
1111
"""Add the directory 'dir' to the list 'dirlist' (at the front) if

recipes/python/recipe.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ function build_python() {
6363
export LDFLAGS="$LDFLAGS -L$BUILD_openssl/"
6464
fi
6565

66+
67+
# libcrypt activated ?
68+
if [ "X$BUILD_libcrypt" != "X" ]; then
69+
nebug "Activate flags for libcrypt / python"
70+
export LDFLAGS="$LDFLAGS -L$BUILD_libcrypt/"
71+
fi
72+
6673
try ./configure --host=arm-eabi --prefix="$BUILD_PATH/python-install" --enable-shared --disable-toolbox-glue --disable-framework
6774
echo ./configure --host=arm-eabi --prefix="$BUILD_PATH/python-install" --enable-shared --disable-toolbox-glue --disable-framework
6875
echo $MAKE HOSTPYTHON=$BUILD_python/hostpython HOSTPGEN=$BUILD_python/hostpgen CROSS_COMPILE_TARGET=yes INSTSONAME=libpython2.7.so

src/src/org/renpy/android/PythonActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ public void run() {
220220
System.loadLibrary("python2.7");
221221
System.loadLibrary("application");
222222
System.loadLibrary("sdl_main");
223+
System.loadLibrary("crypt");
223224

224225
System.load(getFilesDir() + "/lib/python2.7/lib-dynload/_io.so");
225226
System.load(getFilesDir() + "/lib/python2.7/lib-dynload/unicodedata.so");

0 commit comments

Comments
 (0)