2003-09-23 01:09:32 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
2004-02-16 23:12:01 -08:00
|
|
|
PROJ="ecore"
|
|
|
|
|
|
|
|
SKIFF="/skiff/local"
|
|
|
|
HOSTARCH="i686-pc-linux-gnu"
|
|
|
|
TARGETCPU="arm"
|
|
|
|
TARGETARCH=$TARGETCPU"-pc-linux-gnu"
|
|
|
|
|
|
|
|
export EDB_CONFIG=$SKIFF"/"$TARGETCPU"-linux/bin/edb-config"
|
|
|
|
export EET_CONFIG=$SKIFF"/"$TARGETCPU"-linux/bin/eet-config"
|
|
|
|
export FREETYPE_CONFIG=$SKIFF"/"$TARGETCPU"-linux/bin/freetype-config"
|
|
|
|
export EVAS_CONFIG=$SKIFF"/"$TARGETCPU"-linux/bin/evas-config"
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
make clean distclean
|
2004-02-16 23:12:01 -08:00
|
|
|
export CC=/skiff/local/bin/arm-linux-gcc
|
|
|
|
export CFLAGS=-O9
|
2003-09-23 01:09:32 -07:00
|
|
|
./configure \
|
2004-02-16 23:12:01 -08:00
|
|
|
--host=$HOSTARCH \
|
|
|
|
--build=$TARGETARCH \
|
|
|
|
--target=$TARGETARCH \
|
2003-09-23 01:09:32 -07:00
|
|
|
--enable-ecore-fb \
|
|
|
|
--enable-ecore-evas \
|
|
|
|
--enable-ecore-job \
|
2004-02-16 23:12:01 -08:00
|
|
|
--disable-ecore-evas-fb \
|
|
|
|
--disable-ecore-evas-gl \
|
2003-09-23 01:09:32 -07:00
|
|
|
--enable-ecore-con \
|
2003-10-09 00:49:59 -07:00
|
|
|
--enable-ecore-ipc \
|
2004-02-16 23:12:01 -08:00
|
|
|
--enable-ecore-txt \
|
|
|
|
--disable-ecore-x \
|
|
|
|
--disable-ecore-config
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2004-02-16 23:12:01 -08:00
|
|
|
INST="/tmp/"$PROJ"-instroot"
|
|
|
|
sudo rm -rf $INST
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2004-02-16 23:12:01 -08:00
|
|
|
make
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2004-02-16 23:12:01 -08:00
|
|
|
for I in `find . -name "*.la" -print`; do
|
|
|
|
sed s:"/usr/local":$INST:g < $I > "/tmp/.sed.tmp"
|
|
|
|
sudo cp "/tmp/.sed.tmp" $I
|
|
|
|
rm -f "/tmp/.sed.tmp"
|
|
|
|
done
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2004-02-16 23:12:01 -08:00
|
|
|
sudo \
|
|
|
|
make \
|
|
|
|
prefix=$INST \
|
|
|
|
exec_prefix=$INST \
|
|
|
|
bindir=$INST"/bin" \
|
|
|
|
sbindir=$INST"/sbin" \
|
|
|
|
sysconfdir=$INST"/etc" \
|
|
|
|
datadir=$INST"/share" \
|
|
|
|
includedir=$INST"/include" \
|
|
|
|
libdir=$INST"/lib" \
|
|
|
|
libexecdir=$INST"/libexec" \
|
|
|
|
localstatedir=$INST"/var/run" \
|
|
|
|
mandir=$INST"/share/man" \
|
|
|
|
infodir=$INST"/share/info" \
|
|
|
|
install
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2004-02-16 23:12:01 -08:00
|
|
|
## FIXUPS
|
|
|
|
for I in $INST"/bin/"* $INST"/sbin/"* $INST"/libexec/"*; do
|
|
|
|
J=`echo $I | sed s:$TARGETARCH"-"::g`
|
|
|
|
sudo mv $I $J
|
|
|
|
done
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2004-02-16 23:12:01 -08:00
|
|
|
CF=$INST"/bin/"$PROJ"-config"
|
|
|
|
sed s:"/usr/local":$SKIFF"/"$TARGETCPU"-linux":g < $CF > "/tmp/.sed.tmp"
|
|
|
|
sudo cp "/tmp/.sed.tmp" $CF
|
|
|
|
rm -f "/tmp/.sed.tmp"
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2004-02-16 23:12:01 -08:00
|
|
|
for I in $INST"/lib/"*.la; do
|
|
|
|
sed s:"/usr/local":$SKIFF"/"$TARGETCPU"-linux":g < $I > "/tmp/.sed.tmp"
|
|
|
|
sudo cp "/tmp/.sed.tmp" $I
|
|
|
|
rm -f "/tmp/.sed.tmp"
|
|
|
|
done
|
|
|
|
|
|
|
|
## package it all up
|
|
|
|
PACK=$PROJ"-"$TARGETCPU"-inst.tar.gz"
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2004-02-16 23:12:01 -08:00
|
|
|
DIR=$PWD
|
|
|
|
cd $INST
|
|
|
|
sudo tar zcvf $DIR"/"$PACK *
|
|
|
|
sudo chown $USER $DIR"/"$PACK
|
|
|
|
cd $DIR
|
|
|
|
sudo rm -rf $INST
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2004-02-16 23:12:01 -08:00
|
|
|
## install it in our skiff tree
|
|
|
|
cd $SKIFF"/"$TARGETCPU"-linux"
|
|
|
|
sudo tar zxvf $DIR"/"$PACK
|
|
|
|
|