source: multimedia/libdriv/sdl.xml

trunk
Last change on this file was a80c832, checked in by Xi Ruoyao <xry111@…>, 23 hours ago

treewide: Simplify GitHub archive URL by removing redundant "refs/tags/"

The "refs/tags/" component is only useful when a tag shares its name
with a branch. Any rational upstream maintainer shall not create such
a namesis.

I've verified all the changes does not affect the md5sum of download
files.

  • Property mode set to 100644
File size: 5.6 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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://github.com/libsdl-org/sdl12-compat/archive/release-&sdl-version;/sdl12-compat-release-&sdl-version;.tar.gz">
8 <!ENTITY sdl-download-ftp " ">
9 <!ENTITY sdl-md5sum "04ed17494dad2131b37e0300f8af31ec">
10 <!ENTITY sdl-size "452 KB">
11 <!ENTITY sdl-buildsize "7.1 MB">
12 <!ENTITY sdl-time "less than 0.1 SBU">
13]>
14
15<sect1 id="sdl" xreflabel="sdl12-compat-&sdl-version;">
16 <?dbhtml filename="sdl.html"?>
17
18
19 <title>sdl12-compat-&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 sdl12-compat</title>
27
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. This code is a
32 compatibility layer; it provides a binary and source compatible API
33 for programs written against SDL 1.2, but it uses SDL 2.0 behind the scenes.
34 </para>
35
36 &lfs121_checked;
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>
42 Download (HTTP): <ulink url="&sdl-download-http;"/>
43 </para>
44 </listitem>
45 <listitem>
46 <para>
47 Download (FTP): <ulink url="&sdl-download-ftp;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download MD5 sum: &sdl-md5sum;
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download size: &sdl-size;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Estimated disk space required: &sdl-buildsize;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated build time: &sdl-time;
68 </para>
69 </listitem>
70 </itemizedlist>
71
72 <bridgehead renderas="sect3">SDL Dependencies</bridgehead>
73
74 <bridgehead renderas="sect4">Required</bridgehead>
75 <para role="required">
76 <xref linkend="cmake"/>,
77 <xref linkend="glu"/>, and
78 <xref linkend="sdl2"/>
79 </para>
80 </sect2>
81
82 <sect2 role="installation">
83 <title>Installation of sdl12-compat</title>
84
85 <para>
86 Install <application>sdl12-compat</application> by running the
87 following commands:
88 </para>
89
90<screen><userinput>mkdir build &amp;&amp;
91cd build &amp;&amp;
92
93cmake -DCMAKE_INSTALL_PREFIX=/usr \
94 -DCMAKE_BUILD_TYPE=RELEASE \
95 .. &amp;&amp;
96make</userinput></screen>
97
98 <para>
99 Now, as the <systemitem class="username">root</systemitem> user:
100 </para>
101
102<screen role="root"><userinput>make install &amp;&amp;
103rm -vf /usr/lib/libSDLmain.a</userinput></screen>
104
105 </sect2>
106
107 <sect2 role="testing">
108 <title>Testing SDL</title>
109
110 <para>
111 If you wish, test the <application>sdlcompat</application> package
112 using the included test programs. It is not required to install any of
113 the resulting binaries to validate the installation.
114 </para>
115
116 <para>
117 You'll need to manually run all the test programs (they are listed in
118 the <filename>README</filename> file in this directory). Many of them
119 will need to be manually killed, and you'll need to turn your speakers
120 on with the volume at a suitable level.
121 </para>
122
123 </sect2>
124<!--
125 <sect2 role="commands">
126 <title>Command Explanations</title>
127
128 <para>
129 <option>- -disable-x11-shared</option>: This switch disables
130 dynamically loading X11 shared libraries.
131 </para>
132
133 </sect2>
134-->
135<!--
136 <sect2 role="configuration">
137 <title>Configuring SDL</title>
138
139 <sect3>
140 <title>Configuration Information</title>
141
142 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
143 href="../../xincludes/lib-config.xml"/>
144
145 </sect3>
146
147 </sect2>
148-->
149 <sect2 role="content">
150 <title>Contents</title>
151
152 <segmentedlist>
153 <segtitle>Installed Program</segtitle>
154 <segtitle>Installed Libraries</segtitle>
155 <segtitle>Installed Directories</segtitle>
156
157 <seglistitem>
158 <seg>sdl-config</seg>
159 <seg>libSDL.so</seg>
160 <seg>/usr/include/SDL</seg>
161 </seglistitem>
162 </segmentedlist>
163
164 <variablelist>
165 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
166 <?dbfo list-presentation="list"?>
167 <?dbhtml list-presentation="table"?>
168
169 <varlistentry id="sdl-config">
170 <term><command>sdl-config</command></term>
171 <listitem>
172 <para>
173 determines the compile and linker flags that should be used to
174 compile and link programs that use
175 <filename class="libraryfile">libSDL</filename>
176 </para>
177 <indexterm zone="sdl sdl-config">
178 <primary sortas="b-sdl-config">sdl-config</primary>
179 </indexterm>
180 </listitem>
181 </varlistentry>
182
183 <varlistentry id="libsdl">
184 <term><filename class="libraryfile">libSDL.so</filename></term>
185 <listitem>
186 <para>
187 contains functions that provide compatibility links to SDL2
188 low level functions for audio,
189 keyboard, mouse, joystick, 3D hardware via OpenGL, and
190 2D frame buffer across multiple platforms
191 </para>
192 <indexterm zone="sdl libsdl">
193 <primary sortas="c-libsdl">libSDL.so</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 </variablelist>
199
200 </sect2>
201
202</sect1>
Note: See TracBrowser for help on using the repository browser.