Search
lxdream.org :: lxdream/android/deps/builddeps.sh :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename android/deps/builddeps.sh
changeset 1239:be3121267597
author nkeynes
date Sat Feb 25 21:30:49 2012 +1000 (8 years ago)
permissions -rw-r--r--
last change Android support WIP
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/android/deps/builddeps.sh Sat Feb 25 21:30:49 2012 +1000
1.3 @@ -0,0 +1,79 @@
1.4 +#!/bin/sh
1.5 +
1.6 +TAR=tar
1.7 +PATCH=patch
1.8 +MAKE=make
1.9 +WGET=wget
1.10 +
1.11 +GETTEXT=gettext-0.18.1.1
1.12 +LIBICONV=libiconv-1.13.1
1.13 +LIBPNG=libpng-1.4.3
1.14 +LIBISOFS=libisofs-0.6.38
1.15 +GLIB=glib-2.26.0
1.16 +
1.17 +TARGETPREFIX="${HOME}/android/usr"
1.18 +NDK_BINDIR="${HOME}/lxdream/android/arm-linux-androideabi-4.4.3/bin"
1.19 +PATH="${NDK_BINDIR}:$PATH"
1.20 +export PATH
1.21 +BUILDALIAS=`gcc -dumpmachine`
1.22 +
1.23 +if [ ! -e $TARGETPREFIX/lib/libiconv.a ]; then
1.24 + ${WGET} http://ftp.gnu.org/gnu/libiconv/${LIBCONV}.tar.gz
1.25 + ${TAR} -xzf ${LIBCONV}.tar.gz
1.26 + cp config.guess config.sub ${LIBCONV}/build-aux
1.27 + cp config.guess config.sub ${LIBCONV}/libcharset/build-aux
1.28 + ${PATCH} -p0 < libiconv-1.13.1.diff
1.29 + mkdir -p build-${LIBCONV}
1.30 + cd build-${LIBCONV}
1.31 + ../${LIBCONV}/configure --prefix=$TARGETPREFIX --build=$BUILDALIAS --host=arm-linux-androideabi --disable-shared 'CPPFLAGS=-fPIC'
1.32 + ${MAKE} all install
1.33 + cd ..
1.34 +fi
1.35 +
1.36 +if [ ! -e $TARGETPREFIX/lib/libgettextpo.a ]; then
1.37 + ${WGET} http://ftp.gnu.org/gnu/getttext/${GETTEXT}.tar.gz
1.38 + ${TAR} -xzf ${GETTEXT}.tar.gz
1.39 + ${PATCH} -p0 < ${GETTEXT}.diff
1.40 + mkdir -p build-${GETTEXT}
1.41 + cd build-${GETTEXT}
1.42 + ../${GETTEXT}/configure --prefix=$TARGETPREFIX --build=$BUILDALIAS --host=arm-linux-androideabi --disable-shared "CPPFLAGS=-I$TARGETPREFIX/include -fPIC" "LDFLAGS=-L$TARGETPREFIX/lib"
1.43 + ${MAKE} all install
1.44 + cd ..
1.45 +fi
1.46 +
1.47 +if [ ! -e $TARGETPREFIX/lib/libpng14.a ]; then
1.48 + ${WGET} http://sourceforge.net/projects/libpng/files/libpng14/older-releases/1.4.3/${LIBPNG}.tar.gz/download
1.49 + ${TAR} -xzf ${LIBPNG}.tar.gz
1.50 + cp config.guess config.sub ${LIBPNG}
1.51 + mkdir -p build-${LIBPNG}
1.52 + cd build-${LIBPNG}
1.53 + ../${LIBPNG}/configure --prefix=$TARGETPREFIX --build=$BUILDALIAS --host=arm-linux-androideabi --disable-shared "CPPFLAGS=-I$TARGETPREFIX/include -fPIC" "LDFLAGS=-L$TARGETPREFIX/lib"
1.54 + ${MAKE} all install
1.55 + cd ..
1.56 +fi
1.57 +
1.58 +if [ ! -e $TARGETPREFIX/lib/libisofs.a ]; then
1.59 + ${WGET} http://files.libburnia-project.org/releases/${LIBISOFS}.tar.gz
1.60 + ${TAR} -xzf ${LIBISOFS}.tar.gz
1.61 + cp config.guess config.sub ${LIBISOFS}
1.62 + ${PATCH} -p0 < ${LIBISOFS}.diff
1.63 + cd ${LIBISOFS}
1.64 + ./configure --prefix=$TARGETPREFIX --build=$BUILDALIAS --host=arm-linux-androideabi --disable-shared "CPPFLAGS=-I$TARGETPREFIX/include -fPIC" "LDFLAGS=-L$TARGETPREFIX/lib" LIBISOFS_ASSUME_ICONV=yes
1.65 + ${MAKE} all install THREAD_LIBS=
1.66 + cd ..
1.67 +fi
1.68 +
1.69 +if [ ! -e $TARGETPREFIX/lib/libglib-2.0.a ]; then
1.70 + ${WGET} http://ftp.gnome.org/pub/gnome/sources/glib/2.26/${GLIB}.tar.bz2
1.71 + ${TAR} -xjf ${GLIB}.tar.bz2
1.72 + cp config.guess config.sub ${GLIB}
1.73 + ${PATCH} -p0 < ${GLIB}.diff
1.74 + mkdir -p build-${GLIB}
1.75 + cp ${GLIB}.cache build-${GLIB}
1.76 + cd build-${GLIB}
1.77 + ../${GLIB}/configure --prefix=$TARGETPREFIX --build=$BUILDALIAS --host=arm-linux-androideabi --disable-shared "CPPFLAGS=-I$TARGETPREFIX/include -fPIC" "LDFLAGS=-L$TARGETPREFIX/lib" \
1.78 + --cache-file=${GLIB}.cache --without-threads
1.79 + ${MAKE} install
1.80 + cd ..
1.81 +fi
1.82 +
.