build_libcdio() { HERE=`pwd` BUILDDEPS="compiletc.tcz nasm.tcz libiconv-dev.tcz libtool.tcz libtool-dev.tcz libiconv.tcz eglibc_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/localbin:$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.83.tar.bz2 || exit 1 cd libcdio-0.83 || exit 1 patch -p1 < ../libcdio-0.83-linking.patch ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin --disable-vcd-info --enable-cpp-progs || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/libcdio }