mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
4e1b79a0a6
With hat: portmgr Sponsored by: Absolight
52 lines
1.5 KiB
Makefile
52 lines
1.5 KiB
Makefile
# Created by: Martin Kropfinger
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= minecraft-client
|
|
PORTVERSION= 1.7.9
|
|
PORTREVISION= 4
|
|
CATEGORIES= games java
|
|
MASTER_SITES= http://s3.amazonaws.com/Minecraft.Download/launcher/:minecraft \
|
|
http://media-mcw.cursecdn.com/c/c5/:icon
|
|
DISTFILES= Minecraft.jar:minecraft \
|
|
Grass.png:icon
|
|
DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
|
|
EXTRACT_ONLY=
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Client for the block building game
|
|
|
|
RUN_DEPENDS= ${JAVALIBDIR}/lwjgl/lwjgl.jar:games/lwjgl
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
USES= openal
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
USE_JAVA= yes
|
|
JAVA_OS= native
|
|
JAVA_VENDOR= openjdk
|
|
JAVA_VERSION= 1.8+
|
|
DESKTOP_ENTRIES="Minecraft" \
|
|
"Block building game" \
|
|
"${PREFIX}/share/pixmaps/minecraft-client.png" \
|
|
"${PORTNAME}" \
|
|
"Game;Java;" \
|
|
false
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/Minecraft.jar \
|
|
${STAGEDIR}${DATADIR}/Minecraft.jar
|
|
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/Grass.png \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/minecraft-client.png
|
|
${SED} -e 's|=JAVA_HOME|=${JAVA_HOME}|' \
|
|
-e 's|PREFIX|${PREFIX}|' \
|
|
-e 's|JAVA_CMD|${JAVA}|' ${FILESDIR}/minecraft-client \
|
|
> ${WRKDIR}/minecraft-client
|
|
${SED} -e 's|%%PREFIX%%|${PREFIX}|' ${FILESDIR}/Notifier.java \
|
|
> ${WRKDIR}/Notifier.java
|
|
${INSTALL_SCRIPT} ${WRKDIR}/minecraft-client ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${FILESDIR}/minecraft-runtime ${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} ${WRKDIR}/Notifier.java ${STAGEDIR}${DATADIR}
|
|
|
|
.include <bsd.port.mk>
|