README for XFree86 4.0.3 on NetBSD : 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.

8.1. Perl support

Starting with XFree86 4.0.2, perl is needed to build the fonts in XFree86. Since perl is not included with standard NetBSD installation, fonts that need perl are not built by default.

If you have installed perl (from the NetBSD packages, for instance), add the line

#define HasPerl YES
in xc/config/cf/host.def before rebuilding XFree86.

8.2. Aperture driver

To build the XFree86 server with the Aperture driver enabled, you should unpack apNetBSD.shar and install it first.

Then edit xc/config/cf/host.def and add the line

#define HasNetBSDApertureDriver    YES
to it before rebuilding XFree86.

8.3. 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 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.4. Building on other architectures

Note that the NetBSD 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 NetBSD xsrc source tree is available at: ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/xsrc/

There's an experimental patch by Tsubai Masanari to make XFree86 4.0.1 work on NetBSD/macppc at: ftp://nandra.iri.co.jp/pub/NetBSD/macppc/XFree86/README.


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