Browse Source

update install ffmpeg

gemer 4 years ago
parent
commit
6206ebfcd6
1 changed files with 15 additions and 12 deletions
  1. 15 12
      install-ffmpeg

+ 15 - 12
install-ffmpeg

@@ -524,7 +524,7 @@ fi
 CONFIGURE_OPTIONS+=("--enable-libopencore_amrnb" "--enable-libopencore_amrwb")
 
 if build "lame"; then
-  download "https://netcologne.dl.sourceforge.net/project/lame/lame/3.100/lame-3.100.tar.gz"
+  download "https://fossies.org/linux/misc/lame-3.100.tar.gz"
   execute ./configure --prefix="${WORKSPACE}" --disable-shared --enable-static
   execute make -j $MJOBS
   execute make install
@@ -758,17 +758,20 @@ if command_exists "python3"; then
   pyv="$(python3 -c 'import sys; print(".".join(map(str, sys.version_info[:3])))' 2>&1)"
   laverison="3.5.2"
   echo "$pyv"
-  # if [ 1 -eq "$(echo "${pyv} > ${laverison}" | bc)" ];then
-  sudo apt-get remove python3.4 -y
-  sudo apt-get install software-properties-common python-software-properties -y
-  sudo add-apt-repository ppa:deadsnakes/ppa -y
-  sudo apt-get update -y
-  sudo apt-get install python3-pip python3.6 -y
-  # fi
-  sudo pip3 install meson
-# else
-#   sudo apt-get install -y python3-pip
-#   sudo pip3 install meson
+  comparse=$(awk 'BEGIN{ print "'$pyv'"<="'$laverison'" }')
+  if [ "$comparse" -eq 1 ]; then
+    echo "install system python3.7"
+    sudo apt-get remove python3.4 -y
+    sudo apt-get install software-properties-common python-software-properties -y
+    sudo add-apt-repository ppa:deadsnakes/ppa -y
+    sudo apt-get update -y
+    sudo apt-get install python3-pip python3.7 -y
+    sudo apt-get install python3.7-gdbm -y
+  else
+    echo "python3:$pyv,only need install meson ninja  "
+    sudo apt-get install -y
+    sudo pip3 install meson ninja
+  fi
 fi
 chmod +x install.sh && ./install.sh
 build_done "speech-denoiser"