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.

102 lines
2.8KB

  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. # force installation of gcc-9 if required
  25. if [ "${CC}" == "gcc-9" ]; then
  26. brew install gcc@9
  27. fi
  28. fi
  29. if [ "$TRAVIS_OS_NAME" == "linux" ]; then
  30. # autotools, automake, make are present in the trusty image
  31. sudo apt-get install -y \
  32. doxygen \
  33. libffado-dev \
  34. libsamplerate-dev \
  35. libsndfile-dev \
  36. libasound2-dev \
  37. libdb-dev \
  38. systemd \
  39. libsystemd-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 gcc-9 if required
  74. if [ "${CC}" == "gcc-9" ]; then
  75. sudo apt-get install gcc-9 g++-9
  76. fi
  77. # force installation of clang-3.5 if required
  78. if [ "${CC}" == "clang-3.5" ]; then
  79. sudo apt-get install clang-3.5
  80. fi
  81. # force installation of clang-3.8 if required
  82. if [ "${CC}" == "clang-3.8" ]; then
  83. sudo apt-get install clang-3.8
  84. fi
  85. # force installation of clang-6.0 if required
  86. if [ "${CC}" == "clang-6.0" ]; then
  87. sudo apt-get install clang-6.0
  88. fi
  89. # force installation of clang-8 if required
  90. if [ "${CC}" == "clang-8" ]; then
  91. sudo apt-get install clang-8
  92. fi
  93. fi
  94. exit 0