From: Uwe Hermann Date: Fri, 10 Jan 2014 21:31:06 +0000 (+0100) Subject: sigrok-cross-android: Add/use $VER_GLIB. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f7b8aa73b0b2b3539216d14f27f744425cb5e3bd;p=sigrok-util.git sigrok-cross-android: Add/use $VER_GLIB. Also, move Python block for consistency. --- diff --git a/cross-compile/android/sigrok-cross-android b/cross-compile/android/sigrok-cross-android index c0aa4fd..86a64b7 100755 --- a/cross-compile/android/sigrok-cross-android +++ b/cross-compile/android/sigrok-cross-android @@ -47,7 +47,8 @@ VER_GETTEXT=0.18.3 VER_ZLIB=1.2.8 VER_PCRE=8.33 VER_LIBFFI=3.0.13 -VER_GLIB=2.34.3 +VER_GLIB=2.38.2 +VER_GLIB_SHORT=2.38 VER_LIBZIP=0.11.1 VER_LIBUSB=0.1.12 VER_LIBFTDI=0.20 @@ -91,6 +92,15 @@ git clone git://git.savannah.gnu.org/config.git # ----------------------------------------------------------------------------- +# Python (needed for libsigrokdecode) +cd Python-$VER_PYTHON +make distclean +autoreconf +patch -p1 < ../../Python-$VER_PYTHON.patch +ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no ac_cv_func_pipe2=no ac_cv_func_fdatasync=no ac_cv_func_killpg=no ac_cv_func_waitid=no ac_cv_func_sigaltstack=no ./configure $C --build=x86_64-linux-gnu --disable-ipv6 +make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen install +cd .. + # libiconv (needed for glib) wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-$VER_LIBICONV.tar.gz tar xfz libiconv-$VER_LIBICONV.tar.gz @@ -151,9 +161,9 @@ make install cd .. # glib -wget http://ftp.gnome.org/pub/gnome/sources/glib/2.38/glib-2.38.2.tar.xz -tar xJf glib-2.38.2.tar.xz -cd glib-2.38.2 +wget http://ftp.gnome.org/pub/gnome/sources/glib/$VER_GLIB_SHORT/glib-$VER_GLIB.tar.xz +tar xJf glib-$VER_GLIB.tar.xz +cd glib-$VER_GLIB ./autogen.sh # Note: Manual LDFLAGS/CPPFLAGS needed for libiconv, rest uses pkg-config. LDFLAGS=-L$PREFIX/lib CPPFLAGS=-I$PREFIX/include glib_cv_stack_grows=no glib_cv_uscore=no ac_cv_func_posix_getpwuid_r=no ac_cv_func_posix_getgrgid_r=no ./configure --disable-compile-warnings $C @@ -224,15 +234,6 @@ make make install cd .. -# Python -cd Python-$VER_PYTHON -make distclean -autoreconf -patch -p1 < ../../Python-$VER_PYTHON.patch -ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no ac_cv_func_pipe2=no ac_cv_func_fdatasync=no ac_cv_func_killpg=no ac_cv_func_waitid=no ac_cv_func_sigaltstack=no ./configure $C --build=x86_64-linux-gnu --disable-ipv6 -make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen install -cd .. - # libsigrokdecode git clone git://sigrok.org/libsigrokdecode cd libsigrokdecode