For better compatibility with the modern releases of Minecraft, switch to

Java 11 by default, and remove lwjgl 2 runtime dependency.

Also add a pkg-readme to tell players how to install java 1.8 and lwjgl 2
so they can play older (and especially modded) versions.

OK maintainer
This commit is contained in:
phessler 2021-03-05 21:03:50 +00:00
parent 7d385353d4
commit 2b2bf74837
3 changed files with 14 additions and 5 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.2 2021/02/28 09:54:38 phessler Exp $
# $OpenBSD: Makefile,v 1.3 2021/03/05 21:03:50 phessler Exp $
COMMENT = free and open-source launcher for Minecraft
# git clone --recurse-submodules -b 0.6.11 https://github.com/MultiMC/MultiMC5
DISTNAME = multimc-0.6.11
MASTER_SITES = https://distfiles.yukiisbo.red/
REVISION = 0
REVISION = 1
CATEGORIES = games
@ -22,13 +22,13 @@ WANTLIB += Qt5Network Qt5Widgets Qt5Xml c m z
MODULES = devel/cmake \
x11/qt5 \
java
MODJAVA_VER = 1.8
MODJAVA_VER = 11
RUN_DEPENDS = audio/openal \
games/lwjgl \
games/lwjgl3 \
java/javaPathHelper
# Keep lwjgl directory for the optional dependency
CXXFLAGS += -DLWJGL_DIR='\"${LOCALBASE}/share/lwjgl/\"' \
-DLWJGL3_DIR='\"${LOCALBASE}/share/lwjgl3/\"' \
-DJAVAPATHHELPER_PATH='\"${LOCALBASE}/bin/javaPathHelper\"'

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2020/09/21 07:22:37 kmos Exp $
@comment $OpenBSD: PLIST,v 1.2 2021/03/05 21:03:50 phessler Exp $
@bin bin/multimc
@so lib/libMultiMC_gui.so
@so lib/libMultiMC_iconfix.so
@ -7,6 +7,7 @@
@so lib/libMultiMC_quazip.so
@so lib/libMultiMC_rainbow.so
@so lib/libMultiMC_unpack200.so
share/doc/pkg-readmes/${PKGSTEM}
share/multimc/
share/multimc/jars/
share/multimc/jars/JavaCheck.jar

8
games/multimc/pkg/README Normal file
View File

@ -0,0 +1,8 @@
The defaults of multimc are set up to play the most recent release of
Minecraft. Older versions of Minecraft can still be played, with some
optional settings.
To play Minecraft 1.12 and older:
# pkg_add lwjgl jdk%1.8
Add the instance you wish to play, then Edit Instance | Settings
and change Java installation to use /usr/local/jdk-1.8.0/bin/java