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

8. Rebuilding the XFree86 DistributionYou 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.

Native support for the wscons console driver found on OpenBSD/macppc and on OpenBSD/i386 2.9 and later is built by adding:

 #define XFree86ConsoleDefines -DWSCONS_SUPPORT
to xc/config/host.def before rebuilding the server.

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 also compiles on other OpenBSD architectures.

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.

8.2.1. 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.

Tou configure the keyboard, the protocol should be specified as wskbd and the device as /dev/wskbd0. Using a wsmux device as the keyboard device doesn't work (yet). Use macintosh as XkbModel.

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

Modeline "1152x768" 78.741 1152 1173 1269 1440  768 769 772 800 +HSync +VSync

You need to set securelevel to -1 in the /etc/rc.securelevel configuration file to run XFree86 on OpenBSD/macppc.


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