linux.win32.install.sh 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/env bash
  2. set -e
  3. if [ $QT5 ]; then
  4. MINGW_PACKAGES="mingw32-x-qt5base"
  5. else
  6. MINGW_PACKAGES="mingw32-x-qt"
  7. fi
  8. MINGW_PACKAGES="mingw32-x-sdl mingw32-x-libvorbis mingw32-x-fluidsynth mingw32-x-stk
  9. mingw32-x-glib2 mingw32-x-portaudio mingw32-x-libsndfile mingw32-x-fftw
  10. mingw32-x-flac mingw32-x-fltk mingw32-x-libsamplerate
  11. mingw32-x-pkgconfig mingw32-x-binutils mingw32-x-gcc mingw32-x-runtime
  12. mingw32-x-libgig mingw32-x-libsoundio mingw32-x-lame $MINGW_PACKAGES"
  13. export MINGW_PACKAGES
  14. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  15. . $DIR/linux.win.download.sh win32
  16. PACKAGES="nsis cloog-isl libmpc3 qt4-linguist-tools mingw32 $MINGW_PACKAGES"
  17. sudo apt-get install -y $PACKAGES
  18. # ccache 3.2 is needed because mingw32-x-gcc is version 4.9, which causes cmake
  19. # to use @file command line passing, which in turn ccache 3.1.9 doesn't support
  20. pushd /tmp
  21. wget http://archive.ubuntu.com/ubuntu/pool/main/c/ccache/ccache_3.2.4-1_amd64.deb
  22. sha256sum -c $TRAVIS_BUILD_DIR/.travis/ccache.sha256
  23. sudo dpkg -i ccache_3.2.4-1_amd64.deb
  24. popd