aboutsummaryrefslogtreecommitdiffstats
path: root/general/graphlib/babl.xml
blob: d47517c2523962a1c1b219c7c62018b24429ddd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;

  <!ENTITY babl-download-http "https://download.gimp.org/pub/babl/0.1/babl-&babl-version;.tar.xz">
  <!ENTITY babl-download-ftp  " ">
  <!ENTITY babl-md5sum        "749169721b551882332a64ac17735de6">
  <!ENTITY babl-size          "312 KB">
  <!ENTITY babl-buildsize     "13 MB (with tests)">
  <!ENTITY babl-time          "0.1 SBU (Using parallelism=4; with tests)">
]>

<sect1 id="babl" xreflabel="babl-&babl-version;">
  <?dbhtml filename="babl.html"?>


  <title>babl-&babl-version;</title>

  <indexterm zone="babl">
    <primary sortas="a-Babl">Babl</primary>
  </indexterm>

  <sect2 role="package">
    <title>Introduction to Babl</title>

    <para>
      The <application>Babl</application> package is a dynamic, any to any,
      pixel format translation library.
    </para>

    &lfs122_checked;

    <bridgehead renderas="sect3">Package Information</bridgehead>
    <itemizedlist spacing="compact">
      <listitem>
        <para>
          Download (HTTP): <ulink url="&babl-download-http;"/>
        </para>
      </listitem>
      <listitem>
        <para>
          Download (FTP): <ulink url="&babl-download-ftp;"/>
        </para>
      </listitem>
      <listitem>
        <para>
          Download MD5 sum: &babl-md5sum;
        </para>
      </listitem>
      <listitem>
        <para>
          Download size: &babl-size;
        </para>
      </listitem>
      <listitem>
        <para>
          Estimated disk space required: &babl-buildsize;
        </para>
      </listitem>
      <listitem>
        <para>
          Estimated build time: &babl-time;
        </para>
      </listitem>
    </itemizedlist>

    <bridgehead renderas="sect3">Babl Dependencies</bridgehead>

    <bridgehead renderas="sect4">Recommended</bridgehead>
    <para role="recommended">
      &gobject-introspection; and
      <xref linkend="librsvg"/>
    </para>

    <bridgehead renderas="sect4">Optional</bridgehead>
    <para role="optional">
      <xref linkend="lcms2"/> and
      <ulink url="&w3m-url;">w3m</ulink>
    </para>

  </sect2>

  <sect2 role="installation">
    <title>Installation of Babl</title>

<!--
    <para>
      First, fix a typo that causes Meson to fail to run:
    </para>

<screen><userinput remap="pre">sed -i '/check:/d' meson.build</userinput></screen>
-->

    <para>
      Install <application>Babl</application> by running the following commands:
    </para>

<screen><userinput>mkdir bld &amp;&amp;
cd    bld &amp;&amp;

meson setup --prefix=/usr --buildtype=release .. &amp;&amp;
ninja </userinput></screen>

    <para>
      To test the results, issue: <command>ninja test</command>.
    </para>

    <para>
      Now, as the <systemitem class="username">root</systemitem> user:
    </para>

<screen role="root"><userinput>ninja install &amp;&amp;

install -v -m755 -d                         /usr/share/gtk-doc/html/babl/graphics &amp;&amp;
install -v -m644 docs/*.{css,html}          /usr/share/gtk-doc/html/babl          &amp;&amp;
install -v -m644 docs/graphics/*.{html,svg} /usr/share/gtk-doc/html/babl/graphics</userinput></screen>
  </sect2>

  <sect2 role="commands">
    <title>Command Explanations</title>

    <para>
      <command>install -v -m755 -d
      /usr/share/gtk-doc/html/babl/graphics</command>: This and the subsequent
      commands install the library html documentation under
      <filename class="directory">/usr/share/gtk-doc/html</filename> where
      other gtk packages put the programmer-oriented documentation.
    </para>

  </sect2>

  <sect2 role="content">
    <title>Contents</title>

    <segmentedlist>
      <segtitle>Installed Programs</segtitle>
      <segtitle>Installed Libraries</segtitle>
      <segtitle>Installed Directories</segtitle>

      <seglistitem>
        <seg>None</seg>
        <seg>libbabl-0.1.so and libraries in /usr/lib/babl-0.1</seg>
        <seg>
          /usr/{include,lib}/babl-0.1 and
          /usr/share/gtk-doc/html/babl
        </seg>
      </seglistitem>
    </segmentedlist>

    <variablelist>
      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
      <?dbfo list-presentation="list"?>
      <?dbhtml list-presentation="table"?>

      <varlistentry id="libbabl">
        <term><filename class="libraryfile">libbabl-0.1.so</filename></term>
        <listitem>
          <para>
            contains functions to access BablFishes to convert between formats
          </para>
          <indexterm zone="babl libbabl">
            <primary sortas="c-libbabl">libbabl-0.1.so</primary>
          </indexterm>
        </listitem>
      </varlistentry>
    </variablelist>
  </sect2>

</sect1>