source: multimedia/libdriv/sdl.xml@ c6b192c

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 c6b192c was c6b192c, checked in by Xi Ruoyao <xry111@…>, 3 years ago

secure package download URLs

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24436 af4574ff-66df-0310-9fd7-8a98e5e911e0

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