nixpkgs/pkgs/games/quake3/wrapper/builder.sh
Eelco Dolstra 7219a09001 * ioquake: updated to 1.34rc3.
* rss-glx: fixed the build.
* Removed the OpenGL wrapper stuff, it's no longer needed (thanks to
  the RUNPATH you just need to put the appropriate libGL.so in the
  LD_LIBRARY_PATH). 

svn path=/nixpkgs/trunk/; revision=12093
2008-06-14 20:55:48 +00:00

16 lines
486 B
Bash

source $stdenv/setup
ensureDir $out/baseq3
for i in $paks; do
if test -d "$paks/baseq3"; then
ln -s $paks/baseq3/* $out/baseq3/
fi
done
# We add Mesa to the end of $LD_LIBRARY_PATH to provide fallback
# software rendering. GCC is needed so that libgcc_s.so can be found
# when Mesa is used.
makeWrapper $game/ioquake3.i386 $out/bin/quake3 \
--suffix-each LD_LIBRARY_PATH ':' "$mesa/lib $gcc/lib" \
--add-flags "+set fs_basepath $out +set r_allowSoftwareGL 1"