1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
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">
|
---|
9 | <!ENTITY libmusicbrainz-md5sum "d5e19bb77edd6ea798ce206bd05ccc5f">
|
---|
10 | <!ENTITY libmusicbrainz-size "524 KB">
|
---|
11 | <!ENTITY libmusicbrainz-buildsize "12 MB">
|
---|
12 | <!ENTITY libmusicbrainz-time "0.4 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="libmusicbrainz" xreflabel="libmusicbrainz-&libmusicbrainz-version;">
|
---|
16 | <?dbhtml filename="libmusicbrainz.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <date>$Date$</date>
|
---|
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 |
|
---|
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>
|
---|
46 |
|
---|
47 | &lfs110a_checked;
|
---|
48 |
|
---|
49 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
50 | <itemizedlist spacing="compact">
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download (HTTP): <ulink url="&libmusicbrainz-download-http;"/>
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Download (FTP): <ulink url="&libmusicbrainz-download-ftp;"/>
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Download MD5 sum: &libmusicbrainz-md5sum;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | <listitem>
|
---|
67 | <para>
|
---|
68 | Download size: &libmusicbrainz-size;
|
---|
69 | </para>
|
---|
70 | </listitem>
|
---|
71 | <listitem>
|
---|
72 | <para>
|
---|
73 | Estimated disk space required: &libmusicbrainz-buildsize;
|
---|
74 | </para>
|
---|
75 | </listitem>
|
---|
76 | <listitem>
|
---|
77 | <para>
|
---|
78 | Estimated build time: &libmusicbrainz-time;
|
---|
79 | </para>
|
---|
80 | </listitem>
|
---|
81 | </itemizedlist>
|
---|
82 |
|
---|
83 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
84 | <itemizedlist spacing="compact">
|
---|
85 | <listitem>
|
---|
86 | <para>
|
---|
87 | Required patch: <ulink
|
---|
88 | url="&patch-root;/libmusicbrainz-&libmusicbrainz-version;-missing-includes-1.patch"/>
|
---|
89 | </para>
|
---|
90 | </listitem>
|
---|
91 | </itemizedlist>
|
---|
92 |
|
---|
93 | <bridgehead renderas="sect3">libmusicbrainz Dependencies</bridgehead>
|
---|
94 |
|
---|
95 | <bridgehead renderas="sect4">Optional to Build the Python Bindings</bridgehead>
|
---|
96 | <para role="optional">
|
---|
97 | <xref linkend="python2"/>
|
---|
98 | </para>
|
---|
99 |
|
---|
100 | <para condition="html" role="usernotes">User Notes:
|
---|
101 | <ulink url="&blfs-wiki;/libmusicbrainz"/></para>
|
---|
102 |
|
---|
103 | </sect2>
|
---|
104 |
|
---|
105 | <sect2 role="installation">
|
---|
106 | <title>Installation of libmusicbrainz</title>
|
---|
107 |
|
---|
108 | <para>
|
---|
109 | Install <application>libmusicbrainz</application> by running the
|
---|
110 | following commands:
|
---|
111 | </para>
|
---|
112 |
|
---|
113 | <screen><userinput>patch -Np1 -i ../libmusicbrainz-&libmusicbrainz-version;-missing-includes-1.patch &&
|
---|
114 |
|
---|
115 | CXXFLAGS="${CXXFLAGS:--O2 -g} -std=c++98" \
|
---|
116 | ./configure --prefix=/usr --disable-static &&
|
---|
117 | make</userinput></screen>
|
---|
118 |
|
---|
119 | <para>
|
---|
120 | If <application>Python</application> is installed, build the bindings
|
---|
121 | with the following commands:
|
---|
122 | </para>
|
---|
123 |
|
---|
124 | <screen><userinput>(cd python && python2 setup.py build)</userinput></screen>
|
---|
125 |
|
---|
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>
|
---|
131 |
|
---|
132 | <para>
|
---|
133 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
134 | </para>
|
---|
135 |
|
---|
136 | <screen role="root"><userinput>make install &&
|
---|
137 | install -v -m644 -D docs/mb_howto.txt \
|
---|
138 | /usr/share/doc/libmusicbrainz-&libmusicbrainz-version;/mb_howto.txt</userinput></screen>
|
---|
139 |
|
---|
140 | <para>
|
---|
141 | To test the Python bindings, issue the following:
|
---|
142 | <command>(cd python && python2 setup.py test)</command>.
|
---|
143 | </para>
|
---|
144 |
|
---|
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>
|
---|
150 |
|
---|
151 | <screen role="root"><userinput>(cd python && python2 setup.py install)</userinput></screen>
|
---|
152 |
|
---|
153 | </sect2>
|
---|
154 |
|
---|
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 |
|
---|
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>
|
---|
173 | <seg>libmusicbrainz.so</seg>
|
---|
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">
|
---|
185 | <term><filename class="libraryfile">libmusicbrainz.so</filename></term>
|
---|
186 | <listitem>
|
---|
187 | <para>
|
---|
188 | contains API functions to access the MusicBrainz database, both
|
---|
189 | for looking up data and also for submitting new data
|
---|
190 | </para>
|
---|
191 | <indexterm zone="libmusicbrainz libmusicbrainz-lib">
|
---|
192 | <primary sortas="c-libmusicbrainz">libmusicbrainz.{so,a}</primary>
|
---|
193 | </indexterm>
|
---|
194 | </listitem>
|
---|
195 | </varlistentry>
|
---|
196 | </variablelist>
|
---|
197 |
|
---|
198 | </sect2>
|
---|
199 |
|
---|
200 | </sect1>
|
---|