diff options
author | jhale <jhale@FreeBSD.org> | 2012-12-09 08:36:49 +0800 |
---|---|---|
committer | jhale <jhale@FreeBSD.org> | 2012-12-09 08:36:49 +0800 |
commit | f853192955677d53da1e3f1be4578d5fb8c7fab1 (patch) | |
tree | e856a4498b38e58550e5d1eda196b58b09cb3545 /games/minecraft-client | |
parent | 03018c275a61c9b249655fa50b982a1ccd75ac0c (diff) | |
download | freebsd-ports-gnome-f853192955677d53da1e3f1be4578d5fb8c7fab1.tar.gz freebsd-ports-gnome-f853192955677d53da1e3f1be4578d5fb8c7fab1.tar.zst freebsd-ports-gnome-f853192955677d53da1e3f1be4578d5fb8c7fab1.zip |
- Update to 1.4.5
- Make NATIVE_LIBS option default to avoid Linux JDK
- Improve startup script to better handle updates to games/lwjgl
- Store unversioned distfiles in a versioned DIST_SUBDIR
- Fix JAVA_VENDOR typo
- Install icon in a better location
- Whitespace cleanup
- Trim Makefile header
PR: ports/173842
Submitted by: 4721@hushmail.com
Approved by: maintainer timeout (2 weeks)
Feature safe: yes
Diffstat (limited to 'games/minecraft-client')
-rw-r--r-- | games/minecraft-client/Makefile | 45 | ||||
-rw-r--r-- | games/minecraft-client/distinfo | 8 | ||||
-rw-r--r-- | games/minecraft-client/pkg-plist | 6 |
3 files changed, 31 insertions, 28 deletions
diff --git a/games/minecraft-client/Makefile b/games/minecraft-client/Makefile index f2a825097ccb..499c3bd69e77 100644 --- a/games/minecraft-client/Makefile +++ b/games/minecraft-client/Makefile @@ -1,40 +1,42 @@ -# New ports collection makefile for: minecraft-client -# Date created: 12 November 2011 -# Whom: Martin Kropfinger -# +# Created by: Martin Kropfinger # $FreeBSD$ -# PORTNAME= minecraft-client -PORTVERSION= 1.0.0 +PORTVERSION= 1.4.5 CATEGORIES= games java MASTER_SITES= http://s3.amazonaws.com/MinecraftDownload/launcher/:minecraft \ - http://www.minecraftwiki.net/images/c/c5/:icon + http://media-mcw.cursecdn.com/c/c5/:icon DISTNAME= minecraft DISTFILES= minecraft.jar:minecraft \ - Grass.png:icon + Grass.png:icon +DIST_SUBDIR= ${PORTNAME}/${PORTVERSION} EXTRACT_ONLY= MAINTAINER= freebsd@rakor-net.de COMMENT= Client for the block building game OPTIONS_DEFINE= NATIVE_LIBS +OPTIONS_DEFAULT= NATIVE_LIBS NATIVE_LIBS_DESC= Enable native libs support -.include <bsd.port.options.mk> - WRKSRC= ${WRKDIR} NO_BUILD= yes USE_JAVA= yes JAVA_VERSION= 1.6 -DESKTOP_ENTRIES= "Minecraft" "Block building game" "${DATADIR}/Grass.png" "minecraft-client" "Application;Game;" false +DESKTOP_ENTRIES="Minecraft" \ + "Block building game" \ + "${PORTNAME}" \ + "${PORTNAME}" \ + "Application;Game;" \ + false + +.include <bsd.port.options.mk> .if ${PORT_OPTIONS:MNATIVE_LIBS} USE_OPENAL= soft -BUILD_DEPENDS+= ${JAVALIBDIR}/lwjgl/lwjgl_util.jar:${PORTSDIR}/games/lwjgl RUN_DEPENDS+= ${JAVALIBDIR}/lwjgl/lwjgl_util.jar:${PORTSDIR}/games/lwjgl JAVA_OS= native -JAVA_VENDER= openjdk +JAVA_VENDOR= openjdk .else JAVA_OS= linux JAVA_VENDOR= sun @@ -54,7 +56,7 @@ do-install: ${ECHO_CMD} "${ECHO_MSG} \" the symlinks before doing any upgrade: \"" >> ${WRKDIR}/minecraft-client ${ECHO_CMD} "${ECHO_MSG} \"\"" >> ${WRKDIR}/minecraft-client ${ECHO_CMD} "${ECHO_MSG} \"find ~/.minecraft/bin -type l -print0 | \ - xargs -0 rm -v\"" >> ${WRKDIR}/minecraft-client + ${XARGS} -0 ${RM} -v\"" >> ${WRKDIR}/minecraft-client ${ECHO_CMD} "${ECHO_MSG} \"\"" >> ${WRKDIR}/minecraft-client ${ECHO_CMD} "MINECRAFT_DIR=\"\$${HOME}/.minecraft\"" >> ${WRKDIR}/minecraft-client ${ECHO_CMD} "BIN=\"\$${MINECRAFT_DIR}/bin\"" >> ${WRKDIR}/minecraft-client @@ -74,7 +76,7 @@ do-install: ${ECHO_CMD} "" >> ${WRKDIR}/minecraft-client ${ECHO_CMD} "for j in jinput.jar lwjgl.jar lwjgl_util.jar" >> ${WRKDIR}/minecraft-client ${ECHO_CMD} "do" >> ${WRKDIR}/minecraft-client - ${ECHO_CMD} " if [ -f \$${BIN}/\$${j} -a ! -L \$${BIN}/\$${j} ]" >> ${WRKDIR}/minecraft-client + ${ECHO_CMD} " if [ ! -f \$${BIN}/\$${j} -o ! -L \$${BIN}/\$${j} ]" >> ${WRKDIR}/minecraft-client ${ECHO_CMD} " then" >> ${WRKDIR}/minecraft-client ${ECHO_CMD} " target=\$$(${BASENAME} \$${j} .jar)" >> ${WRKDIR}/minecraft-client ${ECHO_CMD} " eval target=\\\$$\$${target}" >> ${WRKDIR}/minecraft-client @@ -84,10 +86,11 @@ do-install: ${ECHO_CMD} "" >> ${WRKDIR}/minecraft-client ${ECHO_CMD} "lwjgl=\"\$${NATIVES}/liblwjgl.so\"" >> ${WRKDIR}/minecraft-client ${ECHO_CMD} "lwjgl64=\"\$${NATIVES}/liblwjgl64.so\"" >> ${WRKDIR}/minecraft-client - ${ECHO_CMD} "if [ -f \$${lwjgl} -a ! -L \$${lwjgl} -a \ - -f \$${lwjgl64} -a ! -L \$${lwjgl64} ]; then" >> ${WRKDIR}/minecraft-client + ${ECHO_CMD} "if [ \( -f \$${lwjgl} -a ! -L \$${lwjgl} -a \ + -f \$${lwjgl64} -a ! -L \$${lwjgl64} \) -o \ + \( ! -f \$${lwjgl} -a ! -f \$${lwjgl64} \) ]; then" >> ${WRKDIR}/minecraft-client ${ECHO_CMD} " LIBLWJGL=\$$(${FIND} ${LOCALBASE}/lib/lwjgl* \ - -name 'liblwjgl*.so' | ${HEAD} -n 1)" >> ${WRKDIR}/minecraft-client + -name 'liblwjgl*.so' | ${HEAD} -n 1)" >> ${WRKDIR}/minecraft-client ${ECHO_CMD} " LWJGLSO=\$$(${ECHO} \$${LIBJGL} | ${GREP} \"64\")" >> ${WRKDIR}/minecraft-client ${ECHO_CMD} " if [ \"x\$${LIBWJGLSO}\" = \"x\" ]; then" >> ${WRKDIR}/minecraft-client ${ECHO_CMD} " ${LN} -snf \$${LIBLWJGL} \$${lwjgl}" >> ${WRKDIR}/minecraft-client @@ -102,8 +105,8 @@ do-install: ${ECHO_CMD} "exec java -Xmx1024M -Xms1024M -jar ${DATADIR}/minecraft.jar" >> ${WRKDIR}/minecraft-client .endif ${MKDIR} ${DATADIR} - ${INSTALL_DATA} "${DISTDIR}/minecraft.jar" ${DATADIR}/ - ${INSTALL_DATA} "${DISTDIR}/Grass.png" ${DATADIR}/ - ${INSTALL_SCRIPT} "${WRKDIR}/minecraft-client" ${PREFIX}/bin/ + ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/minecraft.jar ${DATADIR}/ + ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/Grass.png ${PREFIX}/share/pixmaps/minecraft-client.png + ${INSTALL_SCRIPT} ${WRKDIR}/minecraft-client ${PREFIX}/bin/ .include <bsd.port.mk> diff --git a/games/minecraft-client/distinfo b/games/minecraft-client/distinfo index 8bb7b5fa87fa..70c2ef0a3461 100644 --- a/games/minecraft-client/distinfo +++ b/games/minecraft-client/distinfo @@ -1,4 +1,4 @@ -SHA256 (minecraft.jar) = d275a1895b5d18e5a913d637d941cc1df83097add76103c2e02e4e513ceb982a -SIZE (minecraft.jar) = 89406 -SHA256 (Grass.png) = 438c0f63e379e92af1b5b2e06cc5e3365ee272810af65ebc102304bce4fa8c4b -SIZE (Grass.png) = 12586 +SHA256 (minecraft-client/1.4.5/minecraft.jar) = 92db974aa759a3f17f3cd61550fa5010e335c57dd813dad9e39b9cc013420a49 +SIZE (minecraft-client/1.4.5/minecraft.jar) = 81938 +SHA256 (minecraft-client/1.4.5/Grass.png) = 438c0f63e379e92af1b5b2e06cc5e3365ee272810af65ebc102304bce4fa8c4b +SIZE (minecraft-client/1.4.5/Grass.png) = 12586 diff --git a/games/minecraft-client/pkg-plist b/games/minecraft-client/pkg-plist index cb4a81b80275..5fa20c548034 100644 --- a/games/minecraft-client/pkg-plist +++ b/games/minecraft-client/pkg-plist @@ -1,4 +1,4 @@ -share/minecraft-client/minecraft.jar -share/minecraft-client/Grass.png bin/minecraft-client -@dirrm share/minecraft-client +%%DATADIR%%/minecraft.jar +share/pixmaps/minecraft-client.png +@dirrm %%DATADIR%% |