freebsd-ports/games/linux-ut2004-demo/files/ut2004-demo.in
Jean-Yves Lefort ed39f67745 - Add a runtime dependency on libGL
- Use a mostly dynamic packing list
- Use USE_X_PREFIX, now that it supports USE_LINUX
- Use SUB_FILES
- No need to mkdir ${PREFIX}/bin
2005-09-04 03:35:58 +00:00

12 lines
266 B
Bash

#!/bin/sh
export UT2004_DATA_PATH="%%UTDIR%%/System"
if [ -n "$LD_LIBRARY_PATH" ]; then
export LD_LIBRARY_PATH="$UT2004_DATA_PATH:$LD_LIBRARY_PATH"
else
export LD_LIBRARY_PATH="$UT2004_DATA_PATH"
fi
cd "$UT2004_DATA_PATH" || exit 1
exec ./ut2004-bin "$@"