Difference between revisions of "SDL"

From CBLFS
Jump to navigationJump to search
 
(Multilib)
Line 47: Line 47:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILD32}" ./configure --prefix=/usr &&
+
  CC="gcc ${BUILD32}" USE_ARCH=32 ./configure --prefix=/usr &&
 
  make
 
  make
  
Line 63: Line 63:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 &&
+
  CC="gcc ${BUILDN32}" USE_ARCH=n32 ./configure --prefix=/usr --libdir=/usr/lib32 &&
 
  make
 
  make
  
Line 79: Line 79:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 &&
+
  CC="gcc ${BUILD64}" USE_ARCH=64 ./configure --prefix=/usr --libdir=/usr/lib64 &&
 
  make
 
  make
  

Revision as of 14:56, 30 September 2006

Download Source: url

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

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 ./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 *)

Compile the package:

CC="gcc ${BUILDN32}" USE_ARCH=n32 ./configure --prefix=/usr --libdir=/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 *)

Compile the package:

CC="gcc ${BUILD64}" USE_ARCH=64 ./configure --prefix=/usr --libdir=/usr/lib64 &&
make

Install the package

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