forked from Green-Sky/tomato
Squashed 'external/toxcore/c-toxcore/' content from commit 67badf69
git-subtree-dir: external/toxcore/c-toxcore git-subtree-split: 67badf69416a74e74f6d7eb51dd96f37282b8455
This commit is contained in:
38
other/osx_build_script_toxcore.sh
Normal file
38
other/osx_build_script_toxcore.sh
Normal file
@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env bash
|
||||
# written by Lubo Diakov
|
||||
# hard coded toxcore directory, replace with other path or variable as needed
|
||||
cd ~/Downloads/toxcore
|
||||
echo "Now working in:"`pwd`
|
||||
|
||||
# must have working git binary, and have done git clone at least once before
|
||||
git pull
|
||||
echo "If git pull responds: Already up-to-date. you can cancel the build"
|
||||
echo "by typing anything except y or Y below"
|
||||
read -p "Continue with build? (enter y to continue): " Last_Chance
|
||||
|
||||
# blah blah
|
||||
if [[ $Last_Chance = [Yy] ]]; then echo "Continuing!";
|
||||
else echo "Aborted!"; exit
|
||||
fi
|
||||
sleep 3
|
||||
|
||||
# if libsodium is built with macports, link it from /opt/local/ to /usr/local
|
||||
if [ ! -L "/usr/local/lib/libsodium.dylib" ]; then
|
||||
# Control will enter here if $DIRECTORY doesn't exist.
|
||||
ln -s /opt/local/lib/libsodium.dylib /usr/local/lib/libsodium.dylib
|
||||
fi
|
||||
echo "The symlink /usr/local/lib/libsodium.dylib exists."
|
||||
sleep 3
|
||||
|
||||
# replace ppc, i386 as needed.
|
||||
./configure CC="gcc -arch ppc -arch i386" CXX="g++ -arch ppc -arch i386" CPP="gcc -E" CXXCPP="g++ -E"
|
||||
|
||||
# get rid of prior builds, start clean
|
||||
make clean
|
||||
make
|
||||
echo ""
|
||||
echo "Sudo is required for make install only, all other steps run without it."
|
||||
echo "Please type your sudo password below for make install:"
|
||||
sudo make install
|
||||
|
||||
exit
|
Reference in New Issue
Block a user