[c34ca00a] | 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" [
|
---|
[c34ca00a] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[dc6ba1c0] | 7 | <!ENTITY libmusicbrainz-download-http "http://ftp.musicbrainz.org/pub/musicbrainz/historical/libmusicbrainz-&libmusicbrainz-version;.tar.gz">
|
---|
| 8 | <!ENTITY libmusicbrainz-download-ftp "ftp://ftp.musicbrainz.org/pub/musicbrainz/historical/libmusicbrainz-&libmusicbrainz-version;.tar.gz">
|
---|
[15244f93] | 9 | <!ENTITY libmusicbrainz-md5sum "d5e19bb77edd6ea798ce206bd05ccc5f">
|
---|
| 10 | <!ENTITY libmusicbrainz-size "524 KB">
|
---|
| 11 | <!ENTITY libmusicbrainz-buildsize "12 MB">
|
---|
| 12 | <!ENTITY libmusicbrainz-time "0.4 SBU">
|
---|
[c34ca00a] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="libmusicbrainz" xreflabel="libmusicbrainz-&libmusicbrainz-version;">
|
---|
| 16 | <?dbhtml filename="libmusicbrainz.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
[bccbdaea] | 19 | <date>$Date$</date>
|
---|
[c34ca00a] | 20 | </sect1info>
|
---|
| 21 |
|
---|
| 22 | <title>libmusicbrainz-&libmusicbrainz-version;</title>
|
---|
| 23 |
|
---|
| 24 | <indexterm zone="libmusicbrainz">
|
---|
| 25 | <primary sortas="a-libmusicbrainz">libmusicbrainz</primary>
|
---|
| 26 | </indexterm>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="package">
|
---|
| 29 | <title>Introduction to libmusicbrainz</title>
|
---|
| 30 |
|
---|
[2eeb8695] | 31 | <para>
|
---|
| 32 | The <application>libmusicbrainz</application> package contains a library
|
---|
| 33 | which allows you to access the data held on the MusicBrainz server.
|
---|
| 34 | This is useful for adding MusicBrainz lookup capabilities to other
|
---|
| 35 | applications.
|
---|
| 36 | </para>
|
---|
| 37 |
|
---|
| 38 | <para>
|
---|
| 39 | MusicBrainz is a community music metadatabase that attempts to create
|
---|
| 40 | a comprehensive music information site. You can use the MusicBrainz data
|
---|
| 41 | either by browsing the web site, or you can access the data from a client
|
---|
| 42 | program — for example, a CD player program can use MusicBrainz to
|
---|
| 43 | identify CDs and provide information about the CD, about the artist or
|
---|
| 44 | other related information.
|
---|
| 45 | </para>
|
---|
[c34ca00a] | 46 |
|
---|
[650ddb8] | 47 | &lfs112_checked;
|
---|
[35865a73] | 48 |
|
---|
[c34ca00a] | 49 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 50 | <itemizedlist spacing="compact">
|
---|
| 51 | <listitem>
|
---|
[2eeb8695] | 52 | <para>
|
---|
| 53 | Download (HTTP): <ulink url="&libmusicbrainz-download-http;"/>
|
---|
| 54 | </para>
|
---|
[c34ca00a] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[2eeb8695] | 57 | <para>
|
---|
| 58 | Download (FTP): <ulink url="&libmusicbrainz-download-ftp;"/>
|
---|
| 59 | </para>
|
---|
[c34ca00a] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[2eeb8695] | 62 | <para>
|
---|
| 63 | Download MD5 sum: &libmusicbrainz-md5sum;
|
---|
| 64 | </para>
|
---|
[c34ca00a] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[2eeb8695] | 67 | <para>
|
---|
| 68 | Download size: &libmusicbrainz-size;
|
---|
| 69 | </para>
|
---|
[c34ca00a] | 70 | </listitem>
|
---|
| 71 | <listitem>
|
---|
[2eeb8695] | 72 | <para>
|
---|
| 73 | Estimated disk space required: &libmusicbrainz-buildsize;
|
---|
| 74 | </para>
|
---|
[c34ca00a] | 75 | </listitem>
|
---|
| 76 | <listitem>
|
---|
[2eeb8695] | 77 | <para>
|
---|
| 78 | Estimated build time: &libmusicbrainz-time;
|
---|
| 79 | </para>
|
---|
[c34ca00a] | 80 | </listitem>
|
---|
| 81 | </itemizedlist>
|
---|
| 82 |
|
---|
[a9995cf] | 83 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 84 | <itemizedlist spacing="compact">
|
---|
| 85 | <listitem>
|
---|
[2eeb8695] | 86 | <para>
|
---|
| 87 | Required patch: <ulink
|
---|
| 88 | url="&patch-root;/libmusicbrainz-&libmusicbrainz-version;-missing-includes-1.patch"/>
|
---|
| 89 | </para>
|
---|
[a9995cf] | 90 | </listitem>
|
---|
| 91 | </itemizedlist>
|
---|
| 92 |
|
---|
[c34ca00a] | 93 | <bridgehead renderas="sect3">libmusicbrainz Dependencies</bridgehead>
|
---|
| 94 |
|
---|
[56605b9] | 95 | <bridgehead renderas="sect4">Optional to Build the Python Bindings</bridgehead>
|
---|
| 96 | <para role="optional">
|
---|
| 97 | <xref linkend="python2"/>
|
---|
| 98 | </para>
|
---|
[003c1b9] | 99 |
|
---|
[0e2aa08] | 100 | <para condition="html" role="usernotes">User Notes:
|
---|
| 101 | <ulink url="&blfs-wiki;/libmusicbrainz"/></para>
|
---|
| 102 |
|
---|
[c34ca00a] | 103 | </sect2>
|
---|
| 104 |
|
---|
| 105 | <sect2 role="installation">
|
---|
| 106 | <title>Installation of libmusicbrainz</title>
|
---|
| 107 |
|
---|
[2eeb8695] | 108 | <para>
|
---|
| 109 | Install <application>libmusicbrainz</application> by running the
|
---|
| 110 | following commands:
|
---|
| 111 | </para>
|
---|
[c34ca00a] | 112 |
|
---|
[a9995cf] | 113 | <screen><userinput>patch -Np1 -i ../libmusicbrainz-&libmusicbrainz-version;-missing-includes-1.patch &&
|
---|
[1de48c0f] | 114 |
|
---|
[f4302700] | 115 | CXXFLAGS="${CXXFLAGS:--O2 -g} -std=c++98" \
|
---|
[bf8eb65] | 116 | ./configure --prefix=/usr --disable-static &&
|
---|
[c34ca00a] | 117 | make</userinput></screen>
|
---|
| 118 |
|
---|
[2eeb8695] | 119 | <para>
|
---|
| 120 | If <application>Python</application> is installed, build the bindings
|
---|
| 121 | with the following commands:
|
---|
| 122 | </para>
|
---|
[003c1b9] | 123 |
|
---|
[6cfc1326] | 124 | <screen><userinput>(cd python && python2 setup.py build)</userinput></screen>
|
---|
[003c1b9] | 125 |
|
---|
[2eeb8695] | 126 | <para>
|
---|
| 127 | This package does not come with a stand-alone test suite (to
|
---|
| 128 | test you must have <application>Python</application> installed and perform
|
---|
| 129 | the test after the package is installed).
|
---|
| 130 | </para>
|
---|
[c34ca00a] | 131 |
|
---|
[2eeb8695] | 132 | <para>
|
---|
| 133 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 134 | </para>
|
---|
[c34ca00a] | 135 |
|
---|
| 136 | <screen role="root"><userinput>make install &&
|
---|
| 137 | install -v -m644 -D docs/mb_howto.txt \
|
---|
[60cfddd] | 138 | /usr/share/doc/libmusicbrainz-&libmusicbrainz-version;/mb_howto.txt</userinput></screen>
|
---|
[c34ca00a] | 139 |
|
---|
[2eeb8695] | 140 | <para>
|
---|
| 141 | To test the Python bindings, issue the following:
|
---|
[6cfc1326] | 142 | <command>(cd python && python2 setup.py test)</command>.
|
---|
[2eeb8695] | 143 | </para>
|
---|
[15244f93] | 144 |
|
---|
[2eeb8695] | 145 | <para>
|
---|
| 146 | If you built the Python bindings, issue the following commands as
|
---|
| 147 | the <systemitem class="username">root</systemitem> user to install
|
---|
| 148 | them:
|
---|
| 149 | </para>
|
---|
[003c1b9] | 150 |
|
---|
[4544b2a6] | 151 | <screen role="root"><userinput>(cd python && python2 setup.py install)</userinput></screen>
|
---|
[003c1b9] | 152 |
|
---|
[c34ca00a] | 153 | </sect2>
|
---|
| 154 |
|
---|
[bf8eb65] | 155 | <sect2 role="commands">
|
---|
| 156 | <title>Command Explanations</title>
|
---|
| 157 |
|
---|
| 158 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 159 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 160 |
|
---|
| 161 | </sect2>
|
---|
| 162 |
|
---|
[c34ca00a] | 163 | <sect2 role="content">
|
---|
| 164 | <title>Contents</title>
|
---|
| 165 |
|
---|
| 166 | <segmentedlist>
|
---|
| 167 | <segtitle>Installed Programs</segtitle>
|
---|
| 168 | <segtitle>Installed Library</segtitle>
|
---|
| 169 | <segtitle>Installed Directories</segtitle>
|
---|
| 170 |
|
---|
| 171 | <seglistitem>
|
---|
| 172 | <seg>None</seg>
|
---|
[bf8eb65] | 173 | <seg>libmusicbrainz.so</seg>
|
---|
[c34ca00a] | 174 | <seg>/usr/include/musicbrainz and
|
---|
| 175 | /usr/share/doc/libmusicbrainz-&libmusicbrainz-version;</seg>
|
---|
| 176 | </seglistitem>
|
---|
| 177 | </segmentedlist>
|
---|
| 178 |
|
---|
| 179 | <variablelist>
|
---|
| 180 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 181 | <?dbfo list-presentation="list"?>
|
---|
| 182 | <?dbhtml list-presentation="table"?>
|
---|
| 183 |
|
---|
| 184 | <varlistentry id="libmusicbrainz-lib">
|
---|
[4c24eb0a] | 185 | <term><filename class="libraryfile">libmusicbrainz.so</filename></term>
|
---|
[c34ca00a] | 186 | <listitem>
|
---|
[2eeb8695] | 187 | <para>
|
---|
| 188 | contains API functions to access the MusicBrainz database, both
|
---|
[4c24eb0a] | 189 | for looking up data and also for submitting new data
|
---|
[2eeb8695] | 190 | </para>
|
---|
[c34ca00a] | 191 | <indexterm zone="libmusicbrainz libmusicbrainz-lib">
|
---|
[0e2aa08] | 192 | <primary sortas="c-libmusicbrainz">libmusicbrainz.{so,a}</primary>
|
---|
[c34ca00a] | 193 | </indexterm>
|
---|
| 194 | </listitem>
|
---|
| 195 | </varlistentry>
|
---|
| 196 | </variablelist>
|
---|
| 197 |
|
---|
| 198 | </sect2>
|
---|
| 199 |
|
---|
| 200 | </sect1>
|
---|