[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 |
|
---|
[68ad918] | 7 | <!ENTITY sdl-download-http "http://www.libsdl.org/release/SDL-&sdl-version;.tar.gz">
|
---|
| 8 | <!ENTITY sdl-download-ftp " ">
|
---|
[5886225] | 9 | <!ENTITY sdl-md5sum "c6660feea2a6834de10bc71b2f8e4d88">
|
---|
| 10 | <!ENTITY sdl-size "3.2 MB">
|
---|
| 11 | <!ENTITY sdl-buildsize "32 MB (extra 1MB for the tests)">
|
---|
| 12 | <!ENTITY sdl-time "0.7 SBU (without the tests)">
|
---|
[48b7295] | 13 | ]>
|
---|
[4a21942] | 14 |
|
---|
[68ad918] | 15 | <sect1 id="sdl" xreflabel="SDL-&sdl-version;">
|
---|
[576a230] | 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 |
|
---|
[d7ecaa6] | 32 | <para>The Simple DirectMedia Layer (<application>SDL</application>
|
---|
[50b692d] | 33 | for short) is a cross-platform library designed to make it easy to write
|
---|
[576a230] | 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 |
|
---|
[93d50f5] | 58 | <bridgehead renderas="sect3">SDL Dependencies</bridgehead>
|
---|
[576a230] | 59 |
|
---|
| 60 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[a747b3c] | 61 | <para role="optional"><xref linkend="alsa"/>,
|
---|
[576a230] | 62 | <xref linkend="esound"/>,
|
---|
| 63 | <xref linkend="arts"/>,
|
---|
| 64 | <xref linkend="nas"/>,
|
---|
[50b692d] | 65 | <xref linkend="NASM"/>,
|
---|
[e77976f] | 66 | <xref linkend="x-window-system"/>,
|
---|
[576a230] | 67 | <xref linkend="aalib"/>,
|
---|
[50b692d] | 68 | <ulink url="http://www.directfb.org/">DirectFB</ulink>,
|
---|
| 69 | <ulink url="http://www.svgalib.org/">SVGAlib</ulink>,
|
---|
[5886225] | 70 | <xref linkend="pth"/>,
|
---|
| 71 | <ulink url="http://picogui.org/">PicoGUI</ulink>, and
|
---|
| 72 | <ulink url="http://pulseaudio.org">PulseAudio</ulink></para>
|
---|
[576a230] | 73 |
|
---|
[0e2aa08] | 74 | <para condition="html" role="usernotes">User Notes:
|
---|
| 75 | <ulink url="&blfs-wiki;/sdl"/></para>
|
---|
| 76 |
|
---|
[576a230] | 77 | </sect2>
|
---|
| 78 |
|
---|
| 79 | <sect2 role="installation">
|
---|
| 80 | <title>Installation of SDL</title>
|
---|
| 81 |
|
---|
[71cd2a5a] | 82 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 83 | href="../../xincludes/X11R6_symlink.xml"/>
|
---|
| 84 |
|
---|
| 85 | <!-- <para>If your <application>X Window System</application> is installed into
|
---|
[864b24de] | 86 | any prefix other than <filename class="directory">/usr/X11R6</filename>,
|
---|
| 87 | execute the following command, replacing
|
---|
| 88 | <replaceable><PREFIX></replaceable> with the installation prefix of
|
---|
[ca76bec] | 89 | the <application>X Window System</application>:</para>
|
---|
| 90 |
|
---|
[71cd2a5a] | 91 | <screen><userinput>sed -i 's:/usr/X11R6:<replaceable><PREFIX></replaceable>:' configure</userinput></screen> -->
|
---|
[ca76bec] | 92 |
|
---|
[50b692d] | 93 | <para>Install <application>SDL</application> by running the
|
---|
[576a230] | 94 | following commands:</para>
|
---|
| 95 |
|
---|
[f2bb5a0] | 96 | <screen><userinput>./configure --prefix=/usr &&
|
---|
[576a230] | 97 | make</userinput></screen>
|
---|
| 98 |
|
---|
| 99 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 100 |
|
---|
| 101 | <screen role="root"><userinput>make install &&
|
---|
[932b7e2] | 102 | install -v -m755 -d /usr/share/doc/SDL-&sdl-version;/html &&
|
---|
| 103 | install -v -m644 docs/html/*.html /usr/share/doc/SDL-&sdl-version;/html</userinput></screen>
|
---|
[48b7295] | 104 |
|
---|
[576a230] | 105 | </sect2>
|
---|
[48b7295] | 106 |
|
---|
[4f2f35c6] | 107 | <sect2 role="testing">
|
---|
| 108 | <title>Testing SDL</title>
|
---|
[48b7295] | 109 |
|
---|
[5886225] | 110 | <para>If you wish to, test the installation of
|
---|
[4f2f35c6] | 111 | <application>SDL</application> using the included
|
---|
| 112 | test programs. It is not required to install any of the resulting binaries
|
---|
| 113 | to validate the installation. Issue the following commands to build the
|
---|
| 114 | test programs:</para>
|
---|
[48c17bf2] | 115 |
|
---|
[576a230] | 116 | <screen><userinput>cd test &&
|
---|
[48c17bf2] | 117 | ./configure &&
|
---|
[576a230] | 118 | make</userinput></screen>
|
---|
[48c17bf2] | 119 |
|
---|
[5886225] | 120 | <para>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 will
|
---|
| 122 | need to be manually killed, and you'll need to turn your speakers on with the
|
---|
| 123 | volume at a suitable level.</para>
|
---|
| 124 |
|
---|
| 125 | </sect2>
|
---|
| 126 |
|
---|
| 127 | <sect2 role="commands">
|
---|
| 128 | <title>Command Explanations</title>
|
---|
| 129 |
|
---|
| 130 | <para><parameter>--disable-static</parameter>: prevent static libraries
|
---|
| 131 | being built and installed.</para>
|
---|
[576a230] | 132 |
|
---|
| 133 | </sect2>
|
---|
| 134 |
|
---|
| 135 | <sect2 role="configuration">
|
---|
| 136 | <title>Configuring SDL</title>
|
---|
| 137 |
|
---|
| 138 | <sect3>
|
---|
| 139 | <title>Configuration Information</title>
|
---|
[48c17bf2] | 140 |
|
---|
[ebabf24] | 141 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 142 | href="../../xincludes/lib-config.xml"/>
|
---|
[48b7295] | 143 |
|
---|
[576a230] | 144 | </sect3>
|
---|
[48b7295] | 145 |
|
---|
[576a230] | 146 | </sect2>
|
---|
[48b7295] | 147 |
|
---|
[576a230] | 148 | <sect2 role="content">
|
---|
| 149 | <title>Contents</title>
|
---|
[48b7295] | 150 |
|
---|
[576a230] | 151 | <segmentedlist>
|
---|
| 152 | <segtitle>Installed Program</segtitle>
|
---|
| 153 | <segtitle>Installed Libraries</segtitle>
|
---|
| 154 | <segtitle>Installed Directories</segtitle>
|
---|
[d7ecaa6] | 155 |
|
---|
[576a230] | 156 | <seglistitem>
|
---|
| 157 | <seg>sdl-config</seg>
|
---|
[0e2aa08] | 158 | <seg>libSDL*.{so,a}</seg>
|
---|
[576a230] | 159 | <seg>/usr/include/SDL and /usr/share/doc/SDL-&sdl-version;</seg>
|
---|
| 160 | </seglistitem>
|
---|
| 161 | </segmentedlist>
|
---|
[d7ecaa6] | 162 |
|
---|
[576a230] | 163 | <variablelist>
|
---|
| 164 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 165 | <?dbfo list-presentation="list"?>
|
---|
| 166 | <?dbhtml list-presentation="table"?>
|
---|
[d7ecaa6] | 167 |
|
---|
[576a230] | 168 | <varlistentry id="sdl-config">
|
---|
| 169 | <term><command>sdl-config</command></term>
|
---|
| 170 | <listitem>
|
---|
[50b692d] | 171 | <para>determines the compile and linker flags that should be used to
|
---|
| 172 | compile and link programs that use
|
---|
[576a230] | 173 | <filename class='libraryfile'>libSDL</filename>.</para>
|
---|
| 174 | <indexterm zone="sdl sdl-config">
|
---|
| 175 | <primary sortas="b-sdl-config">sdl-config</primary>
|
---|
| 176 | </indexterm>
|
---|
| 177 | </listitem>
|
---|
| 178 | </varlistentry>
|
---|
| 179 |
|
---|
| 180 | <varlistentry id="libsdl">
|
---|
[0e2aa08] | 181 | <term><filename class='libraryfile'>libSDL*.{so,a}</filename></term>
|
---|
[576a230] | 182 | <listitem>
|
---|
| 183 | <para> libraries provide low level access to audio, keyboard, mouse,
|
---|
| 184 | joystick, 3D hardware via OpenGL, and
|
---|
| 185 | 2D frame buffer across multiple platforms.</para>
|
---|
| 186 | <indexterm zone="sdl libsdl">
|
---|
[0e2aa08] | 187 | <primary sortas="c-libsdl">libSDL*.{so,a}</primary>
|
---|
[576a230] | 188 | </indexterm>
|
---|
| 189 | </listitem>
|
---|
| 190 | </varlistentry>
|
---|
[d7ecaa6] | 191 |
|
---|
[576a230] | 192 | </variablelist>
|
---|
[48b7295] | 193 |
|
---|
[576a230] | 194 | </sect2>
|
---|
[f45b1953] | 195 |
|
---|
| 196 | </sect1>
|
---|