INTRODUCTION
------------

I use this makefile set to compile plib, SimGear, FlightGear, Atlas, fgrun, TaxiDraw, fgsd, TerraGear and their dependencies, as far as they cannot be expected to be provided in your favourite distribution in an appropriately recent version or require specific patches.

Debian users, have a look at DEBIAN-REQUIREMENTS for a list of Debian packages required in sarge and etch.

Basic dependencies are GNU make, automake-1.7, autoconf2.50 and libtool 1.5 (tested with 1.5.22).

gts apparently requires glib2.0 to be installed.

To compile FlightGear, you need Glut and OpenAL in addition to this package.

TaxiDraw requires wxWindows 2.4.x. There may be additional dependencies I can't currently remember... %-)

Dependencies are automatically downloaded and extracted, except for CGAL, which needs to be manually downloaded from

    CGAL: http://www.cgal.org/

Download version 3.2 and put it as CGAL-3.2.tar.gz into the downloads directory under the root of the fgfs-builder.

The fgfs-builder also contains some patches, which are automatically applied to the packages. 

Although all of this has worked at least at some point on my own box, this is an early alpha release. There may be lots of rough ends and I'd like to hear about any problems, bugs or suggestions on <ralf.gerlich@custom-scenery.org>.

I'd love to see this extended to other platforms, but aside from Cygwin I cannot provide support for any other platform than Debian GNU/Linux currently.

COMPILING
---------
The fgfs-builder now contains a very nice dependency system.

To enable a package and its dependencies, run

   make enable-<product>

To compile and install a package and its dependencies in the installation directory, run

   make <product>

To compile all enabled packages, run

   make all

You will first be asked to provide passwords for several CVS repositories and then downloading, unpacking, patching and compiling will ensue.

You can always disable a product, running

   make disable-<product>

Remember that this will only disable the product, the dependencies will be still enabled.

To disable all enabled packages, run

   make disableall


Don't forget to download CGAL first! (You will be warned if you don't and compilation will stop)

In the standard case, your installation will be in <fgfs-builder>/install. You can change that by modifying <fgfs-builder>/Makefile (I will provide a better configuration mechanism later).


The build system provides a bash script to setup your environment variables (LD_LIBRARY_PATH, PATH). It will source, in order, every file located at <fgfs-builder>/install/etc/init/. To use it, run

   source <fgfs-builder>/install/etc/init_products.bash

or

   . <fgfs-builder>/install/etc/init_products.bash
