linux.win32.install.sh 1.0 KB

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/env bash
  2. set -e
  3. MINGW_PACKAGES="mingw32-x-sdl mingw32-x-libvorbis mingw32-x-fluidsynth mingw32-x-stk
  4. mingw32-x-glib2 mingw32-x-portaudio mingw32-x-libsndfile mingw32-x-fftw
  5. mingw32-x-flac mingw32-x-fltk mingw32-x-libsamplerate
  6. mingw32-x-pkgconfig mingw32-x-binutils mingw32-x-gcc mingw32-x-runtime
  7. mingw32-x-libgig mingw32-x-libsoundio mingw32-x-lame mingw32-x-qt5base"
  8. # swh build dependencies
  9. SWH_PACKAGES="perl libxml2-utils libxml-perl liblist-moreutils-perl"
  10. export MINGW_PACKAGES
  11. "$TRAVIS_BUILD_DIR/.travis/linux.win.download.sh" win32
  12. PACKAGES="nsis cloog-isl libmpc3 qt4-linguist-tools mingw32 $MINGW_PACKAGES $SWH_PACKAGES"
  13. # shellcheck disable=SC2086
  14. sudo apt-get install -y $PACKAGES
  15. # ccache 3.2 is needed because mingw32-x-gcc is version 4.9, which causes cmake
  16. # to use @file command line passing, which in turn ccache 3.1.9 doesn't support
  17. pushd /tmp
  18. wget http://archive.ubuntu.com/ubuntu/pool/main/c/ccache/ccache_3.2.4-1_amd64.deb
  19. sha256sum -c "$TRAVIS_BUILD_DIR/.travis/ccache.sha256"
  20. sudo dpkg -i ccache_3.2.4-1_amd64.deb
  21. popd