forked from enigma-dev/enigma-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
/
STIGMA-MacOSX-Install.sh
executable file
·27 lines (27 loc) · 1.7 KB
/
STIGMA-MacOSX-Install.sh
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
#!/bin/sh
sudo xcode-select --install
if [ -f "/usr/bin/java" ]; then
if [ -f "/opt/local/bin/port" ]; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
env PATH=$PATH:/opt/homebrew/bin brew install curl wget cmake pkg-config pugixml wavpack flac opusfile mpg123 libmodplug libsndfile libogg libsndfile libvorbis vorbis-tools sdl2 openal-soft alure fluid-synth libxmp dumb boost
sudo port -N install gcc12 gmake protobuf-c glfw glm libpng libvpx box2D freetype libffi rapidjson libyaml pugixml yaml-cpp grpc glew +x11 libGLU xorg-libX11 xorg-libXrandr xorg-libXinerama
sudo port -N deactivate glew +x11
sudo port -N install glew
sudo port -N reclaim
sudo git clone --recurse-submodules -j8 https://github.com/time-killer-games/stigma-dev /Applications/stigma-dev
cd /Applications/stigma-dev
sudo env PATH=$PATH:/opt/homebrew/bin CC=clang CXX=clang++ gmake && sudo env PATH=$PATH:/opt/homebrew/bin CC=clang CXX=clang++ gmake emake
sudo chmod +x ./install.sh
sudo ./install.sh
sudo chmod +x ./start.sh
echo "Installation Complete! You may now run the \"/Applications/stigma-dev/start.sh\" script from the terminal app!"
else
echo "Macports installation not found! Please download and install Macports first from www.macports.org"
fi
else
if [ `uname -m` = "arm64" ]; then
echo "OpenJDK installation not found! Please download and install OpenJDK first from https://adoptium.net/temurin/releases/?version=17&os=mac&arch=aarch64&package=jdk"
else
echo "OpenJDK installation not found! Please download and install OpenJDK first from https://adoptium.net/temurin/releases/?version=17&os=mac&arch=x64&package=jdk"
fi
fi