build_xine-xvesa-i686() { HERE=`pwd` NAME=xine-xvesa-i686 VER=0.99.6 BUILDDEPS="compiletc.tcz intltool.tcz libtool-dev.tcz glibc_gconv.tcz" #DEPS= . ./libvorbis-sc.inc || exit 1 . ./flac-sc.inc || exit 1 . ./fontconfig-sc.inc || exit 1 . ./alsa-lib-sc.inc || exit 1 . ./a52dec-sc.inc || exit 1 . ./faad2-sc.inc || exit 1 . ./faac-sc.inc || exit 1 . ./flac-sc.inc || exit 1 . ./jack-sc.inc || exit 1 . ./libbluray-sc.inc || exit 1 . ./libdvdnav-sc.inc || exit 1 . ./libjpeg-turbo-sc.inc || exit 1 . ./libmad-sc.inc || exit 1 . ./libmpcdec-sc.inc || exit 1 . ./libsamplerate-sc.inc || exit 1 . ./wavpack-sc.inc || exit 1 . ./libcdio-sc.inc || exit 1 . ./vcdimager-sc.inc || exit 1 . ./lame-sc.inc || exit 1 . ./libtheora-sc.inc || exit 1 . ./libvpx-sc.inc || exit 1 . ./x264-sc.inc || exit 1 . ./xvidcore-sc.inc || exit 1 . ./shared-mime-info-sc.inc || exit 1 for I in `echo "$BUILDDEPS"`; do su tc -c "tce-load -i "$I"" || su tc -c "tce-load -iw "$I"" done PKGPATH=$1 export CFLAGS="-march=i686 -Os -pipe" export CXXFLAGS="-march=i686 -Os -pipe" 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"/libvorbis ]; then build_libvorbis "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/flac ]; then build_flac "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/fontconfig ]; then build_fontconfig "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/alsa-lib ]; then build_alsa-lib "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/a52dec ]; then build_a52dec "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/faad2 ]; then build_faad2 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/flac ]; then build_flac "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/jack ]; then build_jack "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/faac ]; then build_faac "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libbluray ]; then build_libbluray "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libdvdnav ]; then build_libdvdnav "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libjpeg-turbo ]; then build_libjpeg-turbo "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libmad ]; then build_libmad "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libmpcdec ]; then build_libmpcdec "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libsamplerate ]; then build_libsamplerate "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/wavpack ]; then build_wavpack "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libcdio ]; then build_libcdio "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/vcdimager ]; then build_vcdimager "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/lame ]; then build_lame "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libtheora ]; then build_libtheora "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libvpx ]; then build_libvpx "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/x264 ]; then build_x264 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/xvidcore ]; then build_xvidcore "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/shared-mime-info ]; then build_shared-mime-info "$PKGPATH" || exit 1 fi ###BUILD STATIC FFMPEG TO BUILD AGAINST############# if [ ! -f "$TMPDIR"/ffmpeg ]; then 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" tar xvf ffmpeg-0.9.tar.bz2 cd ffmpeg-0.9 mkdir build && cd build && ../configure --prefix="$PKGPATH"/ffmpeg-tmp --enable-gpl --enable-postproc --enable-static --disable-shared || exit 1 make make install cd "$HERE" touch "$TMPDIR"/ffmpeg fi #################################################### export LDFLAGS="-L$PKGPATH/lib -L"$PKGPATH"/ffmpeg-tmp/lib" export CPPFLAGS="-I$PKGPATH/include -I$PKGPATH/ffmpeg-tmp/include" export PATH="$PKGPATH/bin:$PKGPATH/ffmpeg-tmp/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKGPATH/ffmpeg-tmp/lib/pkgconfig:$PKG_CONFIG_PATH" if [ ! -f "$TMPDIR"/xine-lib ]; then tar xvf xine-lib-1.2.0.tar.xz || exit 1 cd xine-lib-1.2.0 || exit 1 ./configure --prefix="$PKGPATH" --with-wavpack || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/xine-lib cd "$HERE" fi tar xvf xine-ui-0.99.6.tar.bz2 || exit 1 cd xine-ui-0.99.6 ./configure --prefix="$PKGPATH" --with-x --disable-lirc || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/xine-xvesa-i686 cd "$HERE" }