[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 " ">
|
---|
[320b871] | 9 | <!ENTITY sdl-md5sum "c0ca71db831525dda0d676920c729023">
|
---|
| 10 | <!ENTITY sdl-size "452 KB">
|
---|
| 11 | <!ENTITY sdl-buildsize "6.9 MB">
|
---|
[676ee3a7] | 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">
|
---|
[973ea7c] | 76 | <xref linkend="cmake"/>,
|
---|
| 77 | <xref linkend="glu"/>, and
|
---|
[676ee3a7] | 78 | <xref linkend="sdl2"/>
|
---|
[f7a7e27] | 79 | </para>
|
---|
[676ee3a7] | 80 | <!--
|
---|
[0e2aa08] | 81 | <para condition="html" role="usernotes">User Notes:
|
---|
| 82 | <ulink url="&blfs-wiki;/sdl"/></para>
|
---|
[676ee3a7] | 83 | -->
|
---|
[576a230] | 84 | </sect2>
|
---|
| 85 |
|
---|
| 86 | <sect2 role="installation">
|
---|
[676ee3a7] | 87 | <title>Installation of sdl12-compat</title>
|
---|
[576a230] | 88 |
|
---|
[2eeb8695] | 89 | <para>
|
---|
[676ee3a7] | 90 | Install <application>sdl12-compat</application> by running the
|
---|
[2eeb8695] | 91 | following commands:
|
---|
| 92 | </para>
|
---|
[576a230] | 93 |
|
---|
[676ee3a7] | 94 | <screen><userinput>mkdir build &&
|
---|
| 95 | cd build &&
|
---|
[cf67717] | 96 |
|
---|
[676ee3a7] | 97 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 98 | -DCMAKE_BUILD_TYPE=RELEASE \
|
---|
| 99 | .. &&
|
---|
[576a230] | 100 | make</userinput></screen>
|
---|
| 101 |
|
---|
[2eeb8695] | 102 | <para>
|
---|
| 103 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 104 | </para>
|
---|
[576a230] | 105 |
|
---|
| 106 | <screen role="root"><userinput>make install &&
|
---|
[676ee3a7] | 107 | rm -vf /usr/lib/libSDLmain.a</userinput></screen>
|
---|
[48b7295] | 108 |
|
---|
[576a230] | 109 | </sect2>
|
---|
[48b7295] | 110 |
|
---|
[4f2f35c6] | 111 | <sect2 role="testing">
|
---|
| 112 | <title>Testing SDL</title>
|
---|
[48b7295] | 113 |
|
---|
[2eeb8695] | 114 | <para>
|
---|
[676ee3a7] | 115 | If you wish, test the <application>sdlcompat</application> package
|
---|
[2eeb8695] | 116 | using the included test programs. It is not required to install any of
|
---|
[676ee3a7] | 117 | the resulting binaries to validate the installation.
|
---|
[2eeb8695] | 118 | </para>
|
---|
[48c17bf2] | 119 |
|
---|
[2eeb8695] | 120 | <para>
|
---|
| 121 | You'll need to manually run all the test programs (they are listed in
|
---|
| 122 | the <filename>README</filename> file in this directory). Many of them
|
---|
| 123 | will need to be manually killed, and you'll need to turn your speakers
|
---|
| 124 | on with the volume at a suitable level.
|
---|
| 125 | </para>
|
---|
[5886225] | 126 |
|
---|
| 127 | </sect2>
|
---|
[676ee3a7] | 128 | <!--
|
---|
[5886225] | 129 | <sect2 role="commands">
|
---|
| 130 | <title>Command Explanations</title>
|
---|
| 131 |
|
---|
[2eeb8695] | 132 | <para>
|
---|
[676ee3a7] | 133 | <option>- -disable-x11-shared</option>: This switch disables
|
---|
[2eeb8695] | 134 | dynamically loading X11 shared libraries.
|
---|
| 135 | </para>
|
---|
[9eebf97] | 136 |
|
---|
[576a230] | 137 | </sect2>
|
---|
[676ee3a7] | 138 | -->
|
---|
| 139 | <!--
|
---|
[576a230] | 140 | <sect2 role="configuration">
|
---|
| 141 | <title>Configuring SDL</title>
|
---|
| 142 |
|
---|
| 143 | <sect3>
|
---|
| 144 | <title>Configuration Information</title>
|
---|
[48c17bf2] | 145 |
|
---|
[e05cd03f] | 146 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[ebabf24] | 147 | href="../../xincludes/lib-config.xml"/>
|
---|
[48b7295] | 148 |
|
---|
[576a230] | 149 | </sect3>
|
---|
[48b7295] | 150 |
|
---|
[576a230] | 151 | </sect2>
|
---|
[676ee3a7] | 152 | -->
|
---|
[576a230] | 153 | <sect2 role="content">
|
---|
| 154 | <title>Contents</title>
|
---|
[48b7295] | 155 |
|
---|
[576a230] | 156 | <segmentedlist>
|
---|
| 157 | <segtitle>Installed Program</segtitle>
|
---|
| 158 | <segtitle>Installed Libraries</segtitle>
|
---|
| 159 | <segtitle>Installed Directories</segtitle>
|
---|
[d7ecaa6] | 160 |
|
---|
[576a230] | 161 | <seglistitem>
|
---|
| 162 | <seg>sdl-config</seg>
|
---|
[676ee3a7] | 163 | <seg>libSDL.so</seg>
|
---|
| 164 | <seg>/usr/include/SDL</seg>
|
---|
[576a230] | 165 | </seglistitem>
|
---|
| 166 | </segmentedlist>
|
---|
[d7ecaa6] | 167 |
|
---|
[576a230] | 168 | <variablelist>
|
---|
| 169 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 170 | <?dbfo list-presentation="list"?>
|
---|
| 171 | <?dbhtml list-presentation="table"?>
|
---|
[d7ecaa6] | 172 |
|
---|
[576a230] | 173 | <varlistentry id="sdl-config">
|
---|
| 174 | <term><command>sdl-config</command></term>
|
---|
| 175 | <listitem>
|
---|
[2eeb8695] | 176 | <para>
|
---|
| 177 | determines the compile and linker flags that should be used to
|
---|
| 178 | compile and link programs that use
|
---|
[4c24eb0a] | 179 | <filename class="libraryfile">libSDL</filename>
|
---|
[2eeb8695] | 180 | </para>
|
---|
[576a230] | 181 | <indexterm zone="sdl sdl-config">
|
---|
| 182 | <primary sortas="b-sdl-config">sdl-config</primary>
|
---|
| 183 | </indexterm>
|
---|
| 184 | </listitem>
|
---|
| 185 | </varlistentry>
|
---|
| 186 |
|
---|
| 187 | <varlistentry id="libsdl">
|
---|
[4c24eb0a] | 188 | <term><filename class="libraryfile">libSDL.so</filename></term>
|
---|
[576a230] | 189 | <listitem>
|
---|
[2eeb8695] | 190 | <para>
|
---|
[676ee3a7] | 191 | contains functions that provide compatibility links to SDL2
|
---|
| 192 | low level functions for audio,
|
---|
[2eeb8695] | 193 | keyboard, mouse, joystick, 3D hardware via OpenGL, and
|
---|
[4c24eb0a] | 194 | 2D frame buffer across multiple platforms
|
---|
[2eeb8695] | 195 | </para>
|
---|
[576a230] | 196 | <indexterm zone="sdl libsdl">
|
---|
[66d82600] | 197 | <primary sortas="c-libsdl">libSDL.so</primary>
|
---|
[576a230] | 198 | </indexterm>
|
---|
| 199 | </listitem>
|
---|
| 200 | </varlistentry>
|
---|
[d7ecaa6] | 201 |
|
---|
[576a230] | 202 | </variablelist>
|
---|
[48b7295] | 203 |
|
---|
[576a230] | 204 | </sect2>
|
---|
[f45b1953] | 205 |
|
---|
| 206 | </sect1>
|
---|