Below are some informations on how to compile and run Plee the Bear

COMPILING PLEE
--------------

First of all, check that you have installed recent versions of the the
following libraries:

 - libclaw,
 - libsdl,
 - libsdl-mixer,
 - libboost-filesystem,
 - libboost-thread

and optionally:

 - wxWidgets

To compile the program, you will need CMake and a C++ compiler.

Type

  cmake .
  make

to compile the program. The game is now ready to run. You can type

  make install

as super user to install the game, but it is not an obligation.

*MacOSX note*: Before calling cmake, you should export the following
variables.
  
  # some optional flags to retain backwards compatibility
  # (build for x86-10.5 - I am on x64 10.6)
  export CMAKE_OSX_ARCHITECTURES="i386"
  export CMAKE_OSX_SYSROOT="/Developer/SDKs/MacOSX10.5.sdk"
  export CMAKE_OSX_DEPLOYMENT_TARGET="10.5"

The you can compile the game:

  cmake .. -DCMAKE_INSTALL_PREFIX=/opt/plee
  make
  sudo make install

RUNNING PLEE
------------

If you have compiled the game from source, just go to the 
'plee-the-bear/game' directory and type

  ./plee-the-bear

If you have installed Plee from a package, or with a 'make install', just type

  plee-the-bear

COMPILATION OPTIONS
-------------------

The following options can be passed to the cmake command to control how 
the compilation is done.

  -DCMAKE_INSTALL_PREFIX=/some/path
    Change the installation root path to /some/path

  -DCMAKE_BUILD_TYPE={release,debug}
    Compile with all optimizations (release) or with debugging 
    informations (debug)

  -DBEAR_NO_EDITOR=TRUE
    Tell to not compile the editors (default is to compile)

  -DBEAR_INSTALL_EXECUTABLE_DIR=some/path
    The directory where the executables of the Bear Engine will be 
    installed, relative to CMAKE_INSTALL_PREFIX (default is 'bin')

  -DBEAR_INSTALL_LIBRARY_DIR=some/path
    The directory where the libraries of the Bear Engine will be 
    installed, relative to CMAKE_INSTALL_PREFIX (default is 'lib', or 
    same as BEAR_INSTALL_EXECUTABLE_DIR under Windows)

  -DPTB_INSTALL_DATA_DIR=some/path
    The directory where the game resources will be installed, relative 
    to CMAKE_INSTALL_PREFIX (default is share/plee-the-bear)

  -DPTB_INSTALL_CUSTOM_LIBRARY_DIR=some/path
    The directory where the game libraries (the item classes) will be 
    installed, relative to CMAKE_INSTALL_PREFIX (default is 
    BEAR_INSTALL_LIBRARY_DIR/plee-the-bear)

CONTACT
-------

If you experience any problem, please contact us to plee-the-bear@gamned.org.
Do not forget to include a description of your architecture and the error
message you had.
