jack2 codebase
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.

86 lines
2.3KB

  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. if [ "$TRAVIS_OS_NAME" == "osx" ]; then
  4. brew install \
  5. pkg-config \
  6. aften \
  7. libsamplerate \
  8. libsndfile \
  9. opus \
  10. readline \
  11. doxygen
  12. # force installation of gcc-6 if required
  13. if [ "${CC}" == "gcc-6" ]; then
  14. brew install gcc@6
  15. fi
  16. # force installation of gcc-7 if required
  17. if [ "${CC}" == "gcc-7" ]; then
  18. brew install gcc@7
  19. fi
  20. # force installation of gcc-8 if required
  21. if [ "${CC}" == "gcc-8" ]; then
  22. brew install gcc@8
  23. fi
  24. fi
  25. if [ "$TRAVIS_OS_NAME" == "linux" ]; then
  26. # autotools, automake, make are present in the trusty image
  27. sudo apt-get install -y \
  28. doxygen \
  29. libffado-dev \
  30. libsamplerate-dev \
  31. libsndfile-dev \
  32. libasound2-dev \
  33. libdb-dev \
  34. systemd-services \
  35. systemd \
  36. libsystemd-journal-dev \
  37. libsystemd-login-dev \
  38. libsystemd-id128-dev \
  39. libsystemd-daemon-dev \
  40. libpam-systemd \
  41. libdbus-1-dev \
  42. libeigen3-dev \
  43. libopus-dev \
  44. portaudio19-dev \
  45. locate
  46. # remove everything that jack will provide
  47. # (it can not be a dependency for the build)
  48. # these files were dragged in by the above apt-get install of dependency packages
  49. sudo rm -rf /usr/lib/x86_64-linux-gnu/libjack*
  50. sudo rm -rf /usr/include/jack*
  51. sudo rm -rf /usr/share/doc/libjack*
  52. sudo rm -rf /var/lib/dpkg/info/libjack*
  53. sudo rm -rf /usr/lib/x86_64-linux-gnu/pkgconfig/jack.pc
  54. # when these files aren't deleted: jackd will behave strange after install.
  55. # one symptom: unknown option character l
  56. sudo updatedb
  57. echo "found these files with 'jack' in name after installing dependencies and clean up:"
  58. echo "========================================================================="
  59. locate jack | grep -v /home/travis/build
  60. echo "========================================================================="
  61. # force installation of gcc-6 if required
  62. if [ "${CC}" == "gcc-6" ]; then
  63. sudo apt-get install gcc-6 g++-6
  64. fi
  65. # force installation of gcc-7 if required
  66. if [ "${CC}" == "gcc-7" ]; then
  67. sudo apt-get install gcc-7 g++-7
  68. fi
  69. # force installation of gcc-8 if required
  70. if [ "${CC}" == "gcc-8" ]; then
  71. sudo apt-get install gcc-8 g++-8
  72. fi
  73. # force installation of clang-3.8 if required
  74. if [ "${CC}" == "clang-3.8" ]; then
  75. sudo apt-get install clang-3.8
  76. fi
  77. fi
  78. exit 0