Difference between revisions of "SDL"

From CBLFS
Jump to navigationJump to search
(I updated the package description.)
 
(8 intermediate revisions by 4 users not shown)
Line 7: Line 7:
 
----
 
----
  
== Introduction to SDL ==
+
{{Package-Introduction|Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.
  
Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.
+
SDL is written in C, but works with C++ natively, and has bindings to several other languages, including Ada, C# ([[Mono]]), Eiffel, Erlang, Euphoria, [[Guile]], Haskell, Java ([[JDK]]), Lisp, Lua, ML, Objective C, Pascal, Perl, [[PHP]], Pike, Pliant, [[Python]], [[Ruby]], and Smalltalk.|http://www.libsdl.org/}}
 
 
SDL is written in C, but works with C++ natively, and has bindings to several other languages, including Ada, C# ([[Mono]]), Eiffel, Erlang, Euphoria, [[Guile]], Haskell, Java ([[JDK]]), Lisp, Lua, ML, Objective C, Pascal, Perl, [[PHP]], Pike, Pliant, [[Python]], [[Ruby]], and Smalltalk.
 
 
 
'''Project Home Page''': http://www.libsdl.org/
 
  
 
== Dependencies ==
 
== Dependencies ==
Line 44: Line 40:
  
 
  make install
 
  make install
 +
 +
Install the documentation:
 +
 +
install -dv -m755 /usr/share/doc/SDL-{{SDL-Version}}/html &&
 +
install -v -m644 docs/html/*.html /usr/share/doc/SDL-{{SDL-Version}}/html
  
 
== Multilib ==
 
== Multilib ==
Line 55: Line 56:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILD32}" USE_ARCH=32 ./configure --prefix=/usr &&
+
  CC="gcc ${BUILD32}" USE_ARCH=32 \
 +
PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
 +
./configure --prefix=/usr &&
 
  make
 
  make
  
Line 68: Line 71:
  
 
  sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $(grep -lr /usr/X11R6 *)
 
  sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $(grep -lr /usr/X11R6 *)
 +
 +
If you are using [[ARts]] then run the following command to fix a problem detecting the 64-bit aRts library:
 +
 +
sed -i '/$ARTS_PREFIX/s:/lib:&32:' configure
  
 
Compile the package:
 
Compile the package:
  
 
  sed -i "/-laudio/s:/lib:&32:g" configure &&
 
  sed -i "/-laudio/s:/lib:&32:g" configure &&
  CC="gcc ${BUILDN32}" USE_ARCH=n32 ./configure --prefix=/usr --libdir=/usr/lib32 &&
+
  CC="gcc ${BUILDN32}" USE_ARCH=n32 \
 +
PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \
 +
./configure --prefix=/usr --libdir=/usr/lib32 \
 +
    --with-alsa-prefix=/usr/lib32 &&
 
  make
 
  make
  
Line 85: Line 95:
  
 
  sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $(grep -lr /usr/X11R6 *)
 
  sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $(grep -lr /usr/X11R6 *)
 +
 +
If you are using [[ARts]] then run the following command to fix a problem detecting the 64-bit aRts library:
 +
 +
sed -i '/$ARTS_PREFIX/s:/lib:&64:' configure
  
 
Compile the package:
 
Compile the package:
  
 
  sed -i "/-laudio/s:/lib:&64:g" configure &&
 
  sed -i "/-laudio/s:/lib:&64:g" configure &&
  CC="gcc ${BUILD64}" USE_ARCH=64 ./configure --prefix=/usr --libdir=/usr/lib64 &&
+
  CC="gcc ${BUILD64}" USE_ARCH=64 \
 +
PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
 +
./configure --prefix=/usr --libdir=/usr/lib64 \
 +
    --with-alsa-prefix=/usr/lib64 &&
 
  make
 
  make
  
Line 97: Line 114:
 
  mv -v /usr/bin/sdl-config{,-64} &&
 
  mv -v /usr/bin/sdl-config{,-64} &&
 
  ln -sfv multiarch_wrapper /usr/bin/sdl-config
 
  ln -sfv multiarch_wrapper /usr/bin/sdl-config
 +
 +
Install the documentation:
 +
 +
install -dv -m755 /usr/share/doc/SDL-{{SDL-Version}}/html &&
 +
install -v -m644 docs/html/*.html /usr/share/doc/SDL-{{SDL-Version}}/html
 +
 +
[[Category:Media Libraries]]

Latest revision as of 16:32, 19 March 2009

Download Source: http://www.libsdl.org/release/SDL-1.2.14.tar.gz

Introduction to SDL

Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.

SDL is written in C, but works with C++ natively, and has bindings to several other languages, including Ada, C# (Mono), Eiffel, Erlang, Euphoria, Guile, Haskell, Java (JDK), Lisp, Lua, ML, Objective C, Pascal, Perl, PHP, Pike, Pliant, Python, Ruby, and Smalltalk.

Project Homepage: http://www.libsdl.org/

Dependencies

Optional

Non-Multilib

If your X Window System is anything other then /usr/X11R6 then run the following command to adjust the sources:

sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $(grep -lr /usr/X11R6 *)

Compile the package:

./configure --prefix=/usr &&
make

Install the package

make install

Install the documentation:

install -dv -m755 /usr/share/doc/SDL-1.2.14/html &&
install -v -m644 docs/html/*.html /usr/share/doc/SDL-1.2.14/html

Multilib

32Bit

If your X Window System is anything other then /usr/X11R6 then run the following command to adjust the sources:

sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $(grep -lr /usr/X11R6 *)

Compile the package:

CC="gcc ${BUILD32}" USE_ARCH=32 \
PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
./configure --prefix=/usr &&
make

Install the package

make install &&
mv -v /usr/bin/sdl-config{,-32}

N32

If your X Window System is anything other then /usr/X11R6 then run the following command to adjust the sources:

sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $(grep -lr /usr/X11R6 *)

If you are using ARts then run the following command to fix a problem detecting the 64-bit aRts library:

sed -i '/$ARTS_PREFIX/s:/lib:&32:' configure

Compile the package:

sed -i "/-laudio/s:/lib:&32:g" configure &&
CC="gcc ${BUILDN32}" USE_ARCH=n32 \
PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \
./configure --prefix=/usr --libdir=/usr/lib32 \
    --with-alsa-prefix=/usr/lib32 &&
make

Install the package

make install &&
mv -v /usr/bin/sdl-config{,-n32}

64Bit

If your X Window System is anything other then /usr/X11R6 then run the following command to adjust the sources:

sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $(grep -lr /usr/X11R6 *)

If you are using ARts then run the following command to fix a problem detecting the 64-bit aRts library:

sed -i '/$ARTS_PREFIX/s:/lib:&64:' configure

Compile the package:

sed -i "/-laudio/s:/lib:&64:g" configure &&
CC="gcc ${BUILD64}" USE_ARCH=64 \
PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
./configure --prefix=/usr --libdir=/usr/lib64 \
    --with-alsa-prefix=/usr/lib64 &&
make

Install the package

make install &&
mv -v /usr/bin/sdl-config{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/sdl-config

Install the documentation:

install -dv -m755 /usr/share/doc/SDL-1.2.14/html &&
install -v -m644 docs/html/*.html /usr/share/doc/SDL-1.2.14/html