Skip to content

Commit

Permalink
Need to install LAME libs as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Zeschin committed Aug 2, 2013
1 parent ee23073 commit d85f5be
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,23 @@ indent() {
sed -u 's/^/ /'
}

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

echo "DOWNLOAD_URL = " $DOWNLOAD_URL | indent
echo "FFMPEG_DOWNLOAD_URL = " $FFMPEG_DOWNLOAD_URL | indent
echo "LAME_DOWNLOAD_URL = " $LAME_DOWNLOAD_URL | indent

cd $BUILD_DIR
mkdir -p $VENDOR_DIR
cd $VENDOR_DIR
curl -L --silent $DOWNLOAD_URL | tar xz
curl -L --silent $FFMPEG_DOWNLOAD_URL | tar xz
curl -L --silent $LAME_DOWNLOAD_URL | tar xz

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

0 comments on commit d85f5be

Please sign in to comment.