1#!/bin/bash 2 3arch=$(arch) 4if [ $arch == "ppc" ]; then 5 echo Sorry, PowerPC \(PPC\) is not supported... 6else 7 echo Compiling 64-bit binary, please wait... 8 9 rm release/other/ft2play &> /dev/null 10 11 clang -mmacosx-version-min=10.7 -arch x86_64 -mmmx -mfpmath=sse -msse2 -I/Library/Frameworks/SDL2.framework/Headers -F/Library/Frameworks -g0 -DNDEBUG -DAUDIODRIVER_SDL ../audiodrivers/sdl/*.c ../*.c src/*.c -O3 -lm -Winit-self -Wno-deprecated -Wextra -Wunused -mno-ms-bitfields -Wno-missing-field-initializers -Wswitch-default -framework SDL2 -framework Cocoa -lm -o release/other/ft2play 12 strip release/other/ft2play 13 install_name_tool -change @rpath/SDL2.framework/Versions/A/SDL2 @executable_path/../Frameworks/SDL2.framework/Versions/A/SDL2 release/other/ft2play 14 15 rm ../*.o src/*.o &> /dev/null 16 echo Done. The executable can be found in \'release/other\' if everything went well. 17fi 18