forked from indilib/indi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Use the current build target to decide which dependency script to run. - Add an OSX dependency script which installs dependencies with homebrew.
- Loading branch information
1 parent
5a84dfb
commit 3a04034
Showing
4 changed files
with
78 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
sudo apt-get -qq update | ||
sudo apt-get -q -y install libusb-1.0-0-dev libcfitsio3-dev libnova-dev | ||
sudo apt-get -q -y install libgphoto2-dev libgps-dev libjpeg-dev cdbs | ||
sudo apt-get -q -y install libopenal-dev libgsl0-dev libboost-dev | ||
sudo apt-get -q -y install libboost-regex-dev libftdi-dev dcraw fakeroot | ||
sudo apt-get -q -y install wget curl | ||
|
||
if [ ! -z $BUILD_INSTALL_GTEST ]; then | ||
/bin/bash install-gtest.sh | ||
else | ||
echo "==> BUILD_INSTALL_GTEST not specified" | ||
fi | ||
|
||
exit 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
brew update | ||
brew tap polakovic/astronomy | ||
|
||
# Not available in homebrew: | ||
# cdbs \ | ||
# boost-regex \ | ||
# libgps \ | ||
# libgsl0 \ | ||
# libopenal \ | ||
|
||
# Already installed: | ||
# boost \ | ||
|
||
|
||
brew install \ | ||
curl \ | ||
dcraw \ | ||
fakeroot \ | ||
libftdi \ | ||
libgphoto2 \ | ||
libjpeg \ | ||
libusb \ | ||
polakovic/astronomy/libcfitsio \ | ||
polakovic/astronomy/libnova \ | ||
wget | ||
|
||
if [ ! -z $BUILD_INSTALL_GTEST ]; then | ||
/bin/bash install-gtest.sh | ||
else | ||
echo "==> BUILD_INSTALL_GTEST not specified" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
mkdir -p build | ||
pushd build | ||
git clone https://github.com/google/googletest.git | ||
if [ ! -d googletest ]; then | ||
echo "Failed to get googletest.git repo" | ||
exit 1 | ||
fi | ||
pushd googletest | ||
mkdir build | ||
cd build | ||
cmake .. | ||
sudo make install | ||
popd | ||
rm -rf googletest | ||
popd |