mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 06:52:14 +08:00
184 lines
5.0 KiB
XML
184 lines
5.0 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 libvorbis-download-http "https://downloads.xiph.org/releases/vorbis/libvorbis-&libvorbis-version;.tar.xz">
|
|
<!ENTITY libvorbis-download-ftp " ">
|
|
]>
|
|
|
|
<sect1 id="libvorbis" xreflabel="libvorbis-&libvorbis-version;">
|
|
<?dbhtml filename="libvorbis.html"?>
|
|
|
|
|
|
<title>libvorbis-&libvorbis-version;</title>
|
|
|
|
<indexterm zone="libvorbis">
|
|
<primary sortas="a-Libvorbis">Libvorbis</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to libvorbis</title>
|
|
|
|
<para>
|
|
The <application>libvorbis</application> package contains a general
|
|
purpose audio and music encoding format. This is useful for creating
|
|
(encoding) and playing (decoding) sound in an open (patent free)
|
|
format.
|
|
</para>
|
|
|
|
&lfs121_checked;
|
|
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download (HTTP): <ulink url="&libvorbis-download-http;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download (FTP): <ulink url="&libvorbis-download-ftp;"/>
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">libvorbis Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
<para role="required">
|
|
<xref linkend="libogg"/>
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional">
|
|
<ulink url="&blfs-svn;/general/doxygen.html">doxygen</ulink> and
|
|
<ulink url="&blfs-svn;/general/texlive.html">texlive</ulink>
|
|
(or <ulink url="&blfs-svn;/general/tl-installer.html">
|
|
install-tl-unx</ulink>) (specifically, pdflatex and htlatex) to
|
|
build the PDF documentation
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of libvorbis</title>
|
|
<!--
|
|
<para>
|
|
Optionally fix installation of the package when
|
|
<command>- -enable-docs</command> is added to the configure switches:
|
|
</para>
|
|
|
|
<screen><userinput>sed -i '/components.png \\/{n;d}' doc/Makefile.in</userinput></screen>
|
|
-->
|
|
<para>
|
|
Install <application>libvorbis</application> by running the following
|
|
commands:
|
|
</para>
|
|
|
|
<screen><userinput>./configure --prefix=/usr --disable-static &&
|
|
make</userinput></screen>
|
|
|
|
<para>
|
|
To test the results, issue: <command>make -j1 check</command>.
|
|
</para>
|
|
|
|
<para>
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>make install &&
|
|
install -v -m644 doc/Vorbis* /usr/share/doc/libvorbis-&libvorbis-version;</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>32-bit Installation of libvorbis</title>
|
|
|
|
<para>
|
|
First clean the directory:
|
|
</para>
|
|
|
|
<screen><userinput>make distclean</userinput></screen>
|
|
|
|
<para>
|
|
Install lib32-<application>libvorbis</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
|
|
|
|
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"/>
|
|
|
|
<para>
|
|
<option>--enable-docs</option>: This switch enables building the
|
|
documentation in formats other than the supplied html.
|
|
</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>
|
|
libvorbis.so, libvorbisenc.so and libvorbisfile.so
|
|
</seg>
|
|
<seg>
|
|
/usr/include/vorbis and /usr/share/doc/libvorbis-&libvorbis-version;
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="libvorbis-lib">
|
|
<term><filename class="libraryfile">libvorbis.so</filename></term>
|
|
<listitem>
|
|
<para>
|
|
provides the functions used to read and write sound files
|
|
</para>
|
|
<indexterm zone="libvorbis libvorbis-lib">
|
|
<primary sortas="c-libvorbis">libvorbis.so</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|