<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Rebuilding the XFree86 Distribution</TITLE>
</HEAD>
<BODY BGCOLOR="#efefef" TEXT="black" LINK="blue" VLINK="#551A8B" ALINK="red">

<A HREF="OpenBSD.html"><EM>README for XFree86 on OpenBSD</EM></A>
 <b>:</b> <EM>Rebuilding the XFree86 Distribution</EM><BR>
<b>Previous:</b> <A HREF="OpenBSD8.html"><EM>Kernel Support for X</EM></A><BR>
<b>Next:</b> <A HREF="OpenBSD10.html"><EM>Building New X Clients</EM></A>


<HR NOSHADE>
  <H2><A NAME="17"></A>9. Rebuilding the XFree86 Distribution</H2>
<p>The server link kit allow you to rebuild just the X server with a
minimum amount of disk space.  Just unpack it, make the appropriate
changes to the <code>xf86site.def</code>, type ``<code>./mkmf</code>'' and
``<code>make</code>'' to link the server.  See <code>/usr/X11R6/lib/Server/README</code>
for more info.</p>
<p>See <A href="INSTALL.html">INSTALL</A> for instructions on
unbundling and building the source distribution.</p>
<p>You should configure the distribution by editing
<code>xc/config/cf/host.def</code>  before compiling.  To compile the
sources, invoke ``<code>make World</code>'' in the xc directory.</p>

<H3><A NAME="18"></A>9.1. Console drivers<A NAME="console-drivers"></A></H3>
<p>XFree86 has a configuration option to select the console
drivers to use in <code>xf86site.def</code>:
<ul>
<li> if you're using pccons only put:
<blockquote><code>
<pre>
 #define XFree86ConsoleDefines -DPCCONS_SUPPORT
</pre>
</code></blockquote>
</li>
<li>if you're using pcvt only put:
<blockquote><code>
<pre>
 #define XFree86ConsoleDefines -DPCVT_SUPPORT
</pre>
</code></blockquote>
</li>
</ul>

If you don't define <b>XFree86ConsoleDefines</b> in <code>xf86site.def</code> the
pccons and pcvt drivers will be supported.</p>



<H3><A NAME="19"></A>9.2. Building on other architectures<A NAME="otherarch"></A></H3>
<p>XFree86 also compiles on other OpenBSD architectures. </p>
<p>The XFree86 servers can also been built on OpenBSD/mips. The S3 server
has been tested on an Acer Mips system with a S3/928 board. Contact
Per Fogelstrom (pefo@OpenBSD.org) for details.</p>
<p>The Xsun server patches from Dennis Ferguson and Matthew Green for
NetBSD have been integrated in
<code>xc/programs/Xserver/hw/sun</code>. The Xsun server can be built on
the sparc and the sun3.</p>
<p>The client side of XFree86 also builds on the alpha, pmax, amiga,
mac68k and mvme68k architectures.</p>
<p>Problems with this port should be reported directly to the OpenBSD 
mailing lists rather than to the xfree86 mailing list. </p>

<p> 
Note that OpenBSD 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 OpenBSD X11
source tree is available by anoncvs from all OpenBSD anoncvs
servers. See <A href="http://www.openbsd.org/anoncvs.html">http://www.openbsd.org/anoncvs.html</A> for details on anoncvs.</p>


 <HR NOSHADE>
<A HREF="OpenBSD.html"><EM>README for XFree86 on OpenBSD</EM></A>
 <b>:</b> <EM>Rebuilding the XFree86 Distribution</EM><BR>
<b>Previous:</b> <A HREF="OpenBSD8.html"><EM>Kernel Support for X</EM></A><BR>
<b>Next:</b> <A HREF="OpenBSD10.html"><EM>Building New X Clients</EM></A>



</BODY>
</HTML>
