mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
a126a2dad8
- Make portclippy happy PR: 244104 Submitted by: Alexander Vereeken <Alexander88207@protonmail.com> Approved by: ehaupt (mentor)
55 lines
1.5 KiB
Makefile
55 lines
1.5 KiB
Makefile
# Created by: Martin Kropfinger
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= minecraft-client
|
|
PORTVERSION= 1.7.9
|
|
PORTREVISION= 6
|
|
CATEGORIES= games java
|
|
MASTER_SITES= https://homura.magzu.net/games/ \
|
|
LOCAL/tagattie/${PORTNAME}/${PORTVERSION}
|
|
DISTFILES= Minecraft.jar \
|
|
Grass.png
|
|
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 \
|
|
xrandr:x11/xrandr
|
|
|
|
USES= openal
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.8+
|
|
JAVA_OS= native
|
|
JAVA_VENDOR= openjdk
|
|
|
|
DESKTOP_ENTRIES="Minecraft" \
|
|
"Block building game" \
|
|
"${PREFIX}/share/pixmaps/minecraft-client.png" \
|
|
"${PORTNAME}" \
|
|
"Game;Java;" \
|
|
false
|
|
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
NO_WRKSUBDIR= yes
|
|
|
|
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>
|