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