summaryrefslogtreecommitdiff
path: root/games/robocode/files
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2005-04-05 12:30:44 +0000
committerHerve Quiroz <hq@FreeBSD.org>2005-04-05 12:30:44 +0000
commit95683b0031261e5cb3f5c007b40ed2c41cf2e4b1 (patch)
tree9937275f796310b40f4cc93c5663b5440415804a /games/robocode/files
parentRemoved entry for games/robocode as it is no longer RESTRICTED (now under (diff)
- Use the ${JAR} macro provided by bsd.java.mk
- Use SUB_FILES to build the launcher shell script - Improve the launcher shell script (use javavmwrapper) - Install using FIND | INSTALL_DATA - Add $FreeBSD$ tag in pkg-plist - Fix pkg-plist issue from last commit
Notes
Notes: svn path=/head/; revision=132554
Diffstat (limited to 'games/robocode/files')
-rw-r--r--games/robocode/files/robocode.sh5
-rw-r--r--games/robocode/files/robocode.sh.in6
2 files changed, 6 insertions, 5 deletions
diff --git a/games/robocode/files/robocode.sh b/games/robocode/files/robocode.sh
deleted file mode 100644
index 209683d3224f..000000000000
--- a/games/robocode/files/robocode.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-# $FreeBSD$
-
-cd %%PREFIX%%/share/java/robocode
-exec %%JAVAVM%% -jar robocode.jar "$@"
diff --git a/games/robocode/files/robocode.sh.in b/games/robocode/files/robocode.sh.in
new file mode 100644
index 000000000000..d0633528a7c5
--- /dev/null
+++ b/games/robocode/files/robocode.sh.in
@@ -0,0 +1,6 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+cd "%%DATADIR%%"
+JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -jar robocode.jar "$@"