README for XFree86 4.1.0 on OpenBSD : Rebuilding the XFree86 Distribution
Previous: Kernel Support for X
Next: Building New X Clients

8. Rebuilding the XFree86 Distribution

The server developer's kit allow you to rebuild just the X server with a minimum amount of disk space. Just unpack it, make the appropriate changes to the xf86site.def, type ``./mkmf'' and ``make'' to link the server. See /usr/X11R6/lib/Server/README for more info.

You should configure the distribution by editing xc/config/cf/host.def before compiling. To compile the sources, invoke ``make World'' in the xc directory.

8.1. Console drivers

XFree86 has a configuration option to select the console drivers to use in host.def:

If you don't define XFree86ConsoleDefines in host.def the pccons and pcvt drivers will be supported by default.

Experimental native support for the wscons console driver found on OpenBSD/powerpc and on OpenBSD/i386 -current can be built by adding:

 #define XFree86ConsoleDefines -DWSCONS_SUPPORT
to xc/config/host.def before rebuilding the server. This has not been thoroughly tested, except on the macppc.

For the i386, you should include both pcvt and wscons support in order to use the pcvt compatibility mode of wscons:

 #define XFree86ConsoleDefines -DPCVT_SUPPORT -DWSCONS_SUPPORT

8.2. Building on other architectures

XFree86 should also compiles on other OpenBSD architectures. However, please note that 3.9.x snapshots have only been tested on the i386 for now.

Note that OpenBSD project has now its own source tree, based on the XFree86 source tree, with some local modifications. You may want to start with this tree to rebuild from sources. The OpenBSD X11 source tree is available by anoncvs from all OpenBSD anoncvs servers. See http://www.openbsd.org/anoncvs.html for details on anoncvs.


README for XFree86 4.1.0 on OpenBSD : Rebuilding the XFree86 Distribution
Previous: Kernel Support for X
Next: Building New X Clients