build_ffmpeg-shared() { 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=i486 -mtune=i686 -Os -pipe" export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe" export LDFLAGS="-L$PKGPATH/lib -L$PKGPATH/tmp/lib" export CPPFLAGS="-I$PKGPATH/include -I$PKGPATH/tmp/include" export PATH="$PKGPATH/bin:$PKGPATH/tmp/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKGPATH/tmp/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### if [ ! -f "$TMPDIR"/ffmpeg-shared ]; then tar xvf ffmpeg-0.7.11.tar.bz2 cd ffmpeg-0.7.11 mkdir build && cd build && ../configure --prefix="$PKGPATH" --enable-gpl --enable-postproc --enable-shared || exit 1 make make install cd "$HERE" touch "$TMPDIR"/ffmpeg-shared fi cd "$HERE" }