build_libcdio() { HERE=`pwd` NAME=libcdio VER=0.82 BUILDEPS="compiletc.tcz nasm.tcz glibc_gconv.tcz" for I in `echo "$BUILDDEPS"`; do su tc -c "tce-load -i "$I"" || su tc -c "tce-load -iw "$I"" done . ./libcddb-sc.inc || exit 1 . ./ncurses-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:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" if [ ! -f "$TMPDIR"/libcddb ]; then build_libcddb "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/ncurses ]; then build_ncurses "$PKGPATH" || exit 1 fi tar xvf libcdio-0.82.tar.gz || exit 1 cd libcdio-0.82 || exit 1 ./configure --prefix="$PKGPATH" --disable-vcd-info --enable-cpp-progs || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/libcdio }