source: multimedia/libdriv/sdl.xml@ 3988b2b

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 3988b2b was 3988b2b, checked in by Randy McMurchy <randy@…>, 19 years ago

Added a GCC-4 patch to the SDL instructions

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

  • Property mode set to 100644
File size: 6.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY sdl-download-http "http://www.libsdl.org/release/SDL-&sdl-version;.tar.gz">
8 <!ENTITY sdl-download-ftp " ">
9 <!ENTITY sdl-md5sum "37aaf9f069f9c2c18856022f35de9f8c">
10 <!ENTITY sdl-size "2.6 MB">
11 <!ENTITY sdl-buildsize "36 MB">
12 <!ENTITY sdl-time "0.8 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>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.</para>
35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>Download (HTTP): <ulink url="&sdl-download-http;"/></para>
40 </listitem>
41 <listitem>
42 <para>Download (FTP): <ulink url="&sdl-download-ftp;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download MD5 sum: &sdl-md5sum;</para>
46 </listitem>
47 <listitem>
48 <para>Download size: &sdl-size;</para>
49 </listitem>
50 <listitem>
51 <para>Estimated disk space required: &sdl-buildsize;</para>
52 </listitem>
53 <listitem>
54 <para>Estimated build time: &sdl-time;</para>
55 </listitem>
56 </itemizedlist>
57
58 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
59 <itemizedlist spacing="compact">
60 <listitem>
61 <para>Required patch: <ulink
62 url="&patch-root;/SDL-&sdl-version;-gcc4-1.patch"/></para>
63 </listitem>
64 </itemizedlist>
65
66 <bridgehead renderas="sect3">SDL Dependencies</bridgehead>
67
68 <bridgehead renderas="sect4">Optional</bridgehead>
69 <para><xref linkend="alsa"/>,
70 <xref linkend="esound"/>,
71 <xref linkend="arts"/>,
72 <xref linkend="nas"/>,
73 <xref linkend="NASM"/>,
74 X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
75 <xref linkend="aalib"/>,
76 <ulink url="http://www.directfb.org/">DirectFB</ulink>,
77 <ulink url="http://www.svgalib.org/">SVGAlib</ulink>,
78 <ulink url="http://www.gnu.org/software/pth/">GNU Pth</ulink>,
79 <ulink url="http://www.trolltech.com/download/qtopia/">Qtopia</ulink> and
80 <ulink url="http://picogui.org/">PicoGUI</ulink></para>
81
82 </sect2>
83
84 <sect2 role="installation">
85 <title>Installation of SDL</title>
86
87 <para>Install <application>SDL</application> by running the
88 following commands:</para>
89
90<screen><userinput>patch -Np1 -i ../SDL-&sdl-version;-gcc4-1.patch &amp;&amp;
91./configure --prefix=/usr --disable-debug &amp;&amp;
92make</userinput></screen>
93
94 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
95
96<screen role="root"><userinput>make install &amp;&amp;
97install -v -m755 -d /usr/share/doc/SDL-1.2.8/html &amp;&amp;
98install -v -m644 docs/html/*.html /usr/share/doc/SDL-1.2.8/html</userinput></screen>
99
100 </sect2>
101
102 <sect2 role="commands">
103 <title>Command Explanations</title>
104
105 <para><parameter>--disable-debug</parameter>: This switch configures
106 <application>SDL</application> to build with aggressive
107 optimizations.</para>
108
109 <para><option>--enable-video-aalib</option>: This switch
110 is required to build <application>SDL</application>
111 with AAlib video support.</para>
112
113 </sect2>
114
115 <sect2 role="testing">
116 <title>Testing SDL</title>
117
118 <para>It is advisable to test the installation of
119 <application>SDL</application> using the included
120 test programs. It is not required to install any of the resulting binaries
121 to validate the installation. Issue the following commands to build the
122 test programs:</para>
123
124<screen><userinput>cd test &amp;&amp;
125./configure &amp;&amp;
126make</userinput></screen>
127
128 <para>You'll need to manually run all the test programs.</para>
129
130 </sect2>
131
132 <sect2 role="configuration">
133 <title>Configuring SDL</title>
134
135 <sect3>
136 <title>Configuration Information</title>
137
138 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../lib-config.xml"/>
139
140 </sect3>
141
142 </sect2>
143
144 <sect2 role="content">
145 <title>Contents</title>
146
147 <segmentedlist>
148 <segtitle>Installed Program</segtitle>
149 <segtitle>Installed Libraries</segtitle>
150 <segtitle>Installed Directories</segtitle>
151
152 <seglistitem>
153 <seg>sdl-config</seg>
154 <seg>libSDL*.[so,a]</seg>
155 <seg>/usr/include/SDL and /usr/share/doc/SDL-&sdl-version;</seg>
156 </seglistitem>
157 </segmentedlist>
158
159 <variablelist>
160 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
161 <?dbfo list-presentation="list"?>
162 <?dbhtml list-presentation="table"?>
163
164 <varlistentry id="sdl-config">
165 <term><command>sdl-config</command></term>
166 <listitem>
167 <para>determines the compile and linker flags that should be used to
168 compile and link programs that use
169 <filename class='libraryfile'>libSDL</filename>.</para>
170 <indexterm zone="sdl sdl-config">
171 <primary sortas="b-sdl-config">sdl-config</primary>
172 </indexterm>
173 </listitem>
174 </varlistentry>
175
176 <varlistentry id="libsdl">
177 <term><filename class='libraryfile'>libSDL*.[so,a]</filename></term>
178 <listitem>
179 <para> libraries provide low level access to audio, keyboard, mouse,
180 joystick, 3D hardware via OpenGL, and
181 2D frame buffer across multiple platforms.</para>
182 <indexterm zone="sdl libsdl">
183 <primary sortas="c-libsdl">libSDL*.[so,a]</primary>
184 </indexterm>
185 </listitem>
186 </varlistentry>
187
188 </variablelist>
189
190 </sect2>
191
192</sect1>
Note: See TracBrowser for help on using the repository browser.