build_vorbis-tools() { HERE=`pwd` . ./curl-sc.inc || exit 1 . ./flac-sc.inc || exit 1 . ./libao-sc.inc || exit 1 . ./libvorbis-sc.inc || exit 1 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 if [ ! -f "$TMPDIR"/curl ]; then build_curl "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/flac ]; then build_flac "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libao ]; then build_libao "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libvorbis ]; then build_libvorbis "$PKGPATH" || exit 1 fi tar xvf vorbis-tools-1.4.0.tar.gz || exit 1 cd vorbis-tools-1.4.0 || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/vorbis-tools }