-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #891 from BenjamenMeyer/maintenance_update-os-base…
…_macos Maintenance: Updated Supported MacOS versions
- Loading branch information
Showing
4 changed files
with
139 additions
and
37 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
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,79 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
DETECT_MAC_OS_VERSION=$(sw_vers -productVersion | cut -f 1,2 -d '.') | ||
echo "Detected Mac OS X Version: ${DETECT_MAC_OS_VERSION}" | ||
|
||
MAC_OS_NAME="UNKOWN" | ||
case "${DETECT_MAC_OS_VERSION}" in | ||
"10.13") | ||
MAC_OS_NAME="High_Sierra" | ||
echo "Unsupported Mac Version" | ||
exit 2 | ||
;; | ||
"10.14") | ||
MAC_OS_NAME="Mojave" | ||
echo "Unsupported Mac Version" | ||
exit 2 | ||
;; | ||
"10.15") | ||
MAC_OS_NAME="Catalina" | ||
echo "Unsupported Mac Version" | ||
exit 2 | ||
;; | ||
"11.*") | ||
MAC_OS_NAME="Big_Sur" | ||
echo "Unsupported Mac Version" | ||
exit 2 | ||
;; | ||
"12.*") | ||
MAC_OS_NAME="Monterey" | ||
echo "Unsupported Mac Version" | ||
exit 2 | ||
;; | ||
"13.0"|"13.1"|"13.2"|"13.3"|"13.4"|"13.5"|"13.6"|"13.7") | ||
MAC_OS_NAME="Ventura" | ||
;; | ||
"14.0"|"14.1"|"14.2"|"14.3"|"14.4"|"14.5"|"14.6"|"14.7") | ||
MAC_OS_NAME="Sonoma" | ||
;; | ||
"15.0"|"15.1"|"15.2"|"15.3"|"15.4"|"15.5"|"15.6"|"15.7") | ||
MAC_OS_NAME="Sequoia" | ||
;; | ||
*) | ||
echo "Unknown Mac Release: ${DETECT_MAC_OS_VERSION}" | ||
exit 1 | ||
;; | ||
esac | ||
|
||
echo "Detected Mac OS X ${DETECT_MAC_OS_VERSION} - ${MAC_OS_NAME}" | ||
# While we may be able to assume some other dependencies there does seem to be | ||
# some changes between versions of MacOS on which are provided by default; so | ||
# aside from the two above we should just go ahead an install everything ourselves. | ||
|
||
# Install the stuff we know needs to get installed all the time | ||
brew install \ | ||
gcc \ | ||
cmake \ | ||
python3 \ | ||
boost-python3 \ | ||
jpeg \ | ||
libpng \ | ||
gtk+3 \ | ||
gtkglext \ | ||
sdl2 | ||
|
||
# The following Apple-provided libraries are deprecated: | ||
# * OpenGL as of macOS 10.14 | ||
# * GLUT as of macOS 10.9 | ||
brew install mesa mesa-glu freeglut | ||
ln -s $(brew --prefix)/include/GL $(brew --prefix)/include/OpenGL | ||
ln -s $(brew --prefix)/include/GL $(brew --prefix)/include/GLUT | ||
# ln -s $(brew --prefix)/lib/libGL.dylib $(brew --prefix)/lib/libOpenGL.dylib | ||
# find $(brew --prefix)/lib/ -iname '*gl*.dylib' | ||
|
||
# MacOS 13+ needs Vorbis support | ||
brew install vorbis-tools | ||
|
||
# The Apple-provided OpenAL is deprecated as of macOS 10.15 | ||
brew install openal-soft freealut |
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