Index: multimedia/libdriv/sdl.xml
===================================================================
--- multimedia/libdriv/sdl.xml	(revision e9df36bdc3718790ae02680a7ff7fa8b4c4dbd93)
+++ multimedia/libdriv/sdl.xml	(revision 676ee3a73a15160605a90af745092b84401978b1)
@@ -5,17 +5,17 @@
   %general-entities;
 
-  <!ENTITY sdl-download-http "&sources-anduin-http;/sdl/SDL-&sdl-version;.tar.gz">
+  <!ENTITY sdl-download-http "https://github.com/libsdl-org/sdl12-compat/archive/refs/tags/release-&sdl-version;/sdl12-compat-release-&sdl-version;.tar.gz">
   <!ENTITY sdl-download-ftp  " ">
-  <!ENTITY sdl-md5sum        "9d96df8417572a2afb781a7c4c811a85">
-  <!ENTITY sdl-size          "3.8 MB">
-  <!ENTITY sdl-buildsize     "40 MB">
-  <!ENTITY sdl-time          "0.6 SBU">
+  <!ENTITY sdl-md5sum        "a539a4a3ceb3d09b7bf312d96210443c">
+  <!ENTITY sdl-size          "432 KB">
+  <!ENTITY sdl-buildsize     "6.8 MB">
+  <!ENTITY sdl-time          "less than 0.1 SBU">
 ]>
 
-<sect1 id="sdl" xreflabel="SDL-&sdl-version;">
+<sect1 id="sdl" xreflabel="sdl12-compat-&sdl-version;">
   <?dbhtml filename="sdl.html"?>
 
 
-  <title>SDL-&sdl-version;</title>
+  <title>sdl12-compat-&sdl-version;</title>
 
   <indexterm zone="sdl">
@@ -24,10 +24,12 @@
 
   <sect2 role="package">
-    <title>Introduction to SDL</title>
+    <title>Introduction to sdl12-compat</title>
 
     <para>
       The Simple DirectMedia Layer (<application>SDL</application>
       for short) is a cross-platform library designed to make it easy to write
-      multimedia software, such as games and emulators.
+      multimedia software, such as games and emulators.  This code is a 
+      compatibility layer; it provides a binary and source compatible API 
+      for programs written against SDL 1.2, but it uses SDL 2.0 behind the scenes.
     </para>
 
@@ -70,44 +72,29 @@
     <bridgehead renderas="sect3">SDL Dependencies</bridgehead>
 
-    <bridgehead renderas="sect4">Recommended</bridgehead>
-    <para role="recommended">
-      <xref linkend="xorg7-lib"/> (if they are not present, the corresponding
-      modules are not built)
-    </para>
-
-    <bridgehead renderas="sect4">Optional</bridgehead>
-    <para role="optional">
-      <xref linkend="aalib"/>,
-      <xref linkend="alsa"/>,
-      <xref linkend="glu"/>,
-      <xref linkend="nasm"/>,
-      <xref linkend="pulseaudio"/>,
-      <xref linkend="pth"/>,
-      <xref linkend="x-window-system"/>,
-      <ulink url="https://pkgs.fedoraproject.org/repo/pkgs/directfb/">DirectFB</ulink>,
-      <ulink url="https://ibiblio.org/ggicore/">GGI</ulink>,
-      <ulink url="https://github.com/cacalabs/libcaca">libcaca</ulink>,
-      <ulink url="http://picogui.org/">PicoGUI</ulink>, and
-      <ulink url="https://www.svgalib.org/">SVGAlib</ulink>
-    </para>
-
+    <bridgehead renderas="sect4">Required</bridgehead>
+    <para role="required">
+      <xref linkend="cmake"/> and
+      <xref linkend="sdl2"/>
+    </para>
+<!--
     <para condition="html" role="usernotes">User Notes:
     <ulink url="&blfs-wiki;/sdl"/></para>
-
+-->
   </sect2>
 
   <sect2 role="installation">
-    <title>Installation of SDL</title>
-
-    <para>
-      Install <application>SDL</application> by running the
+    <title>Installation of sdl12-compat</title>
+
+    <para>
+      Install <application>sdl12-compat</application> by running the
       following commands:
     </para>
 
-<screen><userinput>sed -e '/_XData32/s:register long:register _Xconst long:' \
-    -i src/video/x11/SDL_x11sym.h &amp;&amp;
-
-./configure --prefix=/usr --disable-static &amp;&amp;
-
+<screen><userinput>mkdir build &amp;&amp;
+cd    build &amp;&amp;
+
+cmake -DCMAKE_INSTALL_PREFIX=/usr \
+      -DCMAKE_BUILD_TYPE=RELEASE  \
+      ..  &amp;&amp;
 make</userinput></screen>
 
@@ -117,8 +104,5 @@
 
 <screen role="root"><userinput>make install &amp;&amp;
-
-install -v -m755 -d /usr/share/doc/SDL-&sdl-version;/html &amp;&amp;
-install -v -m644    docs/html/*.html \
-                    /usr/share/doc/SDL-&sdl-version;/html</userinput></screen>
+rm -vf /usr/lib/libSDLmain.a</userinput></screen>
 
   </sect2>
@@ -128,13 +112,8 @@
 
     <para>
-      If you wish to, test the installation of <application>SDL</application>
+      If you wish, test the <application>sdlcompat</application> package
       using the included test programs. It is not required to install any of
-      the resulting binaries to validate the installation. Issue the following
-      commands to build the test programs:
-    </para>
-
-<screen remap="test"><userinput>cd test &amp;&amp;
-./configure &amp;&amp;
-make</userinput></screen>
+      the resulting binaries to validate the installation. 
+    </para>
 
     <para>
@@ -146,34 +125,16 @@
 
   </sect2>
-
+<!--
   <sect2 role="commands">
     <title>Command Explanations</title>
 
     <para>
-      <command>sed -e ...</command>: This command fixes compilation with
-      libX11-1.6.0 and later.
-    </para>
-
-    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
-      href="../../xincludes/static-libraries.xml"/>
-
-    <para>
-      <option>--disable-alsa-shared</option>: This switch disables
-      dynamically loading ALSA shared libraries.
-    </para>
-
-    <para>
-      <option>--disable-sdl-dlopen</option>: This switch disables using
-      dlopen for shared object loading. Loading image backend libraries like
-      libpng dynamically on the fly does not work.
-    </para>
-
-    <para>
-      <option>--disable-x11-shared</option>: This switch disables
+      <option>- -disable-x11-shared</option>: This switch disables
       dynamically loading X11 shared libraries.
     </para>
 
   </sect2>
-
+-->
+<!--
   <sect2 role="configuration">
     <title>Configuring SDL</title>
@@ -188,5 +149,5 @@
 
   </sect2>
-
+-->
   <sect2 role="content">
     <title>Contents</title>
@@ -199,6 +160,6 @@
       <seglistitem>
         <seg>sdl-config</seg>
-        <seg>libSDL.so and libSDLmain.a</seg>
-        <seg>/usr/include/SDL and /usr/share/doc/SDL-&sdl-version;</seg>
+        <seg>libSDL.so</seg>
+        <seg>/usr/include/SDL</seg>
       </seglistitem>
     </segmentedlist>
@@ -227,5 +188,6 @@
         <listitem>
           <para>
-            contains functions that provide low level access to audio,
+            contains functions that provide compatibility links to SDL2
+            low level functions for audio,
             keyboard, mouse, joystick, 3D hardware via OpenGL, and
             2D frame buffer across multiple platforms
