source: multimedia/libdriv/sdl.xml@ bce49fc

12.0 12.1 12.2 gimp3 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 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 bce49fc was 676ee3a7, checked in by Bruce Dubbs <bdubbs@…>, 17 months ago

Change SDL-1.2 to sdl12-compat-release-1.2.60.

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