#!/bin/sh # Copyright (C) 2005 Ganaël LAPLANCHE # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, # USA. # This script needs : make, libtool, autoconf and automake to run # Where to install e17 INSTALLDIR="/files/Programs/e17" ## GNU/Linux PATH="$PATH:$INSTALLDIR/bin" MAKEBIN="make" LDCONFIGBIN="ldconfig" MYADDFLAGS="" ## FreeBSD #PATH="$PATH:/usr/local/gnu-autotools/bin:$INSTALLDIR/bin" #MAKEBIN="gmake" #LDCONFIGBIN="ldconfig -m" #MYADDFLAGS="-liconv" # What to install MYLIBS="e17/libs/imlib2 e17/libs/edb e17/libs/eet e17/libs/evas e17/libs/ecore e17/libs/epeg e17/libs/embryo e17/libs/edje e17/libs/epsilon e17/libs/esmart e17/libs/emotion e17/libs/etox e17/libs/ewl e17/libs/engrave e17/libs/imlib2_loaders" MYAPPS="e17/apps/iconbar e17/apps/entice e17/apps/entrance e17/apps/elicit e17/apps/e e17/apps/e_utils e17/apps/eclair e17/apps/examine e17/apps/elation e17/apps/express e17/apps/imlib2_tools evidence misc/erss misc/engage" ############################### # Do not edit below this line # ############################### ROOTDIR=`pwd` CLEANONLY="" MYLDFLAGS="$LDFLAGS -L$INSTALLDIR/lib -L/lib -L/usr/lib -L/usr/local/lib -L/usr/X11R6/lib $MYADDFLAGS" MYCPPFLAGS="$CPPFLAGS -I$INSTALLDIR/include -I/usr/include -I/usr/local/include -I/usr/X11R6/include" if [ $# -lt 1 -o $# -gt 2 ] then echo "Usage : $0 " echo "MYLIBS = \"$MYLIBS\"" echo "MYAPPS = \"$MYAPPS\"" exit 1 fi case "$1" in cvsco) echo "Updating E17 CVS (type return when prompted for password)" cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/enlightenment login cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/enlightenment co e17 cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/enlightenment co misc cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/enlightenment logout echo "Updating Evidence CVS (type return when prompted for password)" cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/evidence login cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/evidence co evidence cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/evidence logout exit 0 ;; cvsup) echo "Updating E17 CVS (type return when prompted for password)" cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/enlightenment login cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/enlightenment up e17 cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/enlightenment up misc cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/enlightenment logout echo "Updating Evidence CVS (type return when prompted for password)" cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/evidence login cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/evidence up evidence cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/evidence logout exit 0 ;; libs) TOBUILD="$MYLIBS" ;; apps) TOBUILD="$MYAPPS" ;; all) $0 libs && $0 apps && echo "All done. Don't forget to update your /etc/ld.so.conf to add $INSTALLDIR/lib !" exit $? ;; remove) echo "Warning !!! Will remove sources and installed binaries !" echo "Press CRTL-C now to abort or press enter to continue." read INPUT rm -rf e17 rm -rf misc rm -rf evidence rm -rf $INSTALLDIR echo "done." exit 0 ;; clean) TOBUILD="$MYLIBS $MYAPPS" CLEANONLY="YES" ;; autoconfig) # Modules #$INSTALLDIR/bin/enlightenment_remote -module-load flame $INSTALLDIR/bin/enlightenment_remote -module-load ibox #$INSTALLDIR/bin/enlightenment_remote -module-load snow $INSTALLDIR/bin/enlightenment_remote -module-load engage #$INSTALLDIR/bin/enlightenment_remote -module-load notes #$INSTALLDIR/bin/enlightenment_remote -module-enable snow #$INSTALLDIR/bin/enlightenment_remote -module-load weather # Desktop policy $INSTALLDIR/bin/enlightenment_remote -desks-set 2 2 $INSTALLDIR/bin/enlightenment_remote -edge-flip-set 0 $INSTALLDIR/bin/enlightenment_remote -focus-last-focused-per-desktop-set 1 $INSTALLDIR/bin/enlightenment_remote -focus-setting-set NEW_DIALOG_IF_OWNER_FOCUSED $INSTALLDIR/bin/enlightenment_remote -focus-policy-set SLOPPY $INSTALLDIR/bin/enlightenment_remote -transition-desk-set vswipe $INSTALLDIR/bin/enlightenment_remote -kill-if-close-not-possible-set 1 $INSTALLDIR/bin/enlightenment_remote -winlist-list-show-other-desk-windows-set 0 # Background #$INSTALLDIR/bin/e17setroot -s ~/.e/e/backgrounds/Lone_Tree.edj exit 0 ;; select) if [ $# -ne 2 ] then echo "You must specify one or several things to build." echo "e.g. : $0 select e17/libs/imlib2" echo "e.g. : $0 select \"e17/apps/entice e17/apps/entrance\"" exit 1 fi TOBUILD=$2 ;; *) echo "Usage : $0 " echo "MYLIBS = \"$MYLIBS\"" echo "MYAPPS = \"$MYAPPS\"" exit 1 ;; esac echo "**********************" echo "Have to process $TOBUILD" echo "**********************" for i in $TOBUILD do echo "**********************" echo "Processing $i" echo "**********************" cd $ROOTDIR/$i if [ "$CLEANONLY" = "" ] then env LDFLAGS="$MYLDFLAGS" CPPFLAGS="$MYCPPFLAGS" \ ./autogen.sh || exit 1 fi $MAKEBIN clean if [ "$CLEANONLY" = "" ] then #Configure options CONFIGOPTIONS="" #case "$1" in # libs/imlib2) # ;; #esac env LDFLAGS="$MYLDFLAGS" CPPFLAGS="$MYCPPFLAGS" \ ./configure --prefix=$INSTALLDIR $CONFIGOPTIONS && $MAKEBIN && $MAKEBIN install if [ $? -ne 0 ] then echo "Error building $i !" exit 1 fi $LDCONFIGBIN $INSTALLDIR/lib fi done exit 0