build_libexif() { HERE=`pwd` NAME=libexif VER=0.6.20 BUILDDEPS="compiletc.tcz" #DEPS= if [ ! -f libexif-0.6.20.tar.bz2 ]; then wget http://downloads.sourceforge.net/project/libexif/libexif/0.6.20/libexif-0.6.20.tar.bz2 || exit 1 fi for I in `echo "$BUILDDEPS"`; do su tc -c "tce-load -i "$I"" || su tc -c "tce-load -iw "$I"" done PKGPATH=$1 export LDFLAGS="-L$PKGPATH/lib" export CPPFLAGS="-I$PKGPATH/include" export PATH="$PKGPATH/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKG_CONFIG_PATH" tar xvf libexif-0.6.20.tar.bz2 || exit 1 cd libexif-0.6.20 || exit 1 ./configure --prefix="$PKGPATH" || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/libexif }