From 9012f177d76063996b114b5dfe17427708f8d9b4 Mon Sep 17 00:00:00 2001 From: Oliver Marks Date: Sat, 28 Mar 2015 21:55:36 +0000 Subject: [PATCH 1/2] reciepes for freetype and harfbuzz --- recipes/freetype/recipe.sh | 31 +++++++++++++++++++++++++++++++ recipes/harfbuzz/recipe.sh | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 recipes/freetype/recipe.sh create mode 100644 recipes/harfbuzz/recipe.sh diff --git a/recipes/freetype/recipe.sh b/recipes/freetype/recipe.sh new file mode 100644 index 0000000000..e04a335a04 --- /dev/null +++ b/recipes/freetype/recipe.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +VERSION_freetype=${VERSION_freetype:-2.5.5} +DEPS_freetype=(harfbuzz) +URL_freetype=http://download.savannah.gnu.org/releases/freetype/freetype-2.5.5.tar.gz +MD5_freetype=7448edfbd40c7aa5088684b0a3edb2b8 +BUILD_freetype=$BUILD_PATH/freetype/$(get_directory $URL_freetype) +RECIPE_freetype=$RECIPES_PATH/freetype + +# function called for preparing source code if needed +# (you can apply patch etc here.) +function prebuild_freetype() { + true +} + +function build_freetype() { + cd $BUILD_freetype + push_arm + export LDFLAGS="$LDFLAGS -L$BUILD_harfbuzz/src/.libs/" + try ./configure --build=i686-pc-linux-gnu --host=arm-linux-androideabi --prefix=$BUILD_freetype --without-zlib --with-png=no --enable-shared + try make -j5 + pop_arm + + try cp $BUILD_freetype/objs/.libs/libfreetype.so $LIBS_PATH +} + +# function called after all the compile have been done +function postbuild_freetype() { + true +} + diff --git a/recipes/harfbuzz/recipe.sh b/recipes/harfbuzz/recipe.sh new file mode 100644 index 0000000000..8326274c9c --- /dev/null +++ b/recipes/harfbuzz/recipe.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +VERSION_harfbuzz=${VERSION_harfbuzz:-2.5.5} +URL_harfbuzz=http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-0.9.40.tar.bz2 +MD5_harfbuzz=0e27e531f4c4acff601ebff0957755c2 +BUILD_harfbuzz=$BUILD_PATH/harfbuzz/$(get_directory $URL_harfbuzz) +RECIPE_harfbuzz=$RECIPES_PATH/harfbuzz + +# function called for preparing source code if needed +# (you can apply patch etc here.) +function prebuild_harfbuzz() { + true +} + +function shouldbuild_harfbuzz() { + if [ -f "$BUILD_harfbuzz/src/.libs/libharfbuzz.so" ]; then + DO_BUILD=0 + fi +} + +function build_harfbuzz() { + cd $BUILD_harfbuzz + + push_arm + try ./configure --build=i686-pc-linux-gnu --host=arm-linux-androideabi --prefix="$BUILD_PATH/python-install" --enable-shared --without-freetype --without-glib + try make -j5 + pop_arm + try cp -L $BUILD_harfbuzz/src/.libs/libharfbuzz.so $LIBS_PATH +} + +# function called after all the compile have been done +function postbuild_harfbuzz() { + true +} + From f1cd751170e1586851439fbf30b32a36e7ce4e27 Mon Sep 17 00:00:00 2001 From: Oliver Marks Date: Sat, 16 May 2015 09:10:18 +0100 Subject: [PATCH 2/2] fix harfbuzz compile on 15.04 fixes #376 --- recipes/freetype/recipe.sh | 2 +- recipes/harfbuzz/recipe.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/recipes/freetype/recipe.sh b/recipes/freetype/recipe.sh index e04a335a04..84d666ae09 100644 --- a/recipes/freetype/recipe.sh +++ b/recipes/freetype/recipe.sh @@ -17,7 +17,7 @@ function build_freetype() { cd $BUILD_freetype push_arm export LDFLAGS="$LDFLAGS -L$BUILD_harfbuzz/src/.libs/" - try ./configure --build=i686-pc-linux-gnu --host=arm-linux-androideabi --prefix=$BUILD_freetype --without-zlib --with-png=no --enable-shared + try ./configure --host=arm-linux-androideabi --prefix=$BUILD_freetype --without-zlib --with-png=no --enable-shared try make -j5 pop_arm diff --git a/recipes/harfbuzz/recipe.sh b/recipes/harfbuzz/recipe.sh index 8326274c9c..a308f17327 100644 --- a/recipes/harfbuzz/recipe.sh +++ b/recipes/harfbuzz/recipe.sh @@ -22,7 +22,11 @@ function build_harfbuzz() { cd $BUILD_harfbuzz push_arm - try ./configure --build=i686-pc-linux-gnu --host=arm-linux-androideabi --prefix="$BUILD_PATH/python-install" --enable-shared --without-freetype --without-glib + #~ export LDFLAGS="-L$LIBS_PATH" + #~ export LDSHARED="$LIBLINK" + #try ./configure --build=i686-pc-linux-gnu --host=arm-linux-androideabi --prefix="$BUILD_PATH/python-install" --enable-shared --without-freetype --without-glib + #~ try ./autogen.sh --build=i686-pc-linux-gnu --host=arm-linux-androideabi --prefix="$BUILD_PATH/python-install" --without-freetype --without-glib + try ./configure --without-icu --host=arm-linux-androideabi --prefix="$BUILD_PATH/python-install" --without-freetype --without-glib try make -j5 pop_arm try cp -L $BUILD_harfbuzz/src/.libs/libharfbuzz.so $LIBS_PATH