Created
March 15, 2026 18:47
-
-
Save gottaeat/a493d10df5817670bc2e8a835629753d to your computer and use it in GitHub Desktop.
build ioquake3 on macos 26, arm64 only, no app
This file contains hidden or 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
| brew install pkgconf jpeg-turbo libogg libvorbis opus opusfile sdl2 | |
| git clone --depth=1 https://github.com/ioquake/ioq3 | |
| cd ioq3/ | |
| sed -i \ | |
| -e 's/arm64;x86_64/arm64/g' \ | |
| -e 's/CMAKE_OSX_DEPLOYMENT_TARGET 11.0/CMAKE_OSX_DEPLOYMENT_TARGET 26.0/g' \ | |
| ./cmake/platforms/macos.cmake | |
| mkdir build | |
| cd build | |
| export CFLAGS="$(echo $CFLAGS | sed 's| -w| |g')" | |
| export CFLAGS="${CFLAGS} -I/opt/homebrew/include -L/opt/homebrew/lib" | |
| export CXXFLAGS="${CFLAGS}" | |
| cmake -Wno-dev -GNinja \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DCMAKE_INSTALL_PREFIX=/opt/ioquake3 \ | |
| -DCMAKE_C_FLAGS="$CFLAGS" \ | |
| -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ | |
| -DCMAKE_OSX_ARCHITECTURES=arm64 \ | |
| -DCMAKE_OSX_DEPLOYMENT_TARGET=26.0 \ | |
| \ | |
| -DBUILD_CLIENT=ON \ | |
| -DBUILD_GAME_LIBRARIES=OFF \ | |
| -DBUILD_GAME_QVMS=OFF \ | |
| -DBUILD_MACOS_APP=OFF \ | |
| -DBUILD_RENDERER_GL1=ON \ | |
| -DBUILD_RENDERER_GL2=OFF \ | |
| -DBUILD_SERVER=ON \ | |
| -DBUILD_STANDALONE=OFF \ | |
| -DUSE_CODEC_OPUS=ON \ | |
| -DUSE_CODEC_VORBIS=ON \ | |
| -DUSE_FREETYPE=OFF \ | |
| -DUSE_HTTP=ON \ | |
| -DUSE_INTERNAL_JPEG=OFF \ | |
| -DUSE_INTERNAL_LIBS=OFF \ | |
| -DUSE_INTERNAL_OGG=OFF \ | |
| -DUSE_INTERNAL_OPUS=OFF \ | |
| -DUSE_INTERNAL_SDL=OFF \ | |
| -DUSE_INTERNAL_VORBIS=OFF \ | |
| -DUSE_INTERNAL_ZLIB=OFF \ | |
| -DUSE_MUMBLE=OFF \ | |
| -DUSE_OPENAL=ON \ | |
| -DUSE_OPENAL_DLOPEN=OFF \ | |
| -DUSE_RENDERER_DLOPEN=OFF \ | |
| -DUSE_VOIP=OFF \ | |
| .. | |
| samu | |
| DESTDIR=$PWD/KEK samu install | |
| cd KEK/opt/ioquake3/ | |
| strip -u -r ioq3ded | |
| strip -u -r ioquake3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment