Blame docs/usermanual-install-harfbuzz.xml

Packit 874993
<chapter id="install-harfbuzz">
Packit 874993
  <title>Install Harfbuzz</title>
Packit 874993
  <section id="download">
Packit 874993
    <title id="download.title">Download</title>
Packit 874993
    <para>
Packit 874993
      For tarball releases of HarfBuzz, look
Packit 874993
      <ulink url="http://www.freedesktop.org/software/harfbuzz/release/">here</ulink>.
Packit 874993
      At the same place you will
Packit 874993
      also find Win32 binary bundles that include libharfbuzz DLL, hb-view.exe,
Packit 874993
      hb-shape.exe, and all dependencies.
Packit 874993
    </para>
Packit 874993
    <para>
Packit 874993
      The canonical source tree is available
Packit 874993
      <ulink url="http://cgit.freedesktop.org/harfbuzz/">here</ulink>.
Packit 874993
      Also available on <ulink url="https://github.com/behdad/harfbuzz">github</ulink>.
Packit 874993
    </para>
Packit 874993
    <para>
Packit 874993
      The API that comes with <filename class='headerfile'>hb.h</filename> will
Packit 874993
      not change incompatibly. Other, peripheral, headers are more likely to go
Packit 874993
      through minor modifications, but again, will do our best to never change
Packit 874993
      API in an incompatible way. We will never break the ABI.
Packit 874993
    </para>
Packit 874993
    <para>
Packit 874993
      If you are not sure whether Pango or HarfBuzz is right for you, read
Packit 874993
      <ulink url="http://mces.blogspot.in/2009/11/pango-vs-harfbuzz.html">this</ulink>.
Packit 874993
    </para>
Packit 874993
  </section>
Packit 874993
  <section id="building">
Packit 874993
    <title>Building</title>
Packit 874993
    <para>
Packit 874993
      On Linux, install the development packages for FreeType, Cairo, and GLib.
Packit 874993
      For example, on Ubuntu / Debian, you would do:
Packit 874993
      <programlisting>
Packit 874993
<command>sudo apt-get install</command> <package>gcc g++ libfreetype6-dev libglib2.0-dev libcairo2-dev</package>
Packit 874993
      </programlisting>
Packit 874993
      whereas on Fedora, RHEL, CentOS, and other Red Hat based systems you would do:
Packit 874993
      <programlisting>
Packit 874993
<command>sudo yum install</command> <package>gcc gcc-c++ freetype-devel glib2-devel cairo-devel</package>
Packit 874993
      </programlisting>
Packit 874993
      or using MacPorts:
Packit 874993
      <programlisting>
Packit 874993
<command>sudo port install</command> <package>freetype glib2 cairo</package>
Packit 874993
      </programlisting>
Packit 874993
    </para>
Packit 874993
    <para>
Packit 874993
      If you are using a tarball, you can now proceed to running
Packit 874993
      <command>configure</command> and <command>make</command> as with any
Packit 874993
      other standard package. That should leave you with a shared library in
Packit 874993
      <filename>src/</filename>, and a few utility programs including hb-view
Packit 874993
      and hb-shape under <filename>util/</filename>.
Packit 874993
    </para>
Packit 874993
    <para>
Packit 874993
      If you are bootstraping from git, you need a few more tools before you
Packit 874993
      can run <filename>autogen.sh</filename> for the first time. Namely,
Packit 874993
      pkg-config and <ulink url="http://www.complang.org/ragel/">ragel</ulink>.
Packit 874993
      Again, on Ubuntu / Debian:
Packit 874993
      <programlisting>
Packit 874993
<command>sudo apt-get install</command> <package>autoconf automake libtool pkg-config ragel gtk-doc-tools</package>
Packit 874993
      </programlisting>
Packit 874993
      and on Fedora, RHEL, CentOS:
Packit 874993
      <programlisting>
Packit 874993
<command>sudo yum install</command> <package>autoconf automake libtool pkgconfig ragel gtk-doc</package>
Packit 874993
      </programlisting>
Packit 874993
      or using MacPorts:
Packit 874993
      <programlisting>
Packit 874993
<command>sudo port install</command> <package>autoconf automake libtool pkgconfig ragel gtk-doc</package>
Packit 874993
      </programlisting>
Packit 874993
    </para>
Packit 874993
  </section>
Packit 874993
</chapter>