<?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 phonon-download-http "&kde-download-http;phonon/&phonon-version;/src/phonon-&phonon-version;.tar.xz">
  <!ENTITY phonon-download-ftp  "&kde-download-ftp;phonon/&phonon-version;/src/phonon-&phonon-version;.tar.xz">
  <!ENTITY phonon-md5sum        "88bb9867261803eed61ff53a7c026338">
  <!ENTITY phonon-size          "316 KB">
  <!ENTITY phonon-buildsize     "11.7 MB">
  <!ENTITY phonon-time          "0.4 SBU">
]>

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

  <sect1info>
    <othername>$LastChangedBy: bdubbs $</othername>
    <date>$Date: 2015-02-23 00:16:54 -0500 (Mon, 23 Feb 2015) $</date>
  </sect1info>

  <title>Phonon-&phonon-version;</title>

  <indexterm zone="phonon">
    <primary sortas="a-phonon">phonon</primary>
  </indexterm>

  <sect2 role="package">
    <title>Introduction to Phonon</title>

    <para><application>Phonon</application> is the multimedia API for KDE4.
    It replaces the old <application>aRts</application>, that is no longer
    supported by KDE. Phonon needs either the GStreamer or VLC backend.</para>

    &lfs77_checked;

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

    <bridgehead renderas="sect3">Phonon Dependencies</bridgehead>

    <bridgehead renderas="sect4">Required</bridgehead>
    <para role="required">
      <!--<xref linkend="automoc4"/> and-->
      <xref linkend="cmake"/>,
      <xref linkend="glib2"/> and
      <xref linkend="qt4"/>
    </para>

    <bridgehead renderas="sect4">Optional</bridgehead>
    <para role="optional">
      <xref linkend="pulseaudio"/>,
      <xref linkend="qt5"/> and
      <ulink url="http://projects.kde.org/projects/kdesupport/libqzeitgeist/">QZeitgeist</ulink>
    </para>

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

  </sect2>

  <sect2 role="installation">
    <title>Installation of Phonon</title>

    <para>Make sure that <xref linkend="qt4"/> is compiled without the bundled
    <application>Phonon</application> library. This package provides
    a better implementation.</para>

    <note><para>If you have both Qt4 and Qt5 installed, be sure to run 
    <userinput>source setqt4</userinput> before installing Phonon.
    </para></note>
  
    <para>Install <application>Phonon</application> by running the following
    commands:</para>

<!-- CMAKE_INSTALL_LIBDIR is used so the package doesn't write over lib64 symlink on 64 bit system -->
<screen><userinput>mkdir build &amp;&amp;
cd    build &amp;&amp;

cmake -DCMAKE_INSTALL_PREFIX=&kde-dir;                         \
      -DCMAKE_BUILD_TYPE=Release                                 \
      -DCMAKE_INSTALL_LIBDIR=lib                                 \
      -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=FALSE        \
      -DDBUS_INTERFACES_INSTALL_DIR=/usr/share/dbus-1/interfaces \
      -Wno-dev .. &amp;&amp;
make</userinput></screen>

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

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

  </sect2>

  <sect2 role="commands">
    <title>Command Explanations</title>

    <para>
      <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used
      to apply higher level of the compiler optimizations.
    </para>

    <para>
      <parameter>-DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=FALSE</parameter>:
      This switch ensures that the plugins and mkspecs files get installed in
      the correct location.
    </para>

    <para>
     <parameter>-DDBUS_INTERFACES_INSTALL_DIR=/usr/share/dbus-1/interfaces</parameter>:
      This switch sets the correct installation path for the 
      <application>D-Bus</application> interfaces file.
    </para>

<!--
    <para>
      <option>-DPHONON_BUILD_PHONON4QT5=ON</option>: Use this switch if you want to
      build <application>Phonon</application> against <application>Qt5</application>.
      Note that both <application>Qt4</application> and <application>Qt5</application>
      versions can be installed at the same time without any conflicts.
    </para>
-->

  </sect2>

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

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

      <seglistitem>
        <seg>
          None
        </seg>
        <seg>
          libphonon.so and
          libphononexperimental.so
        </seg>
        <seg>
          &kde-dir;/include/KDE/Phonon,
          &kde-dir;/include/phonon,
          &kde-dir;/lib/cmake/phonon, and
          &kde-dir;/share/phonon
        </seg>
      </seglistitem>
    </segmentedlist>

  </sect2>

</sect1>
