Skip to content

Commit

Permalink
updated fix for inc/ffmpeginstall.inc
Browse files Browse the repository at this point in the history
  • Loading branch information
centminmod committed Jul 15, 2015
1 parent f999740 commit f7b7bb3
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions inc/ffmpeginstall.inc
Expand Up @@ -11,27 +11,31 @@ cd ${DIR_TMP}
echo "FFMPEG install starting..."

if [[ "$CENTOS_SEVEN" != '7' ]]; then
echo "CentOS 6 detected"
echo "installing yum packages..."
yum -y -q install ffmpeg ffmpeg-devel mplayer mencoder flvtool2 re2c yasm nasm libvpx libvpx-devel amrnb-devel amrwb-devel libid3tag libvorbis-devel lame libogg libwmf xvidcore xvidcore-devel facc faad2 a52decoder *vorbis* ruby ruby-libs ruby-devel
elif [[ "$CENTOS_SEVEN" = '7' ]]; then
echo "CentOS 7 detected"
echo "installing yum packages..."

if [[ -z "$(rpm -ql libnemesi)" ]]; then
if [[ -z "$(rpm -ql libnemesi | grep -v 'not installed')" ]]; then
wget -cnv ftp://fr2.rpmfind.net/linux/fedora/linux/releases/20/Everything/x86_64/os/Packages/l/libnemesi-0.7.0-0.5.20110215git.fc20.x86_64.rpm
fi

if [[ -z "$(rpm -ql nas-libs)" ]]; then
if [[ -z "$(rpm -ql nas-libs | grep -v 'not installed')" ]]; then
wget -cnv ftp://fr2.rpmfind.net/linux/fedora/linux/releases/20/Everything/x86_64/os/Packages/n/nas-libs-1.9.4-1.fc20.x86_64.rpm
fi

if [[ -z "$(rpm -ql svgalib)" ]]; then
if [[ -z "$(rpm -ql svgalib | grep -v 'not installed')" ]]; then
wget -cnv ftp://fr2.rpmfind.net/linux/fedora/linux/releases/20/Everything/x86_64/os/Packages/s/svgalib-1.9.25-14.fc20.x86_64.rpm
fi

if [[ -z "$(rpm -ql netembryo)" ]]; then
if [[ -z "$(rpm -ql netembryo | grep -v 'not installed')" ]]; then
wget -cnv ftp://fr2.rpmfind.net/linux/fedora/linux/releases/20/Everything/x86_64/os/Packages/n/netembryo-0.1.1-5.fc20.x86_64.rpm
fi

if [[ -z "$(rpm -ql libnemesi)" || -z "$(rpm -ql nas-libs)" || -z "$(rpm -ql svgalib)" || -z "$(rpm -ql netembryo)" ]]; then
yum -y localinstall *.rpm
if [[ -z "$(rpm -ql libnemesi | grep -v 'not installed')" || -z "$(rpm -ql nas-libs | grep -v 'not installed')" || -z "$(rpm -ql svgalib | grep -v 'not installed')" || -z "$(rpm -ql netembryo | grep -v 'not installed')" ]]; then
yum -y localinstall libnemesi-0.7.0-0.5.20110215git.fc20.x86_64.rpm nas-libs-1.9.4-1.fc20.x86_64.rpm svgalib-1.9.25-14.fc20.x86_64.rpm netembryo-0.1.1-5.fc20.x86_64.rpm
fi

yum -y -q install ffmpeg ffmpeg-devel mplayer mencoder flvtool2 re2c yasm nasm libvpx libvpx-devel amrnb-devel amrwb-devel libid3tag libvorbis-devel lame libogg libwmf xvidcore xvidcore-devel facc faad2 a52decoder *vorbis* ruby ruby-libs ruby-devel --disableplugin=priorities --enablerepo=atrpms
Expand Down

0 comments on commit f7b7bb3

Please sign in to comment.