build_alsa-utils() { HERE=`pwd` NAME=alsa-utils VER=1.0.24.2 BUILDDEPS="compiletc.tcz gettext.tcz intltool.tcz" #DEPS= . ./alsa-lib-sc.inc || exit 1 . ./dialog-sc.inc || exit 1 if [ ! -f alsa-lib-1.0.24.1.tar.bz2 ]; then wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.24.1.tar.bz2 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" if [ ! -f "$TMPDIR"/dialog ]; then build_dialog "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/alsa-lib ]; then build_alsa-lib "$PKGPATH" || exit 1 fi tar xvf alsa-utils-1.0.24.2.tar.bz2 || exit 1 cd alsa-utils-1.0.24.2 || exit 1 ./configure --prefix="$PKGPATH" --with-sound-state-dir="$PKGPATH"/etc --with-alsa-inc-prefix="$PKGPATH" --with-alsa-prefix="$PKGPATH" --disable-xmlto || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/alsa-utils }