15 | | Homebrew, a package management tool for Mac, is far superior to it's predecessors (like MacPorts and FinkCommander). |
16 | | |
17 | | It's lightweight, and very fast, and the preferred package management tool. If you use MacPorts or FinkCommander, you're on your own, since the content below will focus on using Homebrew to compile the game. |
| 13 | Homebrew, a package management tool for Mac, is far superior to it's predecessors (like MacPorts and FinkCommander). It's lightweight, and very fast, and the preferred package management tool. If you use MacPorts or FinkCommander, you're on your own, since the content below will focus on using Homebrew to compile the game. |
25 | | Coming soon |
| 21 | Run the following in a console to install the dependencies needed for 0 A.D. Installing all dependencies takes anywhere between '''40 minutes up to as much as 2 hours''', during which time, the computer is pretty slow, so be patient with it. Best to do it when you won't be using the computer while it's installing. |
| 22 | |
| 23 | {{{ |
| 24 | brew install subversion boost libxml2 cmake enet sdl libogg libvorbis nasm devil curl |
| 25 | brew link libxml2 |
| 26 | brew link curl |
| 27 | }}} |
| 28 | |
| 29 | == Step 4: Obtaining the 0 A.D. source == |
| 30 | |
| 31 | If you want to grab the release files, you can do that. But in this guide, we'll compile SVN, which has the newest features. |
| 32 | |
| 33 | '''COMING SOON''' |
| 34 | |
| 35 | == Step 5: Preparing 0 A.D. to compile == |
| 36 | |
| 37 | Atlas, the unit, building, and map editor used by 0 A.D. isn't compatible with Mac, so there is a special step required to get the game to compile. |
| 38 | |
| 39 | Open up build/workspaces/update_workspaces.sh in a text editor and remove the text "--atlas" from the last line. Remove only that text (not the whole line or anything else on that line). |
| 40 | |
| 41 | == Step 6: Compiling 0 A.D. == |
| 42 | |
| 43 | Finally, to compile, run the following commands in a console (adjust the path on the first line to go to the actual directory source root): |
| 44 | |
| 45 | {{{ |
| 46 | cd /path/to/source |
| 47 | cd build/workspaces |
| 48 | ./update-workspaces.sh |
| 49 | cd gcc |
| 50 | make CONFIG=Release |
| 51 | }}} |
| 52 | |
| 53 | == Step 7: Running 0 A.D. == |
| 54 | |
| 55 | To run the game, run the following commands in a console: |
| 56 | |
| 57 | {{{ |
| 58 | cd /path/to/source |
| 59 | cd binaries/system |
| 60 | ./pyrogenesis |
| 61 | }}} |