-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathinstall-mac
More file actions
executable file
·58 lines (41 loc) · 1.02 KB
/
install-mac
File metadata and controls
executable file
·58 lines (41 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
which -s brew
if [ $? != 0 ]; then
echo "Installing homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
export PATH=/usr/bin:$PATH
else
echo "Homebrew detected"
export PATH=/usr/bin:$PATH
fi
echo
echo "Using Homebrew to install dependencies..."
echo
brew update
#Download and install the dependencies
echo "Installing autoconf..."
brew install autoconf
# Check if the install worked, if not change the ownership of the directory
# and try to install again
if [ $? -eq 0 ]; then
continue
else
chmod u+w /usr/local/share/man/man8
sudo chown -R $(whoami) /usr/local/share/man/man8
brew install autoconf
fi
echo "Installing automake..."
brew install automake
echo "Installing libtool..."
brew install libtool
echo "Installing portaudio..."
brew install portaudio
echo
echo "Installing TSAL..."
#make and install TSAL
sudo autoreconf -vi
./configure
make
make install
cp -r include /usr/local/include/TSAL
mv /usr/include/TSAL/tsal.hpp /usr/local/include