aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2006-05-24 13:51:37 +0000
committerHerve Quiroz <hq@FreeBSD.org>2006-05-24 13:51:37 +0000
commitf9d4570b69ff76de2ad015b754aa483aa2f333c5 (patch)
treefdb8b8c120b62b361ebf7c2bfe809cd2768790ac /games
parent1fc50e17e911c34e9f214c2a29c3ae9eeb358045 (diff)
downloadports-f9d4570b69ff76de2ad015b754aa483aa2f333c5.tar.gz
ports-f9d4570b69ff76de2ad015b754aa483aa2f333c5.zip
Notes
Diffstat (limited to 'games')
-rw-r--r--games/spicetrade/Makefile8
-rw-r--r--games/spicetrade/files/spicetrade.in6
2 files changed, 10 insertions, 4 deletions
diff --git a/games/spicetrade/Makefile b/games/spicetrade/Makefile
index 67f328e09268..1ba0591734a0 100644
--- a/games/spicetrade/Makefile
+++ b/games/spicetrade/Makefile
@@ -7,6 +7,7 @@
PORTNAME= spicetrade
PORTVERSION= 1.2
+PORTREVISION= 1
CATEGORIES= games java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -17,10 +18,11 @@ EXTRACT_ONLY=
MAINTAINER= daniel@roe.ch
COMMENT= Colourful 14th century Arab spice trading game
-NO_PACKAGE= "Package will be 186MB, set FORCE_PACKAGE if you really want to build it"
+NO_PACKAGE= Package will be 186MB, set FORCE_PACKAGE if you really want to build it
-USE_JAVA= 1.4+
-USE_X_PREFIX= yes
+USE_JAVA= yes
+JAVA_VERSION= 1.4+
+DATADIR= ${JAVASHAREDIR}/${PORTNAME}
NO_BUILD= yes
SUB_FILES= ${PORTNAME}
diff --git a/games/spicetrade/files/spicetrade.in b/games/spicetrade/files/spicetrade.in
index fcc36a1548de..4d14a4d8b01c 100644
--- a/games/spicetrade/files/spicetrade.in
+++ b/games/spicetrade/files/spicetrade.in
@@ -1,2 +1,6 @@
#!/bin/sh
-exec java -jar %%JARFILE%% "$@"
+#
+# $FreeBSD$
+
+JAVA_VERSION="%%JAVA_VERSION%%" \
+ exec "%%LOCALBASE%%/bin/java" -jar "%%JARFILE%%" "$@"