-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bootstrap-on-macOS-using-MacPorts.sh
- Loading branch information
1 parent
58eb91f
commit cb2e382
Showing
1 changed file
with
35 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <https://www.gnu.org/licenses/>. | ||
|
||
set -e | ||
|
||
port install python312 [email protected]_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" |