16 |
16 |
17 === Necessary libraries === |
17 === Necessary libraries === |
18 |
18 |
19 Download the following libraries and place them under `/Library/Frameworks/` |
19 Download the following libraries and place them under `/Library/Frameworks/` |
20 |
20 |
21 * SDL - http://www.libsdl.org/release/SDL-1.2.14.dmg |
21 * SDL - http://www.libsdl.org/release/ |
22 * SDL_image - http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.10.dmg |
22 * SDL_image - http://www.libsdl.org/projects/SDL_image/release/ |
23 * SDL_mixer - http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.11.dmg |
23 * SDL_mixer - http://www.libsdl.org/projects/SDL_mixer/release/ |
24 * SDL_net - http://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.dmg |
24 * SDL_net - http://www.libsdl.org/projects/SDL_net/release/ |
25 * SDL_ttf - http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.10.dmg |
25 * SDL_ttf - http://www.libsdl.org/projects/SDL_ttf/release/ |
26 * Ogg sources - http://downloads.xiph.org/releases/ogg/libogg-1.2.1.tar.bz2 |
26 * Ogg sources - http://downloads.xiph.org/releases/ogg/ |
27 * Vorbis sources - http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.2.tar.bz2 |
27 * Vorbis sources - http://downloads.xiph.org/releases/vorbis/ |
28 |
28 |
29 === Optional libraries === |
29 === Optional libraries === |
30 |
30 |
31 The following libraries are optional: |
31 The following libraries are optional: |
32 * Sparkle (auto-updater) - http://sparkle.andymatuschak.org/files/Sparkle%201.5b6.zip |
32 * Sparkle (auto-updater) - https://github.com/sparkle-project/Sparkle/releases/latest |
33 |
33 |
34 ==== Compiling Ogg Vorbis ==== |
34 ==== Compiling Ogg Vorbis ==== |
35 |
35 |
36 Since there is no framework distribution for ogg vorbis libraries, we will need to compile our own. Extract the sources and open the relative .xcodeproj file. |
36 Since there is no framework distribution for ogg vorbis libraries, we will need to compile our own. Extract the sources and open the relative .xcodeproj file. |
37 |
37 |
41 |
41 |
42 ==== (Optional) Server ==== |
42 ==== (Optional) Server ==== |
43 |
43 |
44 If you want to compile server for hosting lan games, you need to download a Haskell compiler: we are going to use the Glasgow Haskell Compiler. |
44 If you want to compile server for hosting lan games, you need to download a Haskell compiler: we are going to use the Glasgow Haskell Compiler. |
45 |
45 |
46 * download the Haskell Platform and install both the GHC and Haskell Platform - http://lambda.galois.com/hp-tmp/2011.2.0.1/Haskell%20Platform%202011.2.0.1-i386.pkg |
46 * Download the Haskell Platform and install both the GHC and Haskell Platform - https://www.haskell.org/downloads#platform |
47 * run `cabal update` to get an updated list of available libraries and install the necessary dependencies with |
47 * Run `cabal update` to get an updated list of available libraries and install the necessary dependencies with |
48 {{{ |
48 {{{ |
49 sudo cabal install gameServer/hedgewars-server.cabal |
49 sudo cabal install gameServer/hedgewars-server.cabal |
50 }}} |
50 }}} |
51 * _(even more optional)_ if you feel experimental, you can also try to use the 64bit variant of Haskell, just make sure that your `~/.cabal/` directory doesn't conflict with previous installations - http://lambda.galois.com/hp-tmp/2011.2.0.1/Haskell%20Platform%202011.2.0.1-x86_64.pkg |
51 * _(even more optional)_ if you feel experimental, you can also try to use the 64bit variant of Haskell, just make sure that your `~/.cabal/` directory doesn't conflict with previous installations |
52 |
52 |
53 === Necessary tools === |
53 === Necessary tools === |
54 |
54 |
55 Download and install the following toolchains |
55 Download and install the following toolchains |
56 |
56 |
57 * Freepascal compiler - http://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/2.6.0/ |
57 * Freepascal compiler - https://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/ |
58 * CMake - http://www.cmake.org/files/v2.8/cmake-2.8.10.2-Darwin64-universal.dmg |
58 * CMake - https://cmake.org/download/ |
59 * QT - http://qt-project.org/downloads |
59 * Qt - https://www1.qt.io/download/ |
60 * note that for compiling the 64 bit version you need download the `cocoa` version of QT |
60 * Note that for compiling the 64 bit version you need download the `cocoa` version of Qt |
61 |
61 |
62 == Building process == |
62 == Building process == |
63 |
63 |
64 * download the source tarball or clone the hg repo |
64 * Download the source tarball or clone the Mercurial repo |
65 * configure the sources with the following line |
65 * Configure the sources with the following line |
66 {{{ |
66 {{{ |
67 cmake . -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake -DCMAKE_BUILD_TYPE=Release |
67 cmake . -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake -DCMAKE_BUILD_TYPE=Release |
68 }}} |
68 }}} |
69 * run `make` and `make install` |
69 * Run `make` and `make install` |
70 |
70 |
71 Enjoy! |
71 Enjoy! |