The following are the terminal commands that I used to get bsdgames installed on OS X Yosemite PB3. Install bsdmake
via Homebrew before proceeding.
$ git clone https://github.com/ctdk/bsdgames-osx.git
Enter the bsdgames-osx
directory.
# The prefix of /usr/local is hard-coded in a lot of places, let's use /Users/osxi/.local
# (substitute `osxi` with your user name).
$ find . -type f | xargs -n1 -I {} perl -e "s/\/usr\/local/\/Users\/osxi\/.local/g;" -pi {}
# Open `Makefile` and remove the line for ching. I don't know what that is but it didn't want to
# install so I deleted it. All that matters is `atc`, right? :D
$ vim Makefile
# Compile everything
$ CFLAGS="-std=c11" CC=clang bsdmake
# Install everything
$ bsdmake install
All you should have to do is add /Users/osxi/.local/bin
to your $PATH. You can add something like export PATH="$PATH:$HOME/.local/bin"
to your shell's RC script so it knows where to find your shiny new bsdgames executables.
The final step is to reduce your terminal emulator's font size and play atc
at work.
Thanks! The above instructions were quite helpful!
A quick note to everyone on macOS 12.4, if you are seeing issues with
bsdmake install
such asinstall: brew: Invalid argument
, you'll need to modify some parameters withinMakefile.inc
.Something like this should do the trick:
Edit: From https://github.com/ctdk/bsdgames-osx/blob/master/Homebrew/Yosemite/bsdgames-osx.rb