aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorhq <hq@FreeBSD.org>2006-05-24 21:51:37 +0800
committerhq <hq@FreeBSD.org>2006-05-24 21:51:37 +0800
commit5d4f5292ceb6e9f7b5aab35e251a5164f5d5b3a0 (patch)
treef172b0adcd3b6e11d52d9030b42b5baa128e0a32 /games
parenta7b1b25861570f13b296649456e53df8a0c3b41f (diff)
downloadfreebsd-ports-gnome-5d4f5292ceb6e9f7b5aab35e251a5164f5d5b3a0.tar.gz
freebsd-ports-gnome-5d4f5292ceb6e9f7b5aab35e251a5164f5d5b3a0.tar.zst
freebsd-ports-gnome-5d4f5292ceb6e9f7b5aab35e251a5164f5d5b3a0.zip
- Update to bsd.java.mk 2.0
- Install in DATADIR=${JAVASHAREDIR}/${PORTNAME} - Set JAVA_VERSION in launcher shell script - Use absolute path for javavmwrapper in launcher shell script - Add $FreeBSD$ tag - Unquote NO_PACKAGE [1] - Bump PORTREVISION PR: 97700 Submitted by: hq Reported by: portlint [1] Approved by: maintainer
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%%" "$@"