source: multimedia/libdriv/sdl.xml@ c93c620c

11.0 11.1 11.2 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 upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since c93c620c was c93c620c, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Tags

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