build_mplayer() { HERE=`pwd` BUILDDEPS="compiletc.tcz pixman-dev.tcz yasm.tcz" #DEPS= . ./libtheora-sc.inc || exit 1 . ./a52dec-sc.inc || exit 1 . ./alsa-lib-sc.inc || exit 1 . ./bzip2-sc.inc || exit 1 . ./faac-sc.inc || exit 1 . ./faad2-sc.inc || exit 1 . ./jack-sc.inc || exit 1 . ./libbluray-sc.inc || exit 1 . ./libcdio-sc.inc || exit 1 . ./libdvdnav-sc.inc || exit 1 . ./libjpeg-turbo-sc.inc || exit 1 . ./libmad-sc.inc || exit 1 . ./libmikmod-sc.inc || exit 1 . ./libsamplerate-sc.inc || exit 1 . ./ncurses-sc.inc || exit 1 . ./sdl_image-sc.inc || exit 1 . ./sdl_mixer-sc.inc || exit 1 . ./lame-sc.inc || exit 1 . ./x264-sc.inc || exit 1 . ./libmpcdec-sc.inc || exit 1 . ./fontconfig-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 export CFLAGS="$CFLAGS -fomit-frame-pointer" export CXXFLAGS="$CXXFLAGS -fomit-frame-pointer" PKGPATH=$1 export LDFLAGS="-L$PKGPATH/lib $LDFLAGS" export CPPFLAGS="-I$PKGPATH/include $CPPFLAGS" export PATH="$PKGPATH/localbin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKG_CONFIG_PATH" if [ ! -f "$TMPDIR"/fontconfig ]; then build_fontconfig "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libtheora ]; then build_libtheora "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/a52dec ]; then build_a52dec "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/alsa-lib ]; then build_alsa-lib "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/bzip2 ]; then build_bzip2 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/faac ]; then build_faac "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/faad2 ]; then build_faad2 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/jack ]; then build_jack "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libbluray ]; then build_libbluray "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libcdio ]; then build_libcdio "$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"/libmikmod ]; then build_libmikmod "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libsamplerate ]; then build_libsamplerate "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/ncurses ]; then build_ncurses "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/sdl_image ]; then build_sdl_image "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/sdl_mixer ]; then build_sdl_mixer "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/lame ]; then build_lame "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/x264 ]; then build_x264 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libmpcdec ]; then build_libmpcdec "$PKGPATH" || exit 1 fi tar xvf MPlayer-1.1.tar.xz || exit 1 cd MPlayer-1.1 || exit 1 ./configure --prefix="$PKGPATH" \ --bindir="$PKGPATH"/localbin \ --confdir="$PKGPATH"/etc/mplayer \ --enable-dynamic-plugins \ --enable-debug=3 \ --enable-menu || exit 1 make || exit 1 make install || exit 1 install -v -m644 etc/codecs.conf "$PKGPATH"/etc/mplayer cd "$HERE" touch "$TMPDIR"/mplayer }