build_a52dec() { HERE=`pwd` NAME=a52dec VER=0.7.4 BUILDDEPS="compiletc.tcz" #DEPS= if [ ! -f a52dec-0.7.4.tar.gz ]; then wget http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz || 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" export LD_LIBRARY_PATH="$PKGPATH/lib" tar xvf a52dec-0.7.4.tar.gz || exit 1 cd a52dec-0.7.4 || exit 1 patch -p1 < ../a52dec-0.7.4-build.patch ./configure --prefix="$PKGPATH" || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/a52dec }