2006-01-28 00:51:36 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
ensureDir $out/bin
|
|
|
|
|
|
|
|
cat >$out/bin/quake3 <<EOF
|
2006-01-30 12:44:39 +01:00
|
|
|
#! $SHELL -e
|
|
|
|
|
2006-01-28 01:41:16 +01:00
|
|
|
mesa=$mesa
|
|
|
|
|
|
|
|
$(cat $mesaSwitch)
|
|
|
|
|
2006-01-28 00:51:36 +01:00
|
|
|
exec $game/ioquake3.i386 \
|
|
|
|
+set fs_basepath $out \
|
2006-01-28 01:41:16 +01:00
|
|
|
+set r_allowSoftwareGL 1 \
|
2006-01-28 00:51:36 +01:00
|
|
|
"\$@"
|
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod +x $out/bin/quake3
|