Changeset 2eeb8695 for multimedia/libdriv/sdl2.xml
- Timestamp:
- 03/09/2020 03:02:12 PM (4 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 2aff70f
- Parents:
- 22618785
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
multimedia/libdriv/sdl2.xml
r22618785 r2eeb8695 30 30 <title>Introduction to SDL2</title> 31 31 32 <para>The Simple DirectMedia Layer Version 2 33 (<application>SDL2</application> for short) is a cross-platform library 34 designed to make it easy to write multimedia software, such as games and 35 emulators.</para> 32 <para> 33 The Simple DirectMedia Layer Version 2 (<application>SDL2</application> 34 for short) is a cross-platform library designed to make it easy to write 35 multimedia software, such as games and emulators. 36 </para> 36 37 37 38 &lfs91_checked; … … 40 41 <itemizedlist spacing="compact"> 41 42 <listitem> 42 <para>Download (HTTP): <ulink url="&sdl2-download-http;"/></para> 43 </listitem> 44 <listitem> 45 <para>Download (FTP): <ulink url="&sdl2-download-ftp;"/></para> 46 </listitem> 47 <listitem> 48 <para>Download MD5 sum: &sdl2-md5sum;</para> 49 </listitem> 50 <listitem> 51 <para>Download size: &sdl2-size;</para> 52 </listitem> 53 <listitem> 54 <para>Estimated disk space required: &sdl2-buildsize;</para> 55 </listitem> 56 <listitem> 57 <para>Estimated build time: &sdl2-time;</para> 43 <para> 44 Download (HTTP): <ulink url="&sdl2-download-http;"/> 45 </para> 46 </listitem> 47 <listitem> 48 <para> 49 Download (FTP): <ulink url="&sdl2-download-ftp;"/> 50 </para> 51 </listitem> 52 <listitem> 53 <para> 54 Download MD5 sum: &sdl2-md5sum; 55 </para> 56 </listitem> 57 <listitem> 58 <para> 59 Download size: &sdl2-size; 60 </para> 61 </listitem> 62 <listitem> 63 <para> 64 Estimated disk space required: &sdl2-buildsize; 65 </para> 66 </listitem> 67 <listitem> 68 <para> 69 Estimated build time: &sdl2-time; 70 </para> 58 71 </listitem> 59 72 </itemizedlist> … … 92 105 <title>Installation of SDL2</title> 93 106 94 <para>First, if you are building on a 32-bit i686 system, apply a patch 95 containing a fix for the OpenGL headers and their data types:</para> 107 <para> 108 First, if you are building on a 32-bit i686 system, apply a patch 109 containing a fix for the OpenGL headers and their data types: 110 </para> 96 111 97 112 <screen><userinput remap="pre">case $(uname -m) in … … 99 114 esac</userinput></screen> 100 115 101 <para>Install <application>SDL2</application> by running the 102 following commands:</para> 116 <para> 117 Install <application>SDL2</application> by running the 118 following commands: 119 </para> 103 120 104 121 <screen><userinput>./configure --prefix=/usr && … … 115 132 116 133 <note> 117 <para>If you wish to build and run the package regression 118 tests, do not delete the static libraries below until after 119 the tests are built.</para> 134 <para> 135 If you wish to build and run the package regression 136 tests, do not delete the static libraries below until after 137 the tests are built. 138 </para> 120 139 </note> 121 140 122 <para>Now, as the <systemitem class="username">root</systemitem> user:</para> 141 <para> 142 Now, as the <systemitem class="username">root</systemitem> user: 143 </para> 123 144 124 145 <screen role="root"><userinput>make install && 125 146 rm -v /usr/lib/libSDL2*.a</userinput></screen> 126 147 127 <para>If you built the documentation, install it as the <systemitem 128 class="username">root</systemitem> user:</para> 148 <para> 149 If you built the documentation, install it as the <systemitem 150 class="username">root</systemitem> user: 151 </para> 129 152 130 153 <screen role="root" … … 139 162 <title>Testing SDL2</title> 140 163 141 <para> If you wish to, test the installation of142 <application>SDL2</application> using the included143 test programs.144 None of the resulting binaries need to be installed.145 Issue the following commands to build the146 test programs:</para>164 <para> 165 If you wish to, test the installation of <application>SDL2</application> 166 using the included test programs. None of the resulting binaries need 167 to be installed. Issue the following commands to build the test 168 programs: 169 </para> 147 170 148 171 <screen><userinput>cd test && … … 150 173 make</userinput></screen> 151 174 152 <para>Each of the test programs (they are listed in the 153 <filename>README</filename> file in this directory) will need to be run 154 individually. Many of them will need to be manually killed. Additionally, 155 speakers need to be on with the volume at a suitable level.</para> 175 <para> 176 Each of the test programs (they are listed in the 177 <filename>README</filename> file in this directory) will need to be run 178 individually. Many of them will need to be manually killed. Additionally, 179 speakers need to be on with the volume at a suitable level. 180 </para> 156 181 157 182 </sect2> … … 160 185 <title>Command Explanations</title> 161 186 162 <para><command>rm -v /usr/lib/libSDL2*.a</command>: Normally 163 static libraries can be disabled with a <option>--disable-static</option> 164 option to configure, but that breaks the build in this package.</para> 165 166 <para><option>--disable-alsa-shared</option>: This switch disables 167 dynamically loading ALSA shared libraries.</para> 168 169 <para><option>--disable-sdl-dlopen</option>: This switch disables using 170 dlopen for shared object loading. Loading image backend libraries like 171 libpng dynamically on the fly does not work.</para> 172 173 <para><option>--disable-x11-shared</option>: This switch disables 174 dynamically loading X11 shared libraries.</para> 187 <para> 188 <command>rm -v /usr/lib/libSDL2*.a</command>: Normally 189 static libraries can be disabled with a <option>--disable-static</option> 190 option to configure, but that breaks the build in this package. 191 </para> 192 193 <para> 194 <option>--disable-alsa-shared</option>: This switch disables 195 dynamically loading ALSA shared libraries. 196 </para> 197 198 <para> 199 <option>--disable-sdl-dlopen</option>: This switch disables using 200 dlopen for shared object loading. Loading image backend libraries like 201 libpng dynamically on the fly does not work. 202 </para> 203 204 <para> 205 <option>--disable-x11-shared</option>: This switch disables 206 dynamically loading X11 shared libraries. 207 </para> 175 208 176 209 </sect2> … … 213 246 <term><command>sdl2-config</command></term> 214 247 <listitem> 215 <para>determines the compile and linker flags that should be used to 216 compile and link programs that use 217 <filename class='libraryfile'>libSDL2</filename>.</para> 248 <para> 249 determines the compile and linker flags that should be used to 250 compile and link programs that use 251 <filename class='libraryfile'>libSDL2</filename>. 252 </para> 218 253 <indexterm zone="sdl2 sdl2-config"> 219 254 <primary sortas="b-sdl2-config">sdl2-config</primary> … … 225 260 <term><filename class='libraryfile'>libSDL2.so</filename></term> 226 261 <listitem> 227 <para> library provides low level access to audio, keyboard, mouse, 228 joystick, 3D hardware via OpenGL, and 229 2D frame buffer across multiple platforms.</para> 262 <para> 263 contains functions that provide low level access to audio, 264 keyboard, mouse, joystick, 3D hardware via OpenGL, and 265 2D frame buffer across multiple platforms. 266 </para> 230 267 <indexterm zone="sdl2 libsdl2"> 231 268 <primary sortas="c-libsdl2">libSDL2.so</primary>
Note:
See TracChangeset
for help on using the changeset viewer.