Skip to content
This repository was archived by the owner on Dec 31, 2017. It is now read-only.

Commit d85f5be

Browse files
author
Jay Zeschin
committed
Need to install LAME libs as well
1 parent ee23073 commit d85f5be

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

bin/compile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,23 @@ indent() {
44
sed -u 's/^/ /'
55
}
66

7-
echo "-----> Install ffmpeg"
7+
echo "-----> Install ffmpeg (with LAME support)"
88
BUILD_DIR=$1
99
VENDOR_DIR="vendor"
10-
DOWNLOAD_URL="http://topfan-production.s3.amazonaws.com/ffmpeg.tar.gz"
10+
FFMPEG_DOWNLOAD_URL="http://topfan-production.s3.amazonaws.com/ffmpeg.tar.gz"
11+
LAME_DOWNLOAD_URL="http://topfan-production.s3.amazonaws.com/mp3lame.tar.gz"
1112

12-
echo "DOWNLOAD_URL = " $DOWNLOAD_URL | indent
13+
echo "FFMPEG_DOWNLOAD_URL = " $FFMPEG_DOWNLOAD_URL | indent
14+
echo "LAME_DOWNLOAD_URL = " $LAME_DOWNLOAD_URL | indent
1315

1416
cd $BUILD_DIR
1517
mkdir -p $VENDOR_DIR
1618
cd $VENDOR_DIR
17-
curl -L --silent $DOWNLOAD_URL | tar xz
19+
curl -L --silent $FFMPEG_DOWNLOAD_URL | tar xz
20+
curl -L --silent $LAME_DOWNLOAD_URL | tar xz
1821

1922
echo "exporting PATH and LIBRARY_PATH" | indent
20-
PROFILE_PATH="$BUILD_DIR/.profile.d/ffmpeg.sh"
23+
PROFILE_PATH="$BUILD_DIR/.profile.d/ffmpeg_lame.sh"
2124
mkdir -p $(dirname $PROFILE_PATH)
22-
echo 'export PATH="$PATH:vendor/ffmpeg/bin"' >> $PROFILE_PATH
23-
echo 'export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:vendor/ffmpeg/lib"' >> $PROFILE_PATH
25+
echo 'export PATH="$PATH:vendor/ffmpeg/bin:vendor/mp3lame/bin"' >> $PROFILE_PATH
26+
echo 'export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:vendor/ffmpeg/lib:vendor/mp3lame/lib"' >> $PROFILE_PATH

0 commit comments

Comments
 (0)