glfs/multimedia/libdriv/sdl.xml
Randy McMurchy 530facd98a Updated SDL gcc34 patch
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2716 af4574ff-66df-0310-9fd7-8a98e5e911e0
2004-09-06 04:15:20 +00:00

123 lines
3.8 KiB
XML

<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY SDL-download-http "http://www.libsdl.org/release/SDL-&SDL-version;.tar.gz">
<!ENTITY SDL-download-ftp " ">
<!ENTITY SDL-size "2.4 MB">
<!ENTITY SDL-buildsize "46 MB">
<!ENTITY SDL-time "0.99 SBU">
]>
<sect1 id="SDL" xreflabel="SDL-&SDL-version;">
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<?dbhtml filename="sdl.html"?>
<title>SDL-&SDL-version;</title>
<sect2>
<title>Introduction to <application><acronym>SDL</acronym></application></title>
<para>The Simple DirectMedia Layer
(<application><acronym>SDL</acronym></application> for short) is a
cross-platform library designed to make it easy to write multimedia software,
such as games and emulators.</para>
<sect3><title>Package information</title>
<itemizedlist spacing='compact'>
<listitem><para>Download (HTTP): <ulink url="&SDL-download-http;"/></para></listitem>
<listitem><para>Download (FTP): <ulink url="&SDL-download-ftp;"/></para></listitem>
<listitem><para>Download size: &SDL-size;</para></listitem>
<listitem><para>Estimated Disk space required: &SDL-buildsize;</para></listitem>
<listitem><para>Estimated build time: &SDL-time;</para></listitem></itemizedlist>
</sect3>
<sect3><title>Additional downloads</title>
<itemizedlist spacing='compact'>
<listitem><para>Required Patch (if compiled using
<application>GCC</application>-3.4.x):
<ulink url="&patch-root;/SDL-&SDL-version;-gcc34-2.patch"/></para>
</listitem>
</itemizedlist></sect3>
<sect3><title><application><acronym>SDL</acronym></application>
dependencies</title>
<sect4><title>Optional</title>
<para>
<xref linkend="alsa"/>,
<xref linkend="esound"/>,
<xref linkend="arts"/>,
<xref linkend="nas"/>,
<xref linkend="NASM"/>,
X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
<xref linkend="aalib"/>,
<xref linkend="DirectFB"/>,
<xref linkend="SVGAlib"/>,
<ulink url="http://www.gnu.org/software/pth/">GNU Pth</ulink>,
<ulink url="http://www.trolltech.com/download/qtopia/">Qtopia</ulink> and
<ulink url="http://picogui.org/">PicoGUI</ulink>
</para></sect4>
</sect3>
</sect2>
<sect2>
<title>Installation of <application><acronym>SDL</acronym></application></title>
<para>Install <application><acronym>SDL</acronym></application> by running the
following commands:</para>
<screen><userinput><command>patch -Np1 -i ../SDL-&SDL-version;-gcc34-2.patch &amp;&amp;
./configure --prefix=/usr --disable-debug &amp;&amp;
make &amp;&amp;
make install</command></userinput></screen>
</sect2>
<sect2>
<title>Command explanations</title>
<para><option>--disable-debug</option>: This switch configures
<application><acronym>SDL</acronym></application> to build with aggressive
optimizations.</para>
<para><option>--enable-video-aalib</option>: This switch
is required to build <application><acronym>SDL</acronym></application>
with <acronym>AA</acronym>lib video support.</para>
</sect2>
<sect2>
<title>Configuring <application><acronym>SDL</acronym></application></title>
<sect3><title>Configuration Information</title>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../lib-config.xml"/>
</sect3>
</sect2>
<sect2>
<title>Contents</title>
<para>The <application><acronym>SDL</acronym></application> package contains
the <userinput>Simple DirectMedia Layer</userinput> libraries.</para>
</sect2>
<sect2><title>Description</title>
<sect3><title>Simple DirectMedia Layer</title>
<para>The Simple DirectMedia Layer is a generic <acronym>API</acronym> that
provides low level access to audio, keyboard, mouse, joystick,
<acronym>3D</acronym> hardware via OpenGL, and <acronym>2D</acronym> frame
buffer across multiple platforms.</para></sect3>
</sect2>
</sect1>