2006-01-27 23:51:36 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/baseq3
|
2006-01-27 23:51:36 +00:00
|
|
|
for i in $paks; do
|
|
|
|
if test -d "$paks/baseq3"; then
|
|
|
|
ln -s $paks/baseq3/* $out/baseq3/
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2008-06-14 21:55:48 +01:00
|
|
|
# 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.
|
2010-01-03 23:19:57 +00:00
|
|
|
makeWrapper $game/ioquake3.* $out/bin/quake3 \
|
2008-06-14 21:55:48 +01:00
|
|
|
--suffix-each LD_LIBRARY_PATH ':' "$mesa/lib $gcc/lib" \
|
|
|
|
--add-flags "+set fs_basepath $out +set r_allowSoftwareGL 1"
|
2011-01-10 12:24:48 +00:00
|
|
|
|
|
|
|
makeWrapper $game/ioq3ded.* $out/bin/quake3-server \
|
|
|
|
--add-flags "+set fs_basepath $out"
|