freebsd-ports/games/wargus/files/wargus.in
Alejandro Pulver 2350ebc334 - Update to version 2.2.2.
- Use SF macro in MASTER_SITES.
- Redefine EXTRACT_SUFX instead of DISTNAME to avoid changing WRKSRC.
- Use NOT_FOR_ARCHS for sparc64 instead of checking ${ARCH}.
- Use SUB_FILES for pkg-message instead of processing it manually.
- Use patch for Makefile instead of REINPLACE_CMD.
- Use FIND + MKDIR/INSTALL_DATA to install for avoiding too many commands.
- Misc format to pkg-message.
- Improve wrapper script: use "exec" to avoid wasting resources with the
  script itself, take installation message from 'pkg_info -D' instead of
  duplicating it inside the script, use SUB_LIST macros like DATADIR.

PR:		ports/109587
Submitted by:	alepulver (myself)
Approved by:	Travis Poppe <tlp@LiquidX.org> (maintainer)
2007-02-27 14:02:47 +00:00

22 lines
568 B
Bash

#!/bin/sh
# wargus - wargus/stratagus wrapper script
#
# Note: If you have noticed any problems with this script or my port, please
# let me know as soon as possible!
#
# 2004 Travis Poppe <tlp@LiquidX.org>
DATADIR="%%DATADIR%%/data.wc2"
if [ -d $DATADIR ]; then
echo "Running Stratagus with Warcraft 2 data found in \"$DATADIR\"."
echo ""
exec stratagus -d $DATADIR "$@"
else
echo "ERROR: Warcraft 2 data not found in \"$DATADIR\"."
echo ""
echo "Please follow the instructions from the installation message:"
echo ""
pkg_info -D "wargus-[0-9]*"
exit 1
fi