[0b67514] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[48b7295] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[e470a4c] | 6 |
|
---|
[48b7295] | 7 | <!ENTITY flac-download-http "http://prdownloads.sourceforge.net/flac/flac-&flac-version;.tar.gz">
|
---|
| 8 | <!ENTITY flac-download-ftp " ">
|
---|
[55cc98f] | 9 | <!ENTITY flac-md5sum "2bfc127cdda02834d0491ab531a20960">
|
---|
| 10 | <!ENTITY flac-size "1.5 MB">
|
---|
| 11 | <!ENTITY flac-buildsize "49 MB">
|
---|
| 12 | <!ENTITY flac-time "0.7 SBU">
|
---|
[48b7295] | 13 | ]>
|
---|
| 14 |
|
---|
[61cc896] | 15 | <sect1 id="flac" xreflabel="FLAC-&flac-version;">
|
---|
[0b67514] | 16 | <?dbhtml filename="flac.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
[a747b3c] | 21 | <keywordset>
|
---|
| 22 | <keyword role="package">flac-&flac-version;.tar</keyword>
|
---|
[f15e274] | 23 | <keyword role="ftpdir">flac</keyword>
|
---|
[a747b3c] | 24 | </keywordset>
|
---|
[0b67514] | 25 | </sect1info>
|
---|
| 26 |
|
---|
| 27 | <title>FLAC-&flac-version;</title>
|
---|
| 28 |
|
---|
| 29 | <indexterm zone="flac">
|
---|
| 30 | <primary sortas="a-FLAC">FLAC</primary>
|
---|
| 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="package">
|
---|
| 34 | <title>Introduction to FLAC</title>
|
---|
| 35 |
|
---|
[50b692d] | 36 | <para><application>FLAC</application> is an audio CODEC similar to
|
---|
[0b67514] | 37 | MP3, but lossless, meaning that audio is compressed without losing any
|
---|
| 38 | information.</para>
|
---|
| 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (HTTP): <ulink url="&flac-download-http;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (FTP): <ulink url="&flac-download-ftp;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download MD5 sum: &flac-md5sum;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download size: &flac-size;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated disk space required: &flac-buildsize;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated build time: &flac-time;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | </itemizedlist>
|
---|
| 61 |
|
---|
[464127ba] | 62 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 63 | <itemizedlist spacing="compact">
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>Required patch: <ulink
|
---|
| 66 | url="&patch-root;/flac-&flac-version;-xmms_plugin_fix-1.patch"/></para>
|
---|
| 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
[0b67514] | 70 | <bridgehead renderas="sect3">FLAC Dependencies</bridgehead>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[a747b3c] | 73 | <para role="optional"><xref linkend="libogg"/>,
|
---|
[50b692d] | 74 | <xref linkend="xmms"/>,
|
---|
| 75 | <xref linkend="NASM"/>,
|
---|
| 76 | <xref linkend="docbook-utils"/>,
|
---|
| 77 | <xref linkend="doxygen"/> and
|
---|
[0b67514] | 78 | <ulink url="http://valgrind.kde.org/">Valgrind</ulink></para>
|
---|
| 79 |
|
---|
[0e2aa08] | 80 | <para condition="html" role="usernotes">User Notes:
|
---|
| 81 | <ulink url="&blfs-wiki;/flac"/></para>
|
---|
| 82 |
|
---|
[0b67514] | 83 | </sect2>
|
---|
| 84 |
|
---|
| 85 | <sect2 role="installation">
|
---|
| 86 | <title>Installation of FLAC</title>
|
---|
| 87 |
|
---|
| 88 | <para>Install <application>FLAC</application> by running the
|
---|
| 89 | following commands:</para>
|
---|
| 90 |
|
---|
[464127ba] | 91 | <screen><userinput>patch -Np1 -i ../flac-&flac-version;-xmms_plugin_fix-1.patch &&
|
---|
| 92 | LIBS=-lm ./configure --prefix=/usr &&
|
---|
[0b67514] | 93 | make</userinput></screen>
|
---|
| 94 |
|
---|
[464127ba] | 95 | <para>If you have <application>Valgrind</application> version 3.0.0 or
|
---|
| 96 | higher installed and you plan on running the test suites after passing the
|
---|
| 97 | <option>--enable-valgrind-testing</option> parameter to
|
---|
| 98 | <command>configure</command>, you need to issue the following command to
|
---|
| 99 | change some test scripts:</para>
|
---|
| 100 |
|
---|
| 101 | <screen><userinput>sed -i -e "s/logfile-fd/log-fd/" `grep -lr logfile-fd test/*sh`</userinput></screen>
|
---|
| 102 |
|
---|
| 103 | <para>To test the results, issue: <command>make check</command>. This
|
---|
| 104 | test suite will take quite a while. Note that if you passed the
|
---|
| 105 | <option>--enable-exhaustive-tests</option> and
|
---|
| 106 | <option>--enable-valgrind-testing</option> parameters to
|
---|
| 107 | <command>configure</command> and then run the test suite, it will take a
|
---|
| 108 | <emphasis>very</emphasis> long time (up to 300 SBUs) and use about 375 MB
|
---|
| 109 | of disk space.</para>
|
---|
| 110 |
|
---|
[0b67514] | 111 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 112 |
|
---|
| 113 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 114 |
|
---|
| 115 | </sect2>
|
---|
| 116 |
|
---|
| 117 | <sect2 role="commands">
|
---|
| 118 | <title>Command Explanations</title>
|
---|
| 119 |
|
---|
[50b692d] | 120 | <para><command>LIBS=-lm ./configure --prefix=/usr</command>:
|
---|
| 121 | <filename class="libraryfile">libFLAC</filename> uses a function from the math
|
---|
| 122 | library but is not linked with <filename class="libraryfile">libm</filename>.
|
---|
| 123 | Passing the environment variable to <command>configure</command> satisfies
|
---|
[0b67514] | 124 | this dependency.</para>
|
---|
| 125 |
|
---|
| 126 | </sect2>
|
---|
| 127 |
|
---|
| 128 | <sect2 role="content">
|
---|
| 129 | <title>Contents</title>
|
---|
| 130 |
|
---|
| 131 | <segmentedlist>
|
---|
| 132 | <segtitle>Installed Programs</segtitle>
|
---|
| 133 | <segtitle>Installed Libraries</segtitle>
|
---|
| 134 | <segtitle>Installed Directories</segtitle>
|
---|
| 135 |
|
---|
| 136 | <seglistitem>
|
---|
| 137 | <seg>flac and metaflac</seg>
|
---|
[0e2aa08] | 138 | <seg>libFLAC.{so,a}, libFLAC++.{so,a}, libOggFLAC.{so,a},
|
---|
| 139 | libOggFLAC++.{so,a}, and libxmms-flac.{so,a}</seg>
|
---|
[8a8e021] | 140 | <seg>/usr/share/doc/flac-&flac-version;</seg>
|
---|
[0b67514] | 141 | </seglistitem>
|
---|
| 142 | </segmentedlist>
|
---|
| 143 |
|
---|
| 144 | <variablelist>
|
---|
| 145 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 146 | <?dbfo list-presentation="list"?>
|
---|
| 147 | <?dbhtml list-presentation="table"?>
|
---|
| 148 |
|
---|
| 149 | <varlistentry id="flac-prog">
|
---|
| 150 | <term><command>flac</command></term>
|
---|
| 151 | <listitem>
|
---|
[50b692d] | 152 | <para>is a command-line utility for encoding, decoding and
|
---|
[0b67514] | 153 | converting FLAC files.</para>
|
---|
| 154 | <indexterm zone="flac flac-prog">
|
---|
| 155 | <primary sortas="b-flac">flac</primary>
|
---|
| 156 | </indexterm>
|
---|
| 157 | </listitem>
|
---|
| 158 | </varlistentry>
|
---|
| 159 |
|
---|
| 160 | <varlistentry id="metaflac">
|
---|
| 161 | <term><command>metaflac</command></term>
|
---|
| 162 | <listitem>
|
---|
[50b692d] | 163 | <para>is a program for listing, adding, removing, or editing
|
---|
[0b67514] | 164 | metadata in one or more FLAC files.</para>
|
---|
| 165 | <indexterm zone="flac metaflac">
|
---|
| 166 | <primary sortas="b-metaflac">metaflac</primary>
|
---|
| 167 | </indexterm>
|
---|
| 168 | </listitem>
|
---|
| 169 | </varlistentry>
|
---|
| 170 |
|
---|
| 171 | <varlistentry id="libflac">
|
---|
[0e2aa08] | 172 | <term><filename class='libraryfile'>lib{,Ogg}FLAC{,++}.{so,a}</filename></term>
|
---|
[0b67514] | 173 | <listitem>
|
---|
[50b692d] | 174 | <para>these libraries provide native FLAC and Ogg FLAC C/C++ APIs
|
---|
[0b67514] | 175 | for programs utilizing FLAC.</para>
|
---|
| 176 | <indexterm zone="flac libflac">
|
---|
[0e2aa08] | 177 | <primary sortas="c-libFLAC">lib{,Ogg}FLAC{,++}.{so,a}</primary>
|
---|
[0b67514] | 178 | </indexterm>
|
---|
| 179 | </listitem>
|
---|
| 180 | </varlistentry>
|
---|
| 181 |
|
---|
| 182 | <varlistentry id="libxmms-flac">
|
---|
[0e2aa08] | 183 | <term><filename class='libraryfile'>libxmms-flac.{so,a}</filename></term>
|
---|
[0b67514] | 184 | <listitem>
|
---|
| 185 | <para>is a plugin for <application>XMMS</application>.</para>
|
---|
| 186 | <indexterm zone="flac libxmms-flac">
|
---|
[0e2aa08] | 187 | <primary sortas="c-libxmms-flac">libxmms-flac.{so,a}</primary>
|
---|
[0b67514] | 188 | </indexterm>
|
---|
| 189 | </listitem>
|
---|
| 190 | </varlistentry>
|
---|
| 191 |
|
---|
| 192 | </variablelist>
|
---|
| 193 |
|
---|
| 194 | </sect2>
|
---|
[61cc896] | 195 |
|
---|
| 196 | </sect1>
|
---|