<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;

  <!ENTITY xcb-proto-download-http "http://xcb.freedesktop.org/dist/xcb-proto-&xcb-proto-version;.tar.bz2">
  <!ENTITY xcb-proto-download-ftp  " ">
  <!ENTITY xcb-proto-md5sum        "6bf2797445dc6d43e9e4707c082eff9c">
  <!ENTITY xcb-proto-size          "136 KB">
  <!ENTITY xcb-proto-buildsize     "2.1 MB">
  <!ENTITY xcb-proto-time          "less than 0.1 SBU">
]>

<sect1 id="xcb-proto" xreflabel="xcb-proto-&xcb-proto-version;">
  <?dbhtml filename="xcb-proto.html"?>

  <sect1info>
    <othername>$LastChangedBy: bdubbs $</othername>
    <date>$Date: 2015-02-21 23:09:10 -0500 (Sat, 21 Feb 2015) $</date>
  </sect1info>

  <title>xcb-proto-&xcb-proto-version;</title>

  <indexterm zone="xcb-proto">
    <primary sortas="a-xcb-proto">xcb-proto</primary>
  </indexterm>

  <sect2 role="package">
    <title>Introduction to xcb-proto</title>

    <para>The <application>xcb-proto</application> package provides the
    XML-XCB protocol descriptions that <application>libxcb</application>
    uses to generate the majority of its code and API.</para>

    &lfs77_checked;

    <bridgehead renderas="sect3">Package Information</bridgehead>
    <itemizedlist spacing="compact">
      <listitem>
        <para>Download (HTTP): <ulink url="&xcb-proto-download-http;"/></para>
      </listitem>
      <listitem>
        <para>Download (FTP): <ulink url="&xcb-proto-download-ftp;"/></para>
      </listitem>
      <listitem>
        <para>Download MD5 sum: &xcb-proto-md5sum;</para>
      </listitem>
      <listitem>
        <para>Download size: &xcb-proto-size;</para>
      </listitem>
      <listitem>
        <para>Estimated disk space required: &xcb-proto-buildsize;</para>
      </listitem>
      <listitem>
        <para>Estimated build time: &xcb-proto-time;</para>
      </listitem>
    </itemizedlist>

    <bridgehead renderas="sect3">xcb-proto Dependencies</bridgehead>

    <bridgehead renderas="sect4">Required</bridgehead>
    <para role="required">
      <xref linkend="python2"/> or
      <xref linkend="python3"/>, and
      <xref linkend="xorg-env"/> (should be set for the following instructions
      to work)
    </para>

    <bridgehead renderas="sect4">Optional (required to run the
    tests)</bridgehead>
    <para role="optional"><xref linkend="libxml2"/></para>

    <para condition="html" role="usernotes">User Notes:
    <ulink url="&blfs-wiki;/xcb-proto"/></para>

  </sect2>

  <sect2 role="installation">
    <title>Installation of xcb-proto</title>

<!--    <para>If you are compiling against <xref linkend="python3"/>, use the
    following commands:</para>

    <screen><userinput>patch -Np1 -i ../xcb-proto-&xcb-proto-version;-py_compile_python3-1.patch &amp;&amp;
sed -i -e 's/\t/    /' xcbgen/xtypes.py</userinput></screen>
-->
    <para>Install <application>xcb-proto</application> by running the following
    commands:</para>

<screen><userinput>./configure $XORG_CONFIG</userinput></screen>

    <para>To test the results, issue: <command>make check</command>.</para>

    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>

<screen role="root"><userinput>make install</userinput></screen>

  </sect2>

  <sect2 role="content">
    <title>Contents</title>

    <segmentedlist>
      <segtitle>Installed Programs</segtitle>
      <segtitle>Installed Libraries</segtitle>
      <segtitle>Installed Directory</segtitle>

      <seglistitem>
        <seg>None</seg>
        <seg>None</seg>
        <seg><envar>$XORG_PREFIX</envar>/share/xcb and
             <envar>$XORG_PREFIX</envar>/lib/python&python2-majorver;/site-packages/xcbgen or
             <envar>$XORG_PREFIX</envar>/lib/python&python3-majorver;/site-packages/xcbgen</seg>
      </seglistitem>
    </segmentedlist>

  </sect2>

</sect1>
