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

## 8. Rebuilding the XFree86 Distribution

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.

Note that OpenBSD project now has 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 XF4 source tree is available by anoncvs from all OpenBSD anoncvs servers. See http://www.openbsd.org/anoncvs.html for details on anoncvs.

XFree86 also compiles on other OpenBSD architectures.

### 8.1. XFree86 on OpenBSD/alpha

The XFree86 server is known to work on some VGA cards in alpha machines that support BWX I/O, with OpenBSD 3.2 and higher.

The following cards have been successfully tested for now:

- 3DLabs Permedia 2 (8, 15, 16 and 24 bits depth)
- ATI Rage Pro (works with 'Option "NoAccel"')
- Cirrus Logic CL5430 (works with 'Option "NoAccel"')
- Cirrus Logic GD5446 (8, 16 and 24 bits depth)
- Matrox MGA 2064 (8, 16 and 24 bits depth)

Note that this version of XFree86 doesn't work on TGA cards. The version shipped with OpenBSD 3.1 and higher includes an OS-specific driver wsfb that is used to support TGA cards.

### 8.2. XFree86 on OpenBSD/macppc

The XFree86 server is currently known to work on the G4 Macs and new iBooks with ATI Rage 128 cards running OpenBSD 3.0 or later. Other machines are more or less untested. Earlier OpenBSD versions lack some kernel support for it.

Use xf86config to build a /etc/X11/XF86Config file before starting the server for the first time.

For the Titanium Powerbook G4, you can try the following mode line in `/etc/X11/XF86Config` to match the flat panel resolution:

> `

>     Modeline "1152x768" 64.995 1152 1213 1349 1472  768 771 777 806 -HSync -VSync

> `

### 8.3. XFree86 on OpenBSD/sparc

OpenBSD 3.2 on sparc switched to the wscons device driver and now uses the OS specific wsfb driver in the XFree86 server. This driver is not included in XFree86 4.3. Please use the version shipped with OpenBSD instead.

### 8.4. XFree86 on OpenBSD/sparc64

This version of XFree68 only has support for X clients on OpenBSD/sparc64. Note that the version shipped with OpenBSD also has support for the X server on both SBus and PCI based machines.

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