分类: LINUX
2007-12-30 18:47:47
#!/bin/bash # Title : install_mplayer # Programmer: Kelvin Cheung # Purpose : Install mplayer for Fedora 8 # Originally Written: 11/13/2007 # Last Changed : 12/01/2007 #sources: #- MPlayer-1.0rc2.tar.bz2 # xvidcore-1.1.3.tar.gz # live.2007.11.01.tar.gz # essential-20071007.tar.bz2 # lame-3.97.tar.gz # Blue-1.7.tar.bz2 echo "Installing MPlayer ..." echo "Lame ..." tar xzf lame-3.97.tar.gz >/dev/null 2>&1 pushd lame-3.97 >/dev/null 2>&1 ./configure >/dev/null 2>&1 make >/dev/null 2>&1 make install >/dev/null 2>&1 popd >/dev/null 2>&1 rm -rf lame-3.97 echo "Xvid ..." tar xzf xvidcore-1.1.3.tar.gz >/dev/null 2>&1 pushd xvidcore-1.1.3/build/generic >/dev/null 2>&1 ./configure >/dev/null 2>&1 make >/dev/null 2>&1 make install >/dev/null 2>&1 popd >/dev/null 2>&1 rm -rf xvidcore-1.1.3 echo "LIVE555 ..." tar xzf live.2007.11.01.tar.gz >/dev/null 2>&1 pushd live >/dev/null 2>&1 ./genMakefiles linux >/dev/null 2>&1 make >/dev/null 2>&1 popd >/dev/null 2>&1 mv live /usr/local/lib/ echo "Codecs ..." tar xjf essential-20071007.tar.bz2 >/dev/null 2>&1 mv essential-20071007 /usr/local/lib/codecs echo "MPlayer ..." tar xjf MPlayer-1.0rc2.tar.bz2 >/dev/null 2>&1 pushd MPlayer-1.0rc2 >/dev/null 2>&1 ./configure --prefix=/usr --confdir=/etc/mplayer --codecsdir=/usr/local/lib/codecs \ --enable-gui --enable-largefiles --enable-menu >/dev/null 2>&1 make >/dev/null 2>&1 make install >/dev/null 2>&1 popd >/dev/null 2>&1 rm -rf MPlayer-1.0rc2 echo "OSD/Fonts ..." ln -s /usr/share/fonts/cjkunifonts-uming/uming.ttf ~/.mplayer/subfont.ttf echo "GUI/Skins ..." tar xjf Blue-1.7.tar.bz2 >/dev/null 2>&1 mv Blue /usr/share/mplayer/skins/ pushd /usr/share/mplayer/skins >/dev/null 2>&1 ln -s Blue default popd >/dev/null 2>&1 echo " done." |
|
Config files successfully generated by ./configure --prefix=/usr --confdir=/etc/mplayer --codecsdir=/usr/local/lib/codecs --enable-gui --enable-largefiles --enable-menu ! |