#!/bin/sh

make pkgconfig

prefix=$(pwd)/install
export PKG_CONFIG_PATH="$prefix/lib/pkgconfig"
export PATH=$(pwd)/synfig-core/trunk/src/tool/.libs:$PATH
export CXX="/usr/bin/ccache /usr/bin/g++"
CPUS=1

cd ETL/trunk								&&
autoreconf --install --force						&&
./configure --prefix $prefix						&&
make --debug=b install							&&
									\
cd ../../synfig-core/trunk						&&
libtoolize --ltdl --copy --force					&&
autoreconf --install --force						&&
./configure --prefix $prefix --enable-optimization=0 --enable-debug	&&
make --debug=b -j $CPUS install						&&
     	  								\
cd ../../synfig-studio/trunk						&&
autoreconf --install --force						&&
./configure --prefix $prefix --enable-optimization=0 --enable-debug	&&
make --debug=b -j $CPUS install

