| 1 |
#!/bin/bash |
| 2 |
set -ev |
| 3 |
|
| 4 |
date |
| 5 |
# Don't update or cleanup |
| 6 |
export HOMEBREW_NO_AUTO_UPDATE=1 |
| 7 |
export HOMEBREW_NO_INSTALL_CLEANUP=1 |
| 8 |
|
| 9 |
brew install [email protected] |
| 10 |
brew install gsl |
| 11 |
brew install libical |
| 12 |
brew upgrade libusb |
| 13 |
brew install libsamplerate |
| 14 |
rm -rf '/usr/local/include/c++' |
| 15 |
sudo chmod -R +w /usr/local |
| 16 |
|
| 17 |
# R 4.1.1 |
| 18 |
curl -L -O https://cran.r-project.org/bin/macosx/base/R-4.1.1.pkg |
| 19 |
sudo installer -pkg R-4.1.1.pkg -target / |
| 20 |
R --version |
| 21 |
|
| 22 |
# SRMIO |
| 23 |
if [ -z "$(ls -A srmio)" ]; then |
| 24 |
git clone https://github.com/rclasen/srmio.git |
| 25 |
cd srmio |
| 26 |
sh genautomake.sh |
| 27 |
./configure --disable-shared --enable-static |
| 28 |
make -j2 --silent |
| 29 |
cd .. |
| 30 |
fi |
| 31 |
cd srmio |
| 32 |
sudo make install |
| 33 |
cd .. |
| 34 |
|
| 35 |
# D2XX - refresh cache if folder is empty |
| 36 |
if [ -z "$(ls -A D2XX)" ]; then |
| 37 |
mkdir -p D2XX |
| 38 |
curl -O https://ftdichip.com/wp-content/uploads/2021/05/D2XX1.4.24.zip |
| 39 |
unzip D2XX1.4.24.zip |
| 40 |
hdiutil mount D2XX1.4.24.dmg |
| 41 |
cp /Volumes/dmg/release/build/libftd2xx.1.4.24.dylib D2XX |
| 42 |
cp /Volumes/dmg/release/build/libftd2xx.a D2XX |
| 43 |
cp /Volumes/dmg/release/*.h D2XX |
| 44 |
fi |
| 45 |
sudo cp D2XX/libftd2xx.1.4.24.dylib /usr/local/lib |
| 46 |
|
| 47 |
# Python 3.7.8 |
| 48 |
curl -O https://www.python.org/ftp/python/3.7.9/python-3.7.9-macosx10.9.pkg |
| 49 |
sudo installer -pkg python-3.7.9-macosx10.9.pkg -target / |
| 50 |
|
| 51 |
python3.7 --version |
| 52 |
python3.7-config --prefix |
| 53 |
|
| 54 |
# Python mandatory packages - refresh cache if folder is empty |
| 55 |
if [ -z "$(ls -A site-packages)" ]; then |
| 56 |
mkdir -p site-packages |
| 57 |
python3.7 -m pip install -q -r src/Python/requirements.txt -t site-packages |
| 58 |
fi |
| 59 |
|
| 60 |
# Python SIP |
| 61 |
if [ -z "$(ls -A sip-4.19.8)" ]; then |
| 62 |
curl -k -L -O https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.8/sip-4.19.8.tar.gz |
| 63 |
tar xf sip-4.19.8.tar.gz |
| 64 |
cd sip-4.19.8 |
| 65 |
python3.7 configure.py |
| 66 |
make -j2 |
| 67 |
cd .. |
| 68 |
fi |
| 69 |
cd sip-4.19.8 |
| 70 |
sudo make install |
| 71 |
cd .. |
| 72 |
|
| 73 |
exit |