freebsd-ports/audio/teamspeak_client/files/TeamSpeak.in
Jean-Yves Lefort f15572920f - Add a menu item
- Add amd64 to ONLY_FOR_ARCHS (I can not test this, but it should work)
- Use exec in the wrapper script: http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/dads-sh-exec.html
- Install with ${INSTALL_PROGRAM} and ${INSTALL_DATA}, to ensure
  proper permissions/stripping/ownerships
- This program uses X: move to ${X11BASE}
- Install documentation in ${DOCSDIR}
- Cleanups (SUB_FILES, PORTDOCS)

PR:		ports/93931
Submitted by:	jylefort
Approved by:	maintainer timeout (39 days)
2006-04-08 16:44:27 +00:00

22 lines
484 B
Bash

#!/bin/sh
#
# This startup script will set the correct library path
# and then startup the teamspeak binary.
#
TSHOME=%%TSHOME%%
if [ -z "$LD_LIBRARY_PATH" ]; then
export LD_LIBRARY_PATH=$TSHOME
else
export LD_LIBRARY_PATH=$TSHOME:$LD_LIBRARY_PATH
fi
if [ -r $TSHOME/setduplexfake.so ]; then
if [ -z "$LD_PRELOAD" ]; then
export LD_PRELOAD=$TSHOME/setduplexfake.so
else
export LD_PRELOAD=$TSHOME/setduplexfake.so:$LD_PRELOAD
fi
fi
exec $TSHOME/TeamSpeak.bin "$@"