source: multimedia/libdriv/sdl.xml@ eede1a3

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

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

  • Property mode set to 100644
File size: 7.1 KB
RevLine 
[576a230]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[48b7295]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
[86698d8]6
[c6b192c]7 <!ENTITY sdl-download-http "https://www.libsdl.org/release/SDL-&sdl-version;.tar.gz">
[68ad918]8 <!ENTITY sdl-download-ftp " ">
[52b1b8c]9 <!ENTITY sdl-md5sum "9d96df8417572a2afb781a7c4c811a85">
10 <!ENTITY sdl-size "3.8 MB">
11 <!ENTITY sdl-buildsize "40 MB">
[10ee44ef]12 <!ENTITY sdl-time "0.6 SBU">
[48b7295]13]>
[4a21942]14
[68ad918]15<sect1 id="sdl" xreflabel="SDL-&sdl-version;">
[576a230]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
[2eeb8695]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>
[576a230]36
[d437f756]37 &lfs101_checked;
[98d5a95]38
[576a230]39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
[2eeb8695]42 <para>
43 Download (HTTP): <ulink url="&sdl-download-http;"/>
44 </para>
[576a230]45 </listitem>
46 <listitem>
[2eeb8695]47 <para>
48 Download (FTP): <ulink url="&sdl-download-ftp;"/>
49 </para>
[576a230]50 </listitem>
51 <listitem>
[2eeb8695]52 <para>
53 Download MD5 sum: &sdl-md5sum;
54 </para>
[576a230]55 </listitem>
56 <listitem>
[2eeb8695]57 <para>
58 Download size: &sdl-size;
59 </para>
[576a230]60 </listitem>
61 <listitem>
[2eeb8695]62 <para>
63 Estimated disk space required: &sdl-buildsize;
64 </para>
[576a230]65 </listitem>
66 <listitem>
[2eeb8695]67 <para>
68 Estimated build time: &sdl-time;
69 </para>
[576a230]70 </listitem>
71 </itemizedlist>
72
[93d50f5]73 <bridgehead renderas="sect3">SDL Dependencies</bridgehead>
[576a230]74
[f7a7e27]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
[576a230]81 <bridgehead renderas="sect4">Optional</bridgehead>
[e2e42c7]82 <para role="optional">
[59a6b63]83 <xref linkend="aalib"/>,
[e2e42c7]84 <xref linkend="alsa"/>,
[8a33d8cd]85 <xref linkend="glu"/>,
[59a6b63]86 <xref linkend="nasm"/>,
87 <xref linkend="pulseaudio"/>,
[e2e42c7]88 <xref linkend="pth"/>,
[59a6b63]89 <xref linkend="x-window-system"/>,
[077d95b]90 <ulink url="http://pkgs.fedoraproject.org/repo/pkgs/directfb/">DirectFB</ulink>,
[59a6b63]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
[973a31d]94 <ulink url="https://www.svgalib.org/">SVGAlib</ulink>
[e2e42c7]95 </para>
[576a230]96
[0e2aa08]97 <para condition="html" role="usernotes">User Notes:
98 <ulink url="&blfs-wiki;/sdl"/></para>
99
[576a230]100 </sect2>
101
102 <sect2 role="installation">
103 <title>Installation of SDL</title>
104
[2eeb8695]105 <para>
106 Install <application>SDL</application> by running the
107 following commands:
108 </para>
[576a230]109
[59a6b63]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;
[cf67717]114
[576a230]115make</userinput></screen>
116
[2eeb8695]117 <para>
118 Now, as the <systemitem class="username">root</systemitem> user:
119 </para>
[576a230]120
121<screen role="root"><userinput>make install &amp;&amp;
[10ee44ef]122
[932b7e2]123install -v -m755 -d /usr/share/doc/SDL-&sdl-version;/html &amp;&amp;
[98d5a95]124install -v -m644 docs/html/*.html \
[10ee44ef]125 /usr/share/doc/SDL-&sdl-version;/html</userinput></screen>
[48b7295]126
[576a230]127 </sect2>
[48b7295]128
[4f2f35c]129 <sect2 role="testing">
130 <title>Testing SDL</title>
[48b7295]131
[2eeb8695]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>
[48c17bf2]138
[e7d4e823]139<screen remap="test"><userinput>cd test &amp;&amp;
[48c17bf2]140./configure &amp;&amp;
[576a230]141make</userinput></screen>
[48c17bf2]142
[2eeb8695]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>
[5886225]149
150 </sect2>
151
152 <sect2 role="commands">
153 <title>Command Explanations</title>
154
[2eeb8695]155 <para>
156 <command>sed -e ...</command>: This command fixes compilation with
157 libX11-1.6.0 and later.
158 </para>
[46efb87]159
[66d82600]160 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
161 href="../../xincludes/static-libraries.xml"/>
[576a230]162
[2eeb8695]163 <para>
164 <option>--disable-alsa-shared</option>: This switch disables
165 dynamically loading ALSA shared libraries.
166 </para>
[59a6b63]167
[2eeb8695]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>
[59a6b63]173
[2eeb8695]174 <para>
175 <option>--disable-x11-shared</option>: This switch disables
176 dynamically loading X11 shared libraries.
177 </para>
[9eebf97]178
[576a230]179 </sect2>
180
181 <sect2 role="configuration">
182 <title>Configuring SDL</title>
183
184 <sect3>
185 <title>Configuration Information</title>
[48c17bf2]186
[e05cd03f]187 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ebabf24]188 href="../../xincludes/lib-config.xml"/>
[48b7295]189
[576a230]190 </sect3>
[48b7295]191
[576a230]192 </sect2>
[48b7295]193
[576a230]194 <sect2 role="content">
195 <title>Contents</title>
[48b7295]196
[576a230]197 <segmentedlist>
198 <segtitle>Installed Program</segtitle>
199 <segtitle>Installed Libraries</segtitle>
200 <segtitle>Installed Directories</segtitle>
[d7ecaa6]201
[576a230]202 <seglistitem>
203 <seg>sdl-config</seg>
[66d82600]204 <seg>libSDL.so and libSDLmain.a</seg>
[576a230]205 <seg>/usr/include/SDL and /usr/share/doc/SDL-&sdl-version;</seg>
206 </seglistitem>
207 </segmentedlist>
[d7ecaa6]208
[576a230]209 <variablelist>
210 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
211 <?dbfo list-presentation="list"?>
212 <?dbhtml list-presentation="table"?>
[d7ecaa6]213
[576a230]214 <varlistentry id="sdl-config">
215 <term><command>sdl-config</command></term>
216 <listitem>
[2eeb8695]217 <para>
218 determines the compile and linker flags that should be used to
219 compile and link programs that use
[4c24eb0a]220 <filename class="libraryfile">libSDL</filename>
[2eeb8695]221 </para>
[576a230]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">
[4c24eb0a]229 <term><filename class="libraryfile">libSDL.so</filename></term>
[576a230]230 <listitem>
[2eeb8695]231 <para>
232 contains functions that provide low level access to audio,
233 keyboard, mouse, joystick, 3D hardware via OpenGL, and
[4c24eb0a]234 2D frame buffer across multiple platforms
[2eeb8695]235 </para>
[576a230]236 <indexterm zone="sdl libsdl">
[66d82600]237 <primary sortas="c-libsdl">libSDL.so</primary>
[576a230]238 </indexterm>
239 </listitem>
240 </varlistentry>
[d7ecaa6]241
[576a230]242 </variablelist>
[48b7295]243
[576a230]244 </sect2>
[f45b1953]245
246</sect1>
Note: See TracBrowser for help on using the repository browser.