Difference between revisions of "Compiling with brew (OpenXcom)"

From UFOpaedia
Jump to navigation Jump to search
Line 1: Line 1:
 
Install brew
 
Install brew
 
   see http://mxcl.github.com/homebrew/
 
   see http://mxcl.github.com/homebrew/
 +
 +
Install yaml-cpp 0.3.0
 +
 +
  cd $(brew --prefix)
 +
  git checkout 6e32f8c /usr/local/Library/Formula/yaml-cpp.rb
 +
  brew install yaml-cpp
  
 
Install dependencies
 
Install dependencies
  
  brew install yaml-cpp
 
 
   brew install sdl
 
   brew install sdl
 
   brew install sdl_gfx
 
   brew install sdl_gfx
Line 10: Line 15:
 
   brew install sdl_image
 
   brew install sdl_image
  
Build OpenXCOM as in http://ufopaedia.org/index.php?title=Compiling_with_Make_(OpenXcom) e.g.
+
Clone the source
 +
  git clone https://github.com/SupSuper/OpenXcom.git
 +
 
 +
download hmaon's patch and copy to openxcom/src
 +
  http://bumba.net/~hmaon/oxc/OSX_kludge.patch
  
   make -f Makefile.simple
+
Apply patch and make
 +
  git apply OSX_kludge.patch
 +
   make -f Makefile.gcc-pch -j 4 (number of cores on your machine)

Revision as of 21:31, 19 March 2013

Install brew

 see http://mxcl.github.com/homebrew/

Install yaml-cpp 0.3.0

 cd $(brew --prefix)
 git checkout 6e32f8c /usr/local/Library/Formula/yaml-cpp.rb
 brew install yaml-cpp

Install dependencies

 brew install sdl
 brew install sdl_gfx
 brew install sdl_mixer
 brew install sdl_image

Clone the source

 git clone https://github.com/SupSuper/OpenXcom.git
 

download hmaon's patch and copy to openxcom/src

 http://bumba.net/~hmaon/oxc/OSX_kludge.patch 

Apply patch and make

 git apply OSX_kludge.patch
 make -f Makefile.gcc-pch -j 4 (number of cores on your machine)