代码拉取完成,页面将自动刷新
#!/bin/bash
function _install_yasm() {
clear
_file="yasm-1.3.0.tar.gz"
_package="YASM"
echo -e $RED"Installation of $_package ....... started"$RESET
cd $SOURCE_DIR/
if [ -f "$_file" ]
then
echo "$_file found, Skip Downloads"
else
echo "$_file not found, Try Downloading......"
wget http://www.tortall.net/projects/yasm/releases/$_file
fi
tar -xvzf $_file
cd yasm-1.3.0/
./configure --prefix=$INSTALL_DIR
make -j$cpu
make install
ln -sf /usr/local/ffmpegtoolkit/bin/yasm /usr/local/bin/yasm
echo -e $RED"Installation of $_package ....... Completed"$RESET
cd $SOURCE_DIR/
}
function _install_nasm() {
clear
_file="nasm-2.13.02.tar.gz"
_package="NASM"
echo -e $RED"Installation of $_package ....... started"$RESET
cd $SOURCE_DIR/
if [ -f "$_file" ]
then
echo "$_file found, Skip Downloads"
else
echo "$_file not found, Try Downloading......"
wget http://www.nasm.us/pub/nasm/releasebuilds/2.13.02/$_file
fi
tar -xvzf $_file
cd nasm-2.13.02/
./configure --prefix=$INSTALL_DIR
make -j $cpu
make install
ln -sf /usr/local/ffmpegtoolkit/bin/nasm /usr/local/bin/nasm
echo -e $RED"Installation of $_package ....... Completed"$RESET
cd $SOURCE_DIR/
}
_install_yasm
_install_nasm
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。