summary refs log tree commit diff
path: root/pkgs/games/quake3/wrapper/builder.sh
blob: 57d6bc6a5ba247470bb8e8f1ea058736398cc64a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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.* $out/bin/quake3 \
    --suffix-each LD_LIBRARY_PATH ':' "$mesa/lib $gcc/lib" \
    --add-flags "+set fs_basepath $out +set r_allowSoftwareGL 1"

makeWrapper $game/ioq3ded.* $out/bin/quake3-server \
    --add-flags "+set fs_basepath $out"