From f6cb5cda7cde162702dbba428e51f3db90489a60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 19 Feb 2013 21:02:47 +0100 Subject: efl-release-build.sh: better shape --- efl-release-build.sh | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/efl-release-build.sh b/efl-release-build.sh index ad8e9ed..fb3fe6b 100755 --- a/efl-release-build.sh +++ b/efl-release-build.sh @@ -1,14 +1,26 @@ #! /bin/bash +SUDO_PASSWD="" + EFL_VER=1.7.5 E_VER=0.17.1 -PREFIX=/opt/efl-stable -OPTIONS="--disable-doc --disable-static" -SUDO_PASSWD="" BASE_URL="http://download.enlightenment.fr/releases" -export LD_LIBRARY_PATH="" +DBUS_SRV_PATH="/usr/share/dbus-1/services" + +unset LANG +export CFLAGS="-O2 -march=native -ffast-math" +export CC="ccache gcc" +alias make='make -j4' + +PREFIX=/opt/efl-release +export PATH="$PREFIX/bin:$PATH" +export LD_LIBRARY_PATH="$PREFIX/lib" export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig" +EFL_FLAGS="--disable-doc --disable-static" +E_FLAGS="--enable-pam --disable-device-hal --enable-device-udev --enable-mount-udisks --enable-mount-eeze --enable-elementary --enable-emotion --enable-enotify" +E_FLAGS+=" --sysconfdir=/etc" + EFL_PKGS="eina eet evas ecore eio embryo edje efreet e_dbus eeze emotion ethumb elementary" function e_get() { @@ -16,11 +28,11 @@ function e_get() { for pkg in $EFL_PKGS; do arch=${pkg}-${EFL_VER}.tar.bz2 echo " - $arch" - [ -f $arch ] || curl "$BASE_URL/$arch" -o $arch || exit 1 + [ -f $arch ] || curl -L "$BASE_URL/$arch" -o $arch || exit 1 done e_arch=enlightenment-${E_VER}.tar.bz2 echo " - $e_arch" - [ -f $e_arch ] || curl "$BASE_URL/$e_arch" -o $e_arch || exit 1 + [ -f $e_arch ] || curl -L "$BASE_URL/$e_arch" -o $e_arch || exit 1 } function e_extract() { @@ -42,15 +54,20 @@ function e_build() { for pkg in $EFL_PKGS; do echo " - $pkg" cd $pkg-${EFL_VER} || exit 1 - ./autogen.sh --prefix=$PREFIX $OPTIONS + ./autogen.sh --prefix=$PREFIX $EFL_FLAGS if [ $? -ne 0 ]; then echo " - FIX configure.ac" && sed -i 's/AM_PROG_CC_STDC/AC_PROG_CC/g' configure.ac && sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac || exit 1 - ./autogen.sh --prefix=$PREFIX $OPTIONS || exit 1 + ./autogen.sh --prefix=$PREFIX $EFL_FLAGS || exit 1 fi make && echo "$PASSWD" | sudo -S make install && cd .. || exit 1 done echo " - $e_arch" - cd enlightenment-${E_VER} && ./configure --prefix=$PREFIX $OPTIONS && make && echo "$PASSWD" | sudo -S make install && cd .. || exit 1 + cd enlightenment-${E_VER} && ./configure --prefix=$PREFIX --libexecdir=$PREFIX/lib/enlightenment $E_FLAGS && make && echo "$PASSWD" | sudo -S make install && cd .. || exit 1 + cd $DBUS_SRV_PATH || exit 1 + for $srv in $PREFIX/share/dbus-1/services/*; do + echo "$PASSWD" | sudo -S ln -s $srv + done + } function get_sudopwd() { -- cgit v1.1-2-g2b99