freebsd-ports/games/minecraft-client/Makefile
Muhammad Moinur Rahman 4cda17ab14 */*: Refactor java/openjdk7 removal
- java/openjdk7* has been removed from the tree since 2022-09-03 however
  the relevant codebases in bsd.java.mk has not been removed and the
  consumers has also not been updated to use the next jdk version. This
  commit updates all relevant consumers to use JAVA_VERSION=8 instead of
  JAVA_VERSION=1.7
- Since the introduction of jdk version 18 it looks like similar with
  jdk version 8(java version string 1.8). This is prone to error as it
  looks similar and is only seperated by a '.'. Remove using
  JAVA_VERSION with dotted fomat of java version string and update all
  consumers to utilize version 8 instead of 1.8.

Approved by:	portmgr (blanket)
2023-04-04 13:10:53 -05:00

52 lines
1.4 KiB
Makefile

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
WWW= https://minecraft.net/
RUN_DEPENDS= ${JAVALIBDIR}/lwjgl/lwjgl.jar:games/lwjgl \
xrandr:x11/xrandr
USES= openal
USE_JAVA= yes
JAVA_VERSION= 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>