source: multimedia/libdriv/sdl.xml@ d78e102e

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since d78e102e was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 18 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

  • Property mode set to 100644
File size: 7.0 KB
Line 
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 sdl-download-http "https://www.libsdl.org/release/SDL-&sdl-version;.tar.gz">
8 <!ENTITY sdl-download-ftp " ">
9 <!ENTITY sdl-md5sum "9d96df8417572a2afb781a7c4c811a85">
10 <!ENTITY sdl-size "3.8 MB">
11 <!ENTITY sdl-buildsize "40 MB">
12 <!ENTITY sdl-time "0.6 SBU">
13]>
14
15<sect1 id="sdl" xreflabel="SDL-&sdl-version;">
16 <?dbhtml filename="sdl.html"?>
17
18
19 <title>SDL-&sdl-version;</title>
20
21 <indexterm zone="sdl">
22 <primary sortas="a-SDL">SDL</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to SDL</title>
27
28 <para>
29 The Simple DirectMedia Layer (<application>SDL</application>
30 for short) is a cross-platform library designed to make it easy to write
31 multimedia software, such as games and emulators.
32 </para>
33
34 &lfs112_checked;
35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>
40 Download (HTTP): <ulink url="&sdl-download-http;"/>
41 </para>
42 </listitem>
43 <listitem>
44 <para>
45 Download (FTP): <ulink url="&sdl-download-ftp;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download MD5 sum: &sdl-md5sum;
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download size: &sdl-size;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Estimated disk space required: &sdl-buildsize;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated build time: &sdl-time;
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">SDL Dependencies</bridgehead>
71
72 <bridgehead renderas="sect4">Recommended</bridgehead>
73 <para role="recommended">
74 <xref linkend="xorg7-lib"/> (if they are not present, the corresponding
75 modules are not built)
76 </para>
77
78 <bridgehead renderas="sect4">Optional</bridgehead>
79 <para role="optional">
80 <xref linkend="aalib"/>,
81 <xref linkend="alsa"/>,
82 <xref linkend="glu"/>,
83 <xref linkend="nasm"/>,
84 <xref linkend="pulseaudio"/>,
85 <xref linkend="pth"/>,
86 <xref linkend="x-window-system"/>,
87 <ulink url="http://pkgs.fedoraproject.org/repo/pkgs/directfb/">DirectFB</ulink>,
88 <ulink url="http://ibiblio.org/ggicore/">GGI</ulink>,
89 <ulink url="http://caca.zoy.org/wiki/libcaca">libcaca</ulink>,
90 <ulink url="http://picogui.org/">PicoGUI</ulink>, and
91 <ulink url="https://www.svgalib.org/">SVGAlib</ulink>
92 </para>
93
94 <para condition="html" role="usernotes">User Notes:
95 <ulink url="&blfs-wiki;/sdl"/></para>
96
97 </sect2>
98
99 <sect2 role="installation">
100 <title>Installation of SDL</title>
101
102 <para>
103 Install <application>SDL</application> by running the
104 following commands:
105 </para>
106
107<screen><userinput>sed -e '/_XData32/s:register long:register _Xconst long:' \
108 -i src/video/x11/SDL_x11sym.h &amp;&amp;
109
110./configure --prefix=/usr --disable-static &amp;&amp;
111
112make</userinput></screen>
113
114 <para>
115 Now, as the <systemitem class="username">root</systemitem> user:
116 </para>
117
118<screen role="root"><userinput>make install &amp;&amp;
119
120install -v -m755 -d /usr/share/doc/SDL-&sdl-version;/html &amp;&amp;
121install -v -m644 docs/html/*.html \
122 /usr/share/doc/SDL-&sdl-version;/html</userinput></screen>
123
124 </sect2>
125
126 <sect2 role="testing">
127 <title>Testing SDL</title>
128
129 <para>
130 If you wish to, test the installation of <application>SDL</application>
131 using the included test programs. It is not required to install any of
132 the resulting binaries to validate the installation. Issue the following
133 commands to build the test programs:
134 </para>
135
136<screen remap="test"><userinput>cd test &amp;&amp;
137./configure &amp;&amp;
138make</userinput></screen>
139
140 <para>
141 You'll need to manually run all the test programs (they are listed in
142 the <filename>README</filename> file in this directory). Many of them
143 will need to be manually killed, and you'll need to turn your speakers
144 on with the volume at a suitable level.
145 </para>
146
147 </sect2>
148
149 <sect2 role="commands">
150 <title>Command Explanations</title>
151
152 <para>
153 <command>sed -e ...</command>: This command fixes compilation with
154 libX11-1.6.0 and later.
155 </para>
156
157 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
158 href="../../xincludes/static-libraries.xml"/>
159
160 <para>
161 <option>--disable-alsa-shared</option>: This switch disables
162 dynamically loading ALSA shared libraries.
163 </para>
164
165 <para>
166 <option>--disable-sdl-dlopen</option>: This switch disables using
167 dlopen for shared object loading. Loading image backend libraries like
168 libpng dynamically on the fly does not work.
169 </para>
170
171 <para>
172 <option>--disable-x11-shared</option>: This switch disables
173 dynamically loading X11 shared libraries.
174 </para>
175
176 </sect2>
177
178 <sect2 role="configuration">
179 <title>Configuring SDL</title>
180
181 <sect3>
182 <title>Configuration Information</title>
183
184 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
185 href="../../xincludes/lib-config.xml"/>
186
187 </sect3>
188
189 </sect2>
190
191 <sect2 role="content">
192 <title>Contents</title>
193
194 <segmentedlist>
195 <segtitle>Installed Program</segtitle>
196 <segtitle>Installed Libraries</segtitle>
197 <segtitle>Installed Directories</segtitle>
198
199 <seglistitem>
200 <seg>sdl-config</seg>
201 <seg>libSDL.so and libSDLmain.a</seg>
202 <seg>/usr/include/SDL and /usr/share/doc/SDL-&sdl-version;</seg>
203 </seglistitem>
204 </segmentedlist>
205
206 <variablelist>
207 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
208 <?dbfo list-presentation="list"?>
209 <?dbhtml list-presentation="table"?>
210
211 <varlistentry id="sdl-config">
212 <term><command>sdl-config</command></term>
213 <listitem>
214 <para>
215 determines the compile and linker flags that should be used to
216 compile and link programs that use
217 <filename class="libraryfile">libSDL</filename>
218 </para>
219 <indexterm zone="sdl sdl-config">
220 <primary sortas="b-sdl-config">sdl-config</primary>
221 </indexterm>
222 </listitem>
223 </varlistentry>
224
225 <varlistentry id="libsdl">
226 <term><filename class="libraryfile">libSDL.so</filename></term>
227 <listitem>
228 <para>
229 contains functions that provide low level access to audio,
230 keyboard, mouse, joystick, 3D hardware via OpenGL, and
231 2D frame buffer across multiple platforms
232 </para>
233 <indexterm zone="sdl libsdl">
234 <primary sortas="c-libsdl">libSDL.so</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
238
239 </variablelist>
240
241 </sect2>
242
243</sect1>
Note: See TracBrowser for help on using the repository browser.