aboutsummaryrefslogtreecommitdiffstats
path: root/games/ftjava/files
diff options
context:
space:
mode:
authorhq <hq@FreeBSD.org>2006-02-14 22:09:59 +0800
committerhq <hq@FreeBSD.org>2006-02-14 22:09:59 +0800
commit487b1196c8b439632c755310d8345e8eca117a61 (patch)
tree0550fac05fe5dbce03ee7a86398f35091d310ddc /games/ftjava/files
parent9831ae98cbab51286653f7335caa9a4bd640037f (diff)
downloadfreebsd-ports-gnome-487b1196c8b439632c755310d8345e8eca117a61.tar.gz
freebsd-ports-gnome-487b1196c8b439632c755310d8345e8eca117a61.tar.zst
freebsd-ports-gnome-487b1196c8b439632c755310d8345e8eca117a61.zip
FTJava is a graphical play by email (PBEM) client for Ground Zero Games Full
Thrust. Full Thrust is a minatures based system designed to allow one to play massive science fiction style fleet battles in a reasonable amount of time. It emphasizes strategy and fun over rule lawyers and micromanagement. Authors: Jon Davis WWW: http://home.nycap.rr.com/davisje/ftjava/index.html (FTJava) Authors: Jon Tuffley WWW: http://www.gzg.com (Ground Zero Games) PR: 93102 Submitted by: Peter Thoenen <eol1@yahoo.com>
Diffstat (limited to 'games/ftjava/files')
-rw-r--r--games/ftjava/files/ftjava.sh.in40
1 files changed, 40 insertions, 0 deletions
diff --git a/games/ftjava/files/ftjava.sh.in b/games/ftjava/files/ftjava.sh.in
new file mode 100644
index 000000000000..f80e32705f6d
--- /dev/null
+++ b/games/ftjava/files/ftjava.sh.in
@@ -0,0 +1,40 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+HOME_DIR=${HOME}/.ftjava
+CLASSPATH=".:%%DATADIR%%/xerces.jar:%%DATADIR%%/activation.jar:%%DATADIR%%/mail.jar:/%%DATADIR%%/pop3.jar"
+export JAVA_VERSION="%%JAVA_VERSION%%"
+
+[ ! -d ${HOME_DIR}/OutgoingGames ] && \
+ mkdir -p ${HOME_DIR}/OutgoingGames
+
+[ ! -d ${HOME_DIR}/IncomingGames ] && \
+ mkdir -p ${HOME_DIR}/IncomingGames
+
+[ ! -d ${HOME_DIR}/Images ] && \
+ ln -s %%DATADIR%%/Images ${HOME_DIR}/Images
+
+[ ! -d ${HOME_DIR}/Ships ] && \
+ ln -s %%DATADIR%%/Ships ${HOME_DIR}/Ships
+
+[ ! -d ${HOME_DIR}/fjava ] && \
+ mkdir -p ${HOME_DIR}/ftjava
+
+[ ! -d ${HOME_DIR}/ftjava/gui ] && \
+ ln -s %%DATADIR%%/ftjava/gui ${HOME_DIR}/ftjava/gui
+
+[ ! -d ${HOME_DIR}/ftjava/html ] && \
+ ln -s %%DATADIR%%/ftjava/html ${HOME_DIR}/ftjava/html
+
+[ ! -d ${HOME_DIR}/ftjava/mailman ] && \
+ ln -s %%DATADIR%%/ftjava/mailman ${HOME_DIR}/ftjava/mailman
+
+[ ! -d ${HOME_DIR}/ftjava/std ] && \
+ ln -s %%DATADIR%%/ftjava/std ${HOME_DIR}/ftjava/std
+
+[ ! -d ${HOME_DIR}/ftjava/util ] && \
+ ln -s %%DATADIR%%/ftjava/util ${HOME_DIR}/ftjava/util
+
+cd ${HOME_DIR} &&
+ exec %%LOCALBASE%%/bin/java -cp ${CLASSPATH} ftjava.gui.FTJava "${@}"