2003-07-10 06:13:25 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
2004-02-16 23:12:38 -08:00
|
|
|
PROJ="evas"
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
2003-07-10 06:13:25 -07:00
|
|
|
make clean distclean
|
2004-02-16 23:12:38 -08:00
|
|
|
export CC=/skiff/local/bin/arm-linux-gcc
|
|
|
|
export CFLAGS=-O9
|
2003-07-10 06:13:25 -07:00
|
|
|
./configure \
|
2004-02-16 23:12:38 -08:00
|
|
|
--host=$HOSTARCH \
|
|
|
|
--build=$TARGETARCH \
|
|
|
|
--target=$TARGETARCH \
|
2004-01-27 18:07:41 -08:00
|
|
|
--disable-software-x11 \
|
|
|
|
--disable-directfb \
|
|
|
|
--enable-fb \
|
|
|
|
--disable-buffer \
|
|
|
|
--disable-software-qtopia \
|
|
|
|
--disable-gl-x11 \
|
|
|
|
--enable-image-loader-png \
|
|
|
|
--enable-image-loader-jpeg \
|
|
|
|
--enable-image-loader-eet \
|
|
|
|
--disable-image-loader-edb \
|
|
|
|
--enable-font-loader-eet \
|
|
|
|
--disable-cpu-mmx \
|
|
|
|
--disable-cpu-sse \
|
|
|
|
--disable-cpu-altivec \
|
|
|
|
--enable-cpu-c \
|
|
|
|
--enable-scale-sample \
|
|
|
|
--enable-scale-smooth \
|
|
|
|
--enable-convert-yuv \
|
|
|
|
--disable-small-dither-mask \
|
|
|
|
--disable-convert-8-rgb-332 \
|
|
|
|
--disable-convert-8-rgb-666 \
|
|
|
|
--disable-convert-8-rgb-232 \
|
|
|
|
--disable-convert-8-rgb-222 \
|
|
|
|
--disable-convert-8-rgb-221 \
|
|
|
|
--disable-convert-8-rgb-121 \
|
|
|
|
--disable-convert-8-rgb-111 \
|
|
|
|
--disable-convert-16-rgb-565 \
|
|
|
|
--disable-convert-16-rgb-555 \
|
|
|
|
--disable-convert-16-rgb-444 \
|
|
|
|
--enable-convert-16-rgb-ipq \
|
|
|
|
--disable-convert-16-rgb-rot-0 \
|
|
|
|
--enable-convert-16-rgb-rot-270 \
|
|
|
|
--disable-convert-16-rgb-rot-90 \
|
|
|
|
--disable-convert-24-rgb-888 \
|
|
|
|
--disable-convert-24-bgr-888 \
|
|
|
|
--disable-convert-32-rgb-8888 \
|
|
|
|
--disable-convert-32-rgbx-8888 \
|
|
|
|
--disable-convert-32-bgr-8888 \
|
|
|
|
--disable-convert-32-bgrx-8888 \
|
|
|
|
--disable-convert-32-rgb-rot-0 \
|
|
|
|
--disable-convert-32-rgb-rot-270 \
|
|
|
|
--disable-convert-32-rgb-rot-90
|
2003-07-15 21:00:47 -07:00
|
|
|
|
2004-02-16 23:12:38 -08:00
|
|
|
INST="/tmp/"$PROJ"-instroot"
|
|
|
|
sudo rm -rf $INST
|
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
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-07-10 06:13:25 -07:00
|
|
|
|
2004-02-16 23:12:38 -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-07-10 06:13:25 -07:00
|
|
|
|
2004-02-16 23:12:38 -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-07-10 06:13:25 -07:00
|
|
|
|
2004-02-16 23:12:38 -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-07-10 06:13:25 -07:00
|
|
|
|
2004-02-16 23:12:38 -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
|
2003-07-10 06:13:25 -07:00
|
|
|
|
2004-02-16 23:12:38 -08:00
|
|
|
## package it all up
|
|
|
|
PACK=$PROJ"-"$TARGETCPU"-inst.tar.gz"
|
2003-07-10 06:13:25 -07:00
|
|
|
|
2004-02-16 23:12:38 -08:00
|
|
|
DIR=$PWD
|
|
|
|
cd $INST
|
|
|
|
sudo tar zcvf $DIR"/"$PACK *
|
|
|
|
sudo chown $USER $DIR"/"$PACK
|
|
|
|
cd $DIR
|
|
|
|
sudo rm -rf $INST
|
2003-07-10 06:13:25 -07:00
|
|
|
|
2004-02-16 23:12:38 -08:00
|
|
|
## install it in our skiff tree
|
|
|
|
cd $SKIFF"/"$TARGETCPU"-linux"
|
|
|
|
sudo tar zxvf $DIR"/"$PACK
|