[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[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;
|
---|
[4a21942] | 6 |
|
---|
[8dfc5c3] | 7 | <!ENTITY libmad-download-http "&sourceforge-dl;/mad/libmad-&libmad-version;.tar.gz">
|
---|
[e1e58be] | 8 | <!ENTITY libmad-download-ftp " ">
|
---|
[4a21942] | 9 | <!ENTITY libmad-md5sum "1be543bc30c56fb6bea1d7bf6a64e66c">
|
---|
[e355f3c6] | 10 | <!ENTITY libmad-size "491 KB">
|
---|
[115fbe4] | 11 | <!ENTITY libmad-buildsize "4.2 MB">
|
---|
[58ab7964] | 12 | <!ENTITY libmad-time "0.1 SBU">
|
---|
[48b7295] | 13 | ]>
|
---|
| 14 |
|
---|
[ef0e45e4] | 15 | <sect1 id="libmad" xreflabel="libmad-&libmad-version;">
|
---|
[ab10474] | 16 | <?dbhtml filename="libmad.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
[115fbe4] | 19 | <title>libmad-&libmad-version;</title>
|
---|
[ab10474] | 20 |
|
---|
| 21 | <indexterm zone="libmad">
|
---|
| 22 | <primary sortas="a-Libmad">Libmad</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
[115fbe4] | 26 | <title>Introduction to libmad</title>
|
---|
[ab10474] | 27 |
|
---|
[2eeb8695] | 28 | <para>
|
---|
| 29 | <application>libmad</application> is a high-quality
|
---|
| 30 | MPEG audio decoder capable of 24-bit output.
|
---|
| 31 | </para>
|
---|
[ab10474] | 32 |
|
---|
[42f164e] | 33 | &lfs122_checked;
|
---|
[e355f3c6] | 34 |
|
---|
[ab10474] | 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
[2eeb8695] | 38 | <para>
|
---|
| 39 | Download (HTTP): <ulink url="&libmad-download-http;"/>
|
---|
| 40 | </para>
|
---|
[ab10474] | 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
[2eeb8695] | 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&libmad-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
[ab10474] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[2eeb8695] | 48 | <para>
|
---|
| 49 | Download MD5 sum: &libmad-md5sum;
|
---|
| 50 | </para>
|
---|
[ab10474] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[2eeb8695] | 53 | <para>
|
---|
| 54 | Download size: &libmad-size;
|
---|
| 55 | </para>
|
---|
[ab10474] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[2eeb8695] | 58 | <para>
|
---|
| 59 | Estimated disk space required: &libmad-buildsize;
|
---|
| 60 | </para>
|
---|
[ab10474] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[2eeb8695] | 63 | <para>
|
---|
| 64 | Estimated build time: &libmad-time;
|
---|
| 65 | </para>
|
---|
[ab10474] | 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
| 68 |
|
---|
[a857a427] | 69 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 70 | <itemizedlist spacing='compact'>
|
---|
| 71 | <listitem>
|
---|
[2eeb8695] | 72 | <para>
|
---|
| 73 | Required patch: <ulink
|
---|
| 74 | url="&patch-root;/libmad-&libmad-version;-fixes-1.patch"/>
|
---|
| 75 | </para>
|
---|
[a857a427] | 76 | </listitem>
|
---|
| 77 | </itemizedlist>
|
---|
| 78 |
|
---|
[ab10474] | 79 | </sect2>
|
---|
| 80 |
|
---|
| 81 | <sect2 role="installation">
|
---|
[115fbe4] | 82 | <title>Installation of libmad</title>
|
---|
[ab10474] | 83 |
|
---|
[2eeb8695] | 84 | <para>
|
---|
| 85 | Install <application>libmad</application> by running the
|
---|
| 86 | following commands:
|
---|
| 87 | </para>
|
---|
[ab10474] | 88 |
|
---|
[10030e39] | 89 | <screen><userinput>patch -Np1 -i ../libmad-&libmad-version;-fixes-1.patch &&
|
---|
[2fb20a3] | 90 | sed "s@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@g" -i configure.ac &&
|
---|
[10030e39] | 91 | touch NEWS AUTHORS ChangeLog &&
|
---|
| 92 | autoreconf -fi &&
|
---|
| 93 |
|
---|
[2b940c9] | 94 | ./configure --prefix=/usr --disable-static &&
|
---|
[98e781c] | 95 | make</userinput></screen>
|
---|
| 96 |
|
---|
[2eeb8695] | 97 | <para>
|
---|
| 98 | This package does not come with a test suite.
|
---|
| 99 | </para>
|
---|
[8a8e021] | 100 |
|
---|
[2eeb8695] | 101 | <para>
|
---|
| 102 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 103 | </para>
|
---|
[98e781c] | 104 |
|
---|
[a747b3c] | 105 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[2efa5eb4] | 106 |
|
---|
[2eeb8695] | 107 | <para>
|
---|
| 108 | Some packages check for the <application>pkg-config</application> file
|
---|
| 109 | for <application>libmad</application>. This file is particularly needed
|
---|
| 110 | so that <application>Cdrdao</application> can recognize the installed
|
---|
| 111 | <application>libmad</application>.
|
---|
| 112 | </para>
|
---|
[bccbdaea] | 113 |
|
---|
[2eeb8695] | 114 | <para>
|
---|
| 115 | As the <systemitem class="username">root</systemitem> user:
|
---|
| 116 | </para>
|
---|
[2efa5eb4] | 117 |
|
---|
| 118 | <screen role="root"><userinput>cat > /usr/lib/pkgconfig/mad.pc << "EOF"
|
---|
| 119 | <literal>prefix=/usr
|
---|
| 120 | exec_prefix=${prefix}
|
---|
| 121 | libdir=${exec_prefix}/lib
|
---|
| 122 | includedir=${prefix}/include
|
---|
| 123 |
|
---|
| 124 | Name: mad
|
---|
| 125 | Description: MPEG audio decoder
|
---|
| 126 | Requires:
|
---|
| 127 | Version: &libmad-version;
|
---|
| 128 | Libs: -L${libdir} -lmad
|
---|
| 129 | Cflags: -I${includedir}</literal>
|
---|
| 130 | EOF</userinput></screen>
|
---|
[ab10474] | 131 |
|
---|
[58ab7964] | 132 | </sect2>
|
---|
| 133 |
|
---|
[542fcf4] | 134 | <sect2 role="commands">
|
---|
| 135 | <title>Command Explanations</title>
|
---|
| 136 |
|
---|
[10030e39] | 137 | <para>
|
---|
| 138 | <command>touch NEWS AUTHORS ChangeLog</command>: Prevent autoreconf from
|
---|
| 139 | returning an error.
|
---|
| 140 | </para>
|
---|
| 141 |
|
---|
[2b940c9] | 142 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 143 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 144 |
|
---|
[542fcf4] | 145 | </sect2>
|
---|
| 146 |
|
---|
[58ab7964] | 147 | <sect2 role="content">
|
---|
| 148 | <title>Contents</title>
|
---|
| 149 |
|
---|
[ab10474] | 150 | <segmentedlist>
|
---|
| 151 | <segtitle>Installed Programs</segtitle>
|
---|
[58ab7964] | 152 | <segtitle>Installed Library</segtitle>
|
---|
[ab10474] | 153 | <segtitle>Installed Directories</segtitle>
|
---|
| 154 |
|
---|
| 155 | <seglistitem>
|
---|
| 156 | <seg>None</seg>
|
---|
[2b940c9] | 157 | <seg>libmad.so</seg>
|
---|
[8a8e021] | 158 | <seg>None</seg>
|
---|
[ab10474] | 159 | </seglistitem>
|
---|
| 160 | </segmentedlist>
|
---|
| 161 |
|
---|
| 162 | <variablelist>
|
---|
| 163 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 164 | <?dbfo list-presentation="list"?>
|
---|
| 165 | <?dbhtml list-presentation="table"?>
|
---|
| 166 |
|
---|
| 167 | <varlistentry id="libmad-lib">
|
---|
[4c24eb0a] | 168 | <term><filename class="libraryfile">libmad.so</filename></term>
|
---|
[ab10474] | 169 | <listitem>
|
---|
[2eeb8695] | 170 | <para>
|
---|
[4c24eb0a] | 171 | is a MPEG audio decoder library
|
---|
[2eeb8695] | 172 | </para>
|
---|
[ab10474] | 173 | <indexterm zone="libmad libmad-lib">
|
---|
[2b940c9] | 174 | <primary sortas="c-libmad">libmad.so</primary>
|
---|
[ab10474] | 175 | </indexterm>
|
---|
| 176 | </listitem>
|
---|
| 177 | </varlistentry>
|
---|
| 178 |
|
---|
| 179 | </variablelist>
|
---|
| 180 |
|
---|
| 181 | </sect2>
|
---|
[ef0e45e4] | 182 |
|
---|
| 183 | </sect1>
|
---|