File tree Expand file tree Collapse file tree 3 files changed +47
-14
lines changed Expand file tree Collapse file tree 3 files changed +47
-14
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
VERSION_freetype=${VERSION_freetype:- 2.5.5}
4
- # DEPS_freetype=(python )
4
+ DEPS_freetype=(harfbuzz )
5
5
URL_freetype=http://download.savannah.gnu.org/releases/freetype/freetype-2.5.5.tar.gz
6
- # MD5_freetype=4ba105e2d8535496fd633889396b20b7
6
+ MD5_freetype=7448edfbd40c7aa5088684b0a3edb2b8
7
7
BUILD_freetype=$BUILD_PATH /freetype/$( get_directory $URL_freetype )
8
8
RECIPE_freetype=$RECIPES_PATH /freetype
9
9
@@ -23,7 +23,10 @@ function build_freetype() {
23
23
cd $BUILD_freetype
24
24
25
25
push_arm
26
-
26
+ export LDFLAGS=" $LDFLAGS -L$BUILD_harfbuzz /src/.libs/"
27
+ echo $SRC_PATH
28
+ echo $BUILD_harfbuzz
29
+ # return
27
30
# ~ export CC="$CC -I$BUILD_libfreetype/include"
28
31
# ~ export LDFLAGS="$LDFLAGS -L$LIBS_PATH"
29
32
# ~ export LDSHARED="$LIBLINK"
@@ -33,13 +36,10 @@ function build_freetype() {
33
36
34
37
35
38
# try sh autogen.sh
36
- try ./configure --build=i686-pc-linux-gnu --host=arm-linux-androideabi --prefix=" $BUILD_PATH /python-install&
10000
quot; --without-zlib --with-png=no --without-harfbuzz --enable-shared
37
- # try ./configure --build=i686-pc-linux-gnu --host=arm-eabi OPT=$OFLAG --enable-shared --disable-toolbox-glue --disable-framework --without-zlib --with-png=no
39
+ try ./configure --build=i686-pc-linux-gnu --host=arm-linux-androideabi --prefix=" $BUILD_PATH /python-install" --without-zlib --with-png=no --enable-shared
38
40
try make -j5
39
- # try make -k CROSS_COMPILE_TARGET=yes INSTSONAME=libfreetype.so#-j4
40
41
pop_arm
41
42
echo ' finished'
42
- # try cp -L $BUILD_freetype/objs/.libs/libfreetype.so $LIBS_PATH/libfreetype.so.6
43
43
try cp -L $BUILD_freetype /objs/.libs/libfreetype.so $LIBS_PATH
44
44
45
45
}
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ VERSION_harfbuzz=${VERSION_harfbuzz:- 2.5.5}
4
+ URL_harfbuzz=http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-0.9.40.tar.bz2
5
+ MD5_harfbuzz=0e27e531f4c4acff601ebff0957755c2
6
+ BUILD_harfbuzz=$BUILD_PATH /harfbuzz/$( get_directory $URL_harfbuzz )
7
+ RECIPE_harfbuzz=$RECIPES_PATH /harfbuzz
8
+
9
+ # function called for preparing source code if needed
10
+ # (you can apply patch etc here.)
11
+ function prebuild_harfbuzz() {
12
+ true
13
+ }
14
+
15
+ function shouldbuild_harfbuzz() {
16
+ if [ -f " $BUILD_harfbuzz /src/.libs/libharfbuzz.so" ]; then
17
+ DO_BUILD=0
18
+ fi
19
+ }
20
+
21
+ function build_harfbuzz() {
22
+ cd $BUILD_harfbuzz
23
+
24
+ push_arm
25
+ try ./configure --build=i686-pc-linux-gnu --host=arm-linux-androideabi --prefix=" $BUILD_PATH /python-install" --enable-shared --without-freetype --without-glib
26
+ try make -j5
27
+ pop_arm
28
+ try cp -L $BUILD_harfbuzz /src/.libs/libharfbuzz.so $LIBS_PATH
29
+ }
30
+
31
+ # function called after all the compile have been done
32
+ function postbuild_harfbuzz() {
33
+ true
34
+ }
35
+
Original file line number Diff line number Diff line change 1
1
--- Python-2.7.2.orig/Lib/ctypes/util.py 2011-06-11 16:46:24.000000000 +0100
2
- +++ Python-2.7.2/Lib/ctypes/util.py 2015-03-25 19:39:15.617933144 +0000
3
- @@ -84,6 +84,20 @@
2
+ +++ Python-2.7.2/Lib/ctypes/util.py 2015-03-26 13:45:33.322172603 +0000
3
+ @@ -83,7 +83,17 @@
4
+ except ValueError:
4
5
continue
5
6
return None
6
-
7
+ -
7
8
+ elif os.name == "posix" and sys.platform == "linux3":
8
- + print sys.path
9
9
+ def find_library(name):
10
10
+ """ hack to find librarys for kivy and android
11
11
+ split the path and get the first parts which will give us
12
12
+ the app path something like /data/data/org.app.foo/"""
13
13
+ app_root = os.path.abspath('./').split(os.path.sep)[0:4]
14
- + lib_search = os.path.sep.join(app_root) + os.path.sep + 'files '
14
+ + lib_search = os.path.sep.join(app_root) + os.path.sep + 'lib '
15
15
+ for filename in os.listdir(lib_search):
16
- + print filename
17
16
+ if filename.endswith('.so') and name in filename:
18
17
+ return lib_search + os.path.sep + filename
19
18
+ return None
20
- +
21
19
elif os.name == "posix":
22
20
# Andreas Degert's find functions, using gcc, /sbin/ldconfig, objdump
23
21
import re, tempfile, errno
You can’t perform that action at this time.
0 commit comments