build_vcdimager() { HERE=`pwd` NAME=vcdimager VER=0.7.24 BUILDDEPS="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 . ./libcdio-sc.inc || exit 1 . ./libxml2-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"/libcdio ]; then build_libcdio "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libxml2 ]; then build_libxml2 "$PKGPATH" || exit 1 fi tar xvf vcdimager-0.7.24.tar.gz || exit 1 cd vcdimager-0.7.24 || exit 1 ./configure --prefix="$PKGPATH" || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/vcdimager }