DISTRHO Plugin Framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
913B

  1. #!/bin/bash
  2. set -e
  3. # Special macOS native handling
  4. if [ "${TARGET}" = "macos" ] || [ "${TARGET}" = "macos-universal" ]; then
  5. HOMEBREW_NO_AUTO_UPDATE=1 brew install cairo jack2 liblo
  6. exit 0
  7. fi
  8. # Special handling for caching deb archives
  9. if [ "$(ls ${HOME}/debs | wc -l)" -ne 0 ]; then
  10. sudo cp ${HOME}/debs/*.deb /var/cache/apt/archives/
  11. fi
  12. # common
  13. sudo apt-get install -y build-essential pkg-config
  14. # specific
  15. if [ "${TARGET}" = "win32" ]; then
  16. sudo apt-get install -y binutils-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64 winehq-stable
  17. elif [ "${TARGET}" = "win64" ]; then
  18. sudo apt-get install -y binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64 winehq-stable
  19. else
  20. sudo apt-get install -y libcairo2-dev libgl1-mesa-dev libglu1-mesa-dev libjack-jackd2-dev liblo-dev libx11-dev
  21. fi
  22. # Special handling for caching deb archives
  23. sudo mv /var/cache/apt/archives/*.deb ${HOME}/debs/