build_lame() { HERE=`pwd` NAME=lame VER=3.99.3 . ./ncurses-sc.inc || exit 1 PKGPATH=$1 export LDFLAGS="-L$PKGPATH/lib:/apps/gtk2/lib" export CPPFLAGS="-I$PKGPATH/include -I/apps/gtk2/include" export PATH="$PKGPATH/localbin:/apps/gtk2/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:/apps/gtk2/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" if [ ! -f "$TMPDIR"/ncurses ]; then build_ncurses "$PKGPATH" || exit 1 fi tar xvf lame-3.99.3.tar.gz || exit 1 cd lame-3.99.3 || exit 1 ./configure --prefix="$PKGPATH" --enable-nasm --bindir="$PKGPATH"/localbin || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/lame }