[0b67514] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[48b7295] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[e470a4c] | 6 |
|
---|
[fce275e] | 7 | <!ENTITY flac-download-http "&sourceforge-repo;/flac/flac-&flac-version;.tar.gz">
|
---|
[48b7295] | 8 | <!ENTITY flac-download-ftp " ">
|
---|
[996f4f23] | 9 | <!ENTITY flac-md5sum "153c8b15a54da428d1f0fadc756c22c7">
|
---|
| 10 | <!ENTITY flac-size "1.9 MB">
|
---|
| 11 | <!ENTITY flac-buildsize "205 MB (includes running the test suite)">
|
---|
| 12 | <!ENTITY flac-time "0.6 SBU (additional 8 SBU to run the test suite)">
|
---|
[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>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>FLAC-&flac-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="flac">
|
---|
| 26 | <primary sortas="a-FLAC">FLAC</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to FLAC</title>
|
---|
| 31 |
|
---|
[50b692d] | 32 | <para><application>FLAC</application> is an audio CODEC similar to
|
---|
[0b67514] | 33 | MP3, but lossless, meaning that audio is compressed without losing any
|
---|
| 34 | information.</para>
|
---|
| 35 |
|
---|
[1c65bfd] | 36 | &lfs65_checked; <!-- compiled with NASM 2.07 -->
|
---|
| 37 |
|
---|
[0b67514] | 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&flac-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&flac-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &flac-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &flac-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &flac-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &flac-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
[072e488] | 60 | <!-- <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[77a5859] | 61 | <itemizedlist spacing="compact">
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>Required patch: <ulink
|
---|
| 64 | url="&patch-root;/flac-&flac-version;-gcc43-1.patch"/></para>
|
---|
| 65 | </listitem>
|
---|
[072e488] | 66 | </itemizedlist> -->
|
---|
[77a5859] | 67 |
|
---|
[0b67514] | 68 | <bridgehead renderas="sect3">FLAC Dependencies</bridgehead>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[a747b3c] | 71 | <para role="optional"><xref linkend="libogg"/>,
|
---|
[50b692d] | 72 | <xref linkend="xmms"/>,
|
---|
| 73 | <xref linkend="NASM"/>,
|
---|
| 74 | <xref linkend="docbook-utils"/>,
|
---|
| 75 | <xref linkend="doxygen"/> and
|
---|
[1c65bfd] | 76 | <ulink url="http://valgrind.org/">Valgrind</ulink></para>
|
---|
[0b67514] | 77 |
|
---|
[0e2aa08] | 78 | <para condition="html" role="usernotes">User Notes:
|
---|
| 79 | <ulink url="&blfs-wiki;/flac"/></para>
|
---|
| 80 |
|
---|
[0b67514] | 81 | </sect2>
|
---|
| 82 |
|
---|
| 83 | <sect2 role="installation">
|
---|
| 84 | <title>Installation of FLAC</title>
|
---|
| 85 |
|
---|
| 86 | <para>Install <application>FLAC</application> by running the
|
---|
| 87 | following commands:</para>
|
---|
| 88 |
|
---|
[072e488] | 89 | <screen><userinput>sed -i 's/#include <stdio.h>/&\n#include <string.h>/' \
|
---|
| 90 | examples/cpp/encode/file/main.cpp &&
|
---|
[77a5859] | 91 | ./configure --prefix=/usr --disable-thorough-tests &&
|
---|
[0b67514] | 92 | make</userinput></screen>
|
---|
| 93 |
|
---|
[086d326] | 94 | <para>To test the results, issue: <command>make check</command>. Note that
|
---|
| 95 | if you passed the <option>--enable-exhaustive-tests</option> and
|
---|
[464127ba] | 96 | <option>--enable-valgrind-testing</option> parameters to
|
---|
| 97 | <command>configure</command> and then run the test suite, it will take a
|
---|
| 98 | <emphasis>very</emphasis> long time (up to 300 SBUs) and use about 375 MB
|
---|
| 99 | of disk space.</para>
|
---|
| 100 |
|
---|
[0b67514] | 101 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 102 |
|
---|
| 103 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 104 |
|
---|
| 105 | </sect2>
|
---|
| 106 |
|
---|
| 107 | <sect2 role="commands">
|
---|
| 108 | <title>Command Explanations</title>
|
---|
| 109 |
|
---|
[086d326] | 110 | <para><parameter>--disable-thorough-tests</parameter>: This parameter is
|
---|
| 111 | used so that the test suite will complete in a reasonable amount of time.
|
---|
| 112 | Remove it if you desire more extensive tests.</para>
|
---|
[0b67514] | 113 |
|
---|
[92dec691] | 114 | <para><option>--enable-sse</option>: This option is off by default and
|
---|
| 115 | should be set on if your machine has SSE capability. One way to find out if
|
---|
| 116 | you have SSE is to issue <command>cat /proc/cpuinfo</command> and see if
|
---|
| 117 | <computeroutput>sse</computeroutput> is listed in the flags.</para>
|
---|
| 118 |
|
---|
[77a5859] | 119 | <para><option>--disable-static</option>: This switch prevents the
|
---|
| 120 | static libraries from being built.</para>
|
---|
| 121 |
|
---|
[0b67514] | 122 | </sect2>
|
---|
| 123 |
|
---|
| 124 | <sect2 role="content">
|
---|
| 125 | <title>Contents</title>
|
---|
| 126 |
|
---|
| 127 | <segmentedlist>
|
---|
| 128 | <segtitle>Installed Programs</segtitle>
|
---|
| 129 | <segtitle>Installed Libraries</segtitle>
|
---|
| 130 | <segtitle>Installed Directories</segtitle>
|
---|
| 131 |
|
---|
| 132 | <seglistitem>
|
---|
| 133 | <seg>flac and metaflac</seg>
|
---|
[086d326] | 134 | <seg>libFLAC.{so,a}, libFLAC++.{so,a} and libxmms-flac.{so,a}</seg>
|
---|
| 135 | <seg>/usr/include/FLAC, /usr/include/FLAC++ and
|
---|
| 136 | /usr/share/doc/flac-&flac-version;</seg>
|
---|
[0b67514] | 137 | </seglistitem>
|
---|
| 138 | </segmentedlist>
|
---|
| 139 |
|
---|
| 140 | <variablelist>
|
---|
| 141 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 142 | <?dbfo list-presentation="list"?>
|
---|
| 143 | <?dbhtml list-presentation="table"?>
|
---|
| 144 |
|
---|
| 145 | <varlistentry id="flac-prog">
|
---|
| 146 | <term><command>flac</command></term>
|
---|
| 147 | <listitem>
|
---|
[50b692d] | 148 | <para>is a command-line utility for encoding, decoding and
|
---|
[0b67514] | 149 | converting FLAC files.</para>
|
---|
| 150 | <indexterm zone="flac flac-prog">
|
---|
| 151 | <primary sortas="b-flac">flac</primary>
|
---|
| 152 | </indexterm>
|
---|
| 153 | </listitem>
|
---|
| 154 | </varlistentry>
|
---|
| 155 |
|
---|
| 156 | <varlistentry id="metaflac">
|
---|
| 157 | <term><command>metaflac</command></term>
|
---|
| 158 | <listitem>
|
---|
[50b692d] | 159 | <para>is a program for listing, adding, removing, or editing
|
---|
[0b67514] | 160 | metadata in one or more FLAC files.</para>
|
---|
| 161 | <indexterm zone="flac metaflac">
|
---|
| 162 | <primary sortas="b-metaflac">metaflac</primary>
|
---|
| 163 | </indexterm>
|
---|
| 164 | </listitem>
|
---|
| 165 | </varlistentry>
|
---|
| 166 |
|
---|
| 167 | <varlistentry id="libflac">
|
---|
[086d326] | 168 | <term><filename class='libraryfile'>libFLAC{,++}.{so,a}</filename></term>
|
---|
[0b67514] | 169 | <listitem>
|
---|
[50b692d] | 170 | <para>these libraries provide native FLAC and Ogg FLAC C/C++ APIs
|
---|
[0b67514] | 171 | for programs utilizing FLAC.</para>
|
---|
| 172 | <indexterm zone="flac libflac">
|
---|
[0e2aa08] | 173 | <primary sortas="c-libFLAC">lib{,Ogg}FLAC{,++}.{so,a}</primary>
|
---|
[0b67514] | 174 | </indexterm>
|
---|
| 175 | </listitem>
|
---|
| 176 | </varlistentry>
|
---|
| 177 |
|
---|
| 178 | <varlistentry id="libxmms-flac">
|
---|
[0e2aa08] | 179 | <term><filename class='libraryfile'>libxmms-flac.{so,a}</filename></term>
|
---|
[0b67514] | 180 | <listitem>
|
---|
| 181 | <para>is a plugin for <application>XMMS</application>.</para>
|
---|
| 182 | <indexterm zone="flac libxmms-flac">
|
---|
[0e2aa08] | 183 | <primary sortas="c-libxmms-flac">libxmms-flac.{so,a}</primary>
|
---|
[0b67514] | 184 | </indexterm>
|
---|
| 185 | </listitem>
|
---|
| 186 | </varlistentry>
|
---|
| 187 |
|
---|
| 188 | </variablelist>
|
---|
| 189 |
|
---|
| 190 | </sect2>
|
---|
[61cc896] | 191 |
|
---|
| 192 | </sect1>
|
---|