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.
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
xc/config/cf/host.def before rebuilding XFree86.
To build the XFree86 server with the Aperture driver enabled, you
apNetBSD.shar and install it first.
xc/config/cf/host.def and add the line
to it before rebuilding XFree86.
#define HasNetBSDApertureDriver YES
XFree86 has a configuration option to select the console
drivers to use in
#define XFree86ConsoleDefines -DPCCONS_SUPPORT
#define XFree86ConsoleDefines -DPCVT_SUPPORT
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
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
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/