source: multimedia/libdriv/sdl.xml@ 712da35

11.3 12.0 12.1 gimp3 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128 xry111/xf86-video-removal
Last change on this file since 712da35 was 75b1a338, checked in by Xi Ruoyao <xry111@…>, 19 months ago

Update more URLs to use https

Mostly plain http -> https replace, if https works. If there is a HTTP
redirection, use the redirect target (unless it's a mirror or l10n like
"https://kde.org/zh-cn/").

Some non-trivial change:

  • Property mode set to 100644
File size: 7.0 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
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
[2eeb8695]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>
[576a230]33
[fa4d97a]34 &lfs112_checked;
[98d5a95]35
[576a230]36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
[2eeb8695]39 <para>
40 Download (HTTP): <ulink url="&sdl-download-http;"/>
41 </para>
[576a230]42 </listitem>
43 <listitem>
[2eeb8695]44 <para>
45 Download (FTP): <ulink url="&sdl-download-ftp;"/>
46 </para>
[576a230]47 </listitem>
48 <listitem>
[2eeb8695]49 <para>
50 Download MD5 sum: &sdl-md5sum;
51 </para>
[576a230]52 </listitem>
53 <listitem>
[2eeb8695]54 <para>
55 Download size: &sdl-size;
56 </para>
[576a230]57 </listitem>
58 <listitem>
[2eeb8695]59 <para>
60 Estimated disk space required: &sdl-buildsize;
61 </para>
[576a230]62 </listitem>
63 <listitem>
[2eeb8695]64 <para>
65 Estimated build time: &sdl-time;
66 </para>
[576a230]67 </listitem>
68 </itemizedlist>
69
[93d50f5]70 <bridgehead renderas="sect3">SDL Dependencies</bridgehead>
[576a230]71
[f7a7e27]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
[576a230]78 <bridgehead renderas="sect4">Optional</bridgehead>
[e2e42c7]79 <para role="optional">
[59a6b63]80 <xref linkend="aalib"/>,
[e2e42c7]81 <xref linkend="alsa"/>,
[8a33d8cd]82 <xref linkend="glu"/>,
[59a6b63]83 <xref linkend="nasm"/>,
84 <xref linkend="pulseaudio"/>,
[e2e42c7]85 <xref linkend="pth"/>,
[59a6b63]86 <xref linkend="x-window-system"/>,
[75b1a338]87 <ulink url="https://pkgs.fedoraproject.org/repo/pkgs/directfb/">DirectFB</ulink>,
88 <ulink url="https://ibiblio.org/ggicore/">GGI</ulink>,
89 <ulink url="https://github.com/cacalabs/libcaca">libcaca</ulink>,
[59a6b63]90 <ulink url="http://picogui.org/">PicoGUI</ulink>, and
[973a31d]91 <ulink url="https://www.svgalib.org/">SVGAlib</ulink>
[e2e42c7]92 </para>
[576a230]93
[0e2aa08]94 <para condition="html" role="usernotes">User Notes:
95 <ulink url="&blfs-wiki;/sdl"/></para>
96
[576a230]97 </sect2>
98
99 <sect2 role="installation">
100 <title>Installation of SDL</title>
101
[2eeb8695]102 <para>
103 Install <application>SDL</application> by running the
104 following commands:
105 </para>
[576a230]106
[59a6b63]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;
[cf67717]111
[576a230]112make</userinput></screen>
113
[2eeb8695]114 <para>
115 Now, as the <systemitem class="username">root</systemitem> user:
116 </para>
[576a230]117
118<screen role="root"><userinput>make install &amp;&amp;
[10ee44ef]119
[932b7e2]120install -v -m755 -d /usr/share/doc/SDL-&sdl-version;/html &amp;&amp;
[98d5a95]121install -v -m644 docs/html/*.html \
[10ee44ef]122 /usr/share/doc/SDL-&sdl-version;/html</userinput></screen>
[48b7295]123
[576a230]124 </sect2>
[48b7295]125
[4f2f35c]126 <sect2 role="testing">
127 <title>Testing SDL</title>
[48b7295]128
[2eeb8695]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>
[48c17bf2]135
[e7d4e823]136<screen remap="test"><userinput>cd test &amp;&amp;
[48c17bf2]137./configure &amp;&amp;
[576a230]138make</userinput></screen>
[48c17bf2]139
[2eeb8695]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>
[5886225]146
147 </sect2>
148
149 <sect2 role="commands">
150 <title>Command Explanations</title>
151
[2eeb8695]152 <para>
153 <command>sed -e ...</command>: This command fixes compilation with
154 libX11-1.6.0 and later.
155 </para>
[46efb87]156
[66d82600]157 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
158 href="../../xincludes/static-libraries.xml"/>
[576a230]159
[2eeb8695]160 <para>
161 <option>--disable-alsa-shared</option>: This switch disables
162 dynamically loading ALSA shared libraries.
163 </para>
[59a6b63]164
[2eeb8695]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>
[59a6b63]170
[2eeb8695]171 <para>
172 <option>--disable-x11-shared</option>: This switch disables
173 dynamically loading X11 shared libraries.
174 </para>
[9eebf97]175
[576a230]176 </sect2>
177
178 <sect2 role="configuration">
179 <title>Configuring SDL</title>
180
181 <sect3>
182 <title>Configuration Information</title>
[48c17bf2]183
[e05cd03f]184 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ebabf24]185 href="../../xincludes/lib-config.xml"/>
[48b7295]186
[576a230]187 </sect3>
[48b7295]188
[576a230]189 </sect2>
[48b7295]190
[576a230]191 <sect2 role="content">
192 <title>Contents</title>
[48b7295]193
[576a230]194 <segmentedlist>
195 <segtitle>Installed Program</segtitle>
196 <segtitle>Installed Libraries</segtitle>
197 <segtitle>Installed Directories</segtitle>
[d7ecaa6]198
[576a230]199 <seglistitem>
200 <seg>sdl-config</seg>
[66d82600]201 <seg>libSDL.so and libSDLmain.a</seg>
[576a230]202 <seg>/usr/include/SDL and /usr/share/doc/SDL-&sdl-version;</seg>
203 </seglistitem>
204 </segmentedlist>
[d7ecaa6]205
[576a230]206 <variablelist>
207 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
208 <?dbfo list-presentation="list"?>
209 <?dbhtml list-presentation="table"?>
[d7ecaa6]210
[576a230]211 <varlistentry id="sdl-config">
212 <term><command>sdl-config</command></term>
213 <listitem>
[2eeb8695]214 <para>
215 determines the compile and linker flags that should be used to
216 compile and link programs that use
[4c24eb0a]217 <filename class="libraryfile">libSDL</filename>
[2eeb8695]218 </para>
[576a230]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">
[4c24eb0a]226 <term><filename class="libraryfile">libSDL.so</filename></term>
[576a230]227 <listitem>
[2eeb8695]228 <para>
229 contains functions that provide low level access to audio,
230 keyboard, mouse, joystick, 3D hardware via OpenGL, and
[4c24eb0a]231 2D frame buffer across multiple platforms
[2eeb8695]232 </para>
[576a230]233 <indexterm zone="sdl libsdl">
[66d82600]234 <primary sortas="c-libsdl">libSDL.so</primary>
[576a230]235 </indexterm>
236 </listitem>
237 </varlistentry>
[d7ecaa6]238
[576a230]239 </variablelist>
[48b7295]240
[576a230]241 </sect2>
[f45b1953]242
243</sect1>
Note: See TracBrowser for help on using the repository browser.