aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscheidell <scheidell@FreeBSD.org>2011-12-22 01:04:33 +0800
committerscheidell <scheidell@FreeBSD.org>2011-12-22 01:04:33 +0800
commitaaf2dd8414d7486a2a18b26b8e07723b9f33b43d (patch)
tree7e589f48a6eb924d92491ff83c2962e4a1098bda
parent4db2752b6edc261c4bfa2a624503a0f4dd6a8a6d (diff)
downloadfreebsd-ports-gnome-aaf2dd8414d7486a2a18b26b8e07723b9f33b43d.tar.gz
freebsd-ports-gnome-aaf2dd8414d7486a2a18b26b8e07723b9f33b43d.tar.zst
freebsd-ports-gnome-aaf2dd8414d7486a2a18b26b8e07723b9f33b43d.zip
- Client for block building game minecraft
PR: ports/162516 Submitted by: Martin Kropfinger <freebsd@rakor-net.de> Approved by: gabor (mentor)
-rw-r--r--games/Makefile1
-rw-r--r--games/minecraft-client/Makefile38
-rw-r--r--games/minecraft-client/distinfo4
-rw-r--r--games/minecraft-client/pkg-descr3
-rw-r--r--games/minecraft-client/pkg-plist4
5 files changed, 50 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 9ed2b6769a81..d6c51e58043f 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -524,6 +524,7 @@
SUBDIR += meritous
SUBDIR += mindfocus
SUBDIR += mindguard
+ SUBDIR += minecraft-client
SUBDIR += minecraft-server
SUBDIR += minetest
SUBDIR += mirrormagic
diff --git a/games/minecraft-client/Makefile b/games/minecraft-client/Makefile
new file mode 100644
index 000000000000..7463dda58656
--- /dev/null
+++ b/games/minecraft-client/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: minecraft-client
+# Date created: 12 November 2011
+# Whom: Martin Kropfinger
+#
+# $FreeBSD$
+#
+
+PORTNAME= minecraft-client
+PORTVERSION= 1.0.0
+CATEGORIES= games java
+MASTER_SITES= http://s3.amazonaws.com/MinecraftDownload/launcher/:minecraft \
+ http://www.minecraftwiki.net/images/c/c5/:icon
+DISTNAME= minecraft
+DISTFILES= minecraft.jar:minecraft \
+ Grass.png:icon
+EXTRACT_ONLY=
+
+MAINTAINER= freebsd@rakor-net.de
+COMMENT= Client for the block building game
+
+WRKSRC= ${WRKDIR}
+NO_BUILD= yes
+USE_JAVA= yes
+JAVA_VERSION= 1.6
+JAVA_OS= linux
+JAVA_VENDOR= sun
+DESKTOP_ENTRIES= "Minecraft" "Block building game" "${DATADIR}/Grass.png" "minecraft-client" "Application;Game;" false
+
+do-install:
+ echo "#!/bin/sh" > ${WRKDIR}/minecraft-client
+ echo "export JAVA_HOME=${JAVA_HOME}" >> ${WRKDIR}/minecraft-client
+ echo "exec java -Xmx1024M -Xms1024M -jar ${DATADIR}/minecraft.jar" >> ${WRKDIR}/minecraft-client
+ ${MKDIR} ${DATADIR}
+ (${INSTALL_DATA} "${DISTDIR}/minecraft.jar" ${DATADIR}/)
+ (${INSTALL_DATA} "${DISTDIR}/Grass.png" ${DATADIR}/)
+ (${INSTALL_SCRIPT} "${WRKDIR}/minecraft-client" ${PREFIX}/bin/)
+
+.include <bsd.port.mk>
diff --git a/games/minecraft-client/distinfo b/games/minecraft-client/distinfo
new file mode 100644
index 000000000000..8bb7b5fa87fa
--- /dev/null
+++ b/games/minecraft-client/distinfo
@@ -0,0 +1,4 @@
+SHA256 (minecraft.jar) = d275a1895b5d18e5a913d637d941cc1df83097add76103c2e02e4e513ceb982a
+SIZE (minecraft.jar) = 89406
+SHA256 (Grass.png) = 438c0f63e379e92af1b5b2e06cc5e3365ee272810af65ebc102304bce4fa8c4b
+SIZE (Grass.png) = 12586
diff --git a/games/minecraft-client/pkg-descr b/games/minecraft-client/pkg-descr
new file mode 100644
index 000000000000..b2705cc3461d
--- /dev/null
+++ b/games/minecraft-client/pkg-descr
@@ -0,0 +1,3 @@
+This is the popular block building game Minecraft.
+
+WWW: http://www.minecraft.net/
diff --git a/games/minecraft-client/pkg-plist b/games/minecraft-client/pkg-plist
new file mode 100644
index 000000000000..cb4a81b80275
--- /dev/null
+++ b/games/minecraft-client/pkg-plist
@@ -0,0 +1,4 @@
+share/minecraft-client/minecraft.jar
+share/minecraft-client/Grass.png
+bin/minecraft-client
+@dirrm share/minecraft-client