Skip to content

Commit

Permalink
Travis MacOS: install homebrew bottles manually
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Feb 12, 2017
1 parent bfebf95 commit fee0364
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions build/travis/job_macos/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,24 @@ unzip bottles.zip
rm bottles/freetype*

brew update
brew install bottles/libogg*
brew install bottles/libvorbis*
brew install bottles/flac*
brew install bottles/libsndfile*
brew install bottles/portaudio*

# additional dependencies
brew install jack lame
#brew install libogg libvorbis flac libsndfile portaudio

function installBottleManually {
brew unlink $1
rm -rf /usr/local/Cellar/$1
tar xzvf bottles/$1*.tar.gz -C /usr/local/Cellar
find /usr/local/Cellar/$1 -type f -name '*.pc' -exec sed -i '' 's:@@HOMEBREW_CELLAR@@:/usr/local/Cellar:g' {} +
brew link $1
}

installBottleManually libogg
installBottleManually libvorbis
installBottleManually flac
installBottleManually libsndfile
installBottleManually portaudio

#update ruby
rvm uninstall 2.0.0-p648
Expand Down

0 comments on commit fee0364

Please sign in to comment.