Skip to content

Commit

Permalink
Fix/use mirror for libav (#961)
Browse files Browse the repository at this point in the history
  • Loading branch information
lodoyun authored Jul 12, 2017
1 parent 92a18e0 commit 1a1e988
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions scripts/installMacDeps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ install_mediadeps(){
brew install opus libvpx x264
if [ -d $LIB_DIR ]; then
cd $LIB_DIR
curl -OL https://www.libav.org/releases/libav-11.6.tar.gz
tar -zxvf libav-11.6.tar.gz
curl -O -L https://github.com/libav/libav/archive/v11.6.tar.gz
tar -zxvf v11.6.tar.gz
cd libav-11.6
curl -OL https://github.com/libav/libav/commit/4d05e9392f84702e3c833efa86e84c7f1cf5f612.patch
patch libavcodec/libvpxenc.c 4d05e9392f84702e3c833efa86e84c7f1cf5f612.patch && \
Expand All @@ -193,8 +193,8 @@ install_mediadeps_nogpl(){
brew install opus libvpx
if [ -d $LIB_DIR ]; then
cd $LIB_DIR
curl -OL https://www.libav.org/releases/libav-11.6.tar.gz
tar -zxvf libav-11.6.tar.gz
curl -O -L https://github.com/libav/libav/archive/v11.6.tar.gz
tar -zxvf v11.6.tar.gz
cd libav-11.6
curl -OL https://github.com/libav/libav/commit/4d05e9392f84702e3c833efa86e84c7f1cf5f612.patch
patch libavcodec/libvpxenc.c 4d05e9392f84702e3c833efa86e84c7f1cf5f612.patch && \
Expand Down
14 changes: 7 additions & 7 deletions scripts/installUbuntuDeps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ install_mediadeps(){
sudo apt-get -qq install yasm libvpx. libx264.
if [ -d $LIB_DIR ]; then
cd $LIB_DIR
if [ ! -f ./libav-11.1.tar.gz ]; then
curl -OL https://www.libav.org/releases/libav-11.1.tar.gz
tar -zxvf libav-11.1.tar.gz
if [ ! -f ./v11.1.tar.gz ]; then
curl -O -L https://github.com/libav/libav/archive/v11.1.tar.gz
tar -zxvf v11.1.tar.gz
cd libav-11.1
PKG_CONFIG_PATH=${PREFIX_DIR}/lib/pkgconfig ./configure --prefix=$PREFIX_DIR --enable-shared --enable-gpl --enable-libvpx --enable-libx264 --enable-libopus
make -s V=0
Expand All @@ -176,9 +176,9 @@ install_mediadeps_nogpl(){
sudo apt-get -qq install yasm libvpx.
if [ -d $LIB_DIR ]; then
cd $LIB_DIR
if [ ! -f ./libav-11.1.tar.gz ]; then
curl -OL https://www.libav.org/releases/libav-11.1.tar.gz
tar -zxvf libav-11.1.tar.gz
if [ ! -f ./v11.1.tar.gz ]; then
curl -O -L https://github.com/libav/libav/archive/v11.1.tar.gz
tar -zxvf v11.1.tar.gz
cd libav-11.1
PKG_CONFIG_PATH=${PREFIX_DIR}/lib/pkgconfig ./configure --prefix=$PREFIX_DIR --enable-shared --enable-gpl --enable-libvpx --enable-libopus
make -s V=0
Expand Down Expand Up @@ -212,7 +212,7 @@ cleanup(){
if [ -d $LIB_DIR ]; then
cd $LIB_DIR
rm -r libnice*
rm -r libav*
rm -r v11*
rm -r openssl*
rm -r opus*
cd $CURRENT_DIR
Expand Down
12 changes: 6 additions & 6 deletions scripts/travisInstallDeps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ install_mediadeps(){
sudo apt-get -qq install yasm libvpx. libx264.
if [ -d $LIB_DIR ]; then
cd $LIB_DIR
if [ ! -f ./libav-11.1.tar.gz ]; then
curl -OL https://www.libav.org/releases/libav-11.1.tar.gz
tar -zxvf libav-11.1.tar.gz
if [ ! -f ./v11.1.tar.gz ]; then
curl -O -L https://github.com/libav/libav/archive/v11.1.tar.gz
tar -zxvf v11.1.tar.gz
cd libav-11.1
PKG_CONFIG_PATH=${PREFIX_DIR}/lib/pkgconfig ./configure --prefix=$PREFIX_DIR --enable-shared --enable-gpl --enable-libvpx --enable-libx264 --enable-libopus
make -s V=0
Expand All @@ -154,9 +154,9 @@ install_mediadeps_nogpl(){
sudo apt-get -qq install yasm libvpx.
if [ -d $LIB_DIR ]; then
cd $LIB_DIR
if [ ! -f ./libav-11.1.tar.gz ]; then
curl -OL https://www.libav.org/releases/libav-11.1.tar.gz
tar -zxvf libav-11.1.tar.gz
if [ ! -f ./v11.1.tar.gz ]; then
curl -O -L https://github.com/libav/libav/archive/v11.1.tar.gz
tar -zxvf v11.1.tar.gz
cd libav-11.1
PKG_CONFIG_PATH=${PREFIX_DIR}/lib/pkgconfig ./configure --prefix=$PREFIX_DIR --enable-shared --enable-gpl --enable-libvpx --enable-libopus
make -s V=0
Expand Down

0 comments on commit 1a1e988

Please sign in to comment.