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.defbefore 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
host.defthe 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.defbefore rebuilding the server. This has not been thoroughly tested, except on the macppc.
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.