glfs/shareddeps/audio/libogg.xml
2024-10-22 18:20:39 -06:00

153 lines
3.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!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 libogg-download-http "https://downloads.xiph.org/releases/ogg/libogg-&libogg-version;.tar.xz">
<!ENTITY libogg-download-ftp " ">
]>
<sect1 id="libogg" xreflabel="libogg-&libogg-version;">
<?dbhtml filename="libogg.html"?>
<title>libogg-&libogg-version;</title>
<indexterm zone="libogg">
<primary sortas="a-Libogg">Libogg</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to libogg</title>
<para>
The <application>libogg</application> package contains the Ogg file
structure. This is useful for creating (encoding) or playing (decoding) a
single physical bit stream.
</para>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&libogg-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&libogg-download-ftp;"/>
</para>
</listitem>
</itemizedlist>
</sect2>
<sect2 role="installation">
<title>Installation of libogg</title>
<para>
Install <application>libogg</application> by running the following
commands:
</para>
<screen><userinput>./configure --prefix=/usr \
--disable-static \
--docdir=/usr/share/doc/libogg-&libogg-version;
make</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="installation">
<title>32-bit Installation of libogg</title>
<para>
First clean the directory:
</para>
<screen><userinput>make distclean</userinput></screen>
<para>
Install lib32-<application>libogg</application> by running the following
commands:
</para>
<screen><userinput>CC="gcc -m32" CXX="g++ -m32" \
./configure --prefix=/usr \
--libdir=/usr/lib32 \
--host=i686-pc-linux-gnu \
--disable-static &amp;&amp;
make</userinput></screen>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make DESTDIR=$PWD/DESTDIR install
cp -vr DESTDIR/usr/lib32/* /usr/lib32
rm -rf DESTDIR
ldconfig</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/static-libraries.xml"/>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Library</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>None</seg>
<seg>libogg.so</seg>
<seg>/usr/include/ogg and /usr/share/doc/libogg-&libogg-version;</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="libogg-lib">
<term><filename class="libraryfile">libogg.so</filename></term>
<listitem>
<para>
provides the functions required for programs to
read or write Ogg formatted bit streams
</para>
<indexterm zone="libogg libogg-lib">
<primary sortas="c-libogg">libogg.so</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>