diff --git a/script/bootstrap-on-macOS-using-MacPorts.sh b/script/bootstrap-on-macOS-using-MacPorts.sh new file mode 100755 index 000000000..6c63bb324 --- /dev/null +++ b/script/bootstrap-on-macOS-using-MacPorts.sh @@ -0,0 +1,35 @@ +#!/usr/bin/env bash +# +# bootstrap-on-macOS-using-MacPorts.sh +# +# Run this script with root privileges. I.e.: +# +# sudo ./script/bootstrap-on-macOS-using-MacPorts.sh +# +# Copyright (C) 2024 Stephen G. Tuggy and other Vega Strike contributors +# +# This file is part of Vega Strike. +# +# Vega Strike is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Vega Strike is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Vega Strike. If not, see . + +set -e + +port install python312 boost181@1.81.0_10+cmake_scripts+no_single+no_static+python312 gtk3 gtkglext libsdl2 libGLU freeglut xorg-server openal-soft cmake expat libjpeg-turbo libpng libvorbis ninja + +export CMAKE_PREFIX_PATH="/opt/local/" + +ln -s /opt/local/include/GL /opt/local/include/OpenGL +ln -s /opt/local/include/GL /opt/local/include/GLUT + +echo "CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH"