build_normalize() { HERE=`pwd` . ./audiofile-sc.inc || exit 1 . ./flac-sc.inc || exit 1 . ./lame-sc.inc || exit 1 . ./libmad-sc.inc || exit 1 . ./mpg123-sc.inc || exit 1 . ./vorbis-tools-sc.inc || exit 1 BUILDDEPS="compiletc.tcz gettext.tcz intltool.tcz autoconf.tcz automake.tcz" #DEPS= 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/localbin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKG_CONFIG_PATH" export LD_LIBRARY_PATH="$PKGPATH"/lib if [ ! -f "$TMPDIR"/audiofile ]; then build_audiofile "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/flac ]; then build_flac "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/lame ]; then build_lame "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libmad ]; then build_libmad "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/mpg123 ]; then build_mpg123 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/vorbis-tools ]; then build_vorbis-tools "$PKGPATH" || exit 1 fi tar xvf normalize-0.7.7.tar.bz2 || exit 1 cd normalize-0.7.7 || exit 1 patch -Np1 -i ../normalize-0.7.7-audiofile-pkgconfig.patch patch -Np0 -i ../normalize-0.7.7-m4.patch touch AUTHORS NEWS ChangeLog libtoolize --force --copy || exit 1 aclocal -I m4 || exit 1 autoreconf || exit 1 automake --add-missing || exit 1 ./configure --prefix="$PKGPATH" --with-audiofile-prefix="$PKGPATH" --with-mad --bindir="$PKGPATH"/localbin || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/normalize }