Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Install xcode
- 2. Install homebrew: http://mxcl.github.io/homebrew/
- 3. Install dependencies with homebrew: brew install swig sdl sdl_image sdl_mixer sdl_ttf scons boost boost-jam wget libvorbis libogg gettext libpng intltool cmake
- 4. Correct boost liberary names
- cd /usr/local/lib
- ln -s libboost_filesystem-mt.a libboost_filesystem.a
- ln -s libboost_filesystem-mt.dylib libboost_filesystem.dylib
- ln -s libboost_system-mt.a libboost_system.a
- ln -s libboost_system-mt.dylib libboost_system.dylib
- ln -s libboost_regex-mt.a libboost_regex.a
- ln -s libboost_regex-mt.dylib libboost_regex.dylib
- 5. Add gettext to path. Insert the following line into /Users/USERNAME/.bash_profile:
- export PATH="/usr/local/Cellar/gettext/0.18.2/bin/:$PATH"
- 6. Install python dependencies with easy_install pil pyyaml pyrex cython
- 7. Download sld: http://www.libsdl.org/ and move SDL.Framework to /Library/Frameworks/
- 8. Download, build and Install fifechan:
- git clone git://github.com/fifengine/fifechan.git
- cd fifechan
- cmake
- sudo make install
- sudo cp -R include/fifechan/sdl /usr/local/include/fifechan/
- 9. Download, build and Install fifengine:
- cd ...
- git clone git://github.com/fifengine/fifengine.git
- scons -c
- scons
- 9. Download an run unknown-horizons
- cd ..
- git clone git://github.com/unknown-horizons/unknown-horizons.git
- cd unknown-horizons
- python setup.py build_i18n
- Now it should run: python run_uh.py --fife-path=../fifengine/
- 10. Create app
- sudo easy_install -U py2app
- cp -r ../fifengine/engine/python/fife .
- mkdir src/Contents/
- mkdir src/Contents/Resources/
- cp -r content src/Contents/Resources/
- python setup_mac.py py2app
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement