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
41 lines
1002 B
Makefile
41 lines
1002 B
Makefile
# $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 = 1
|
|
|
|
CATEGORIES = games
|
|
|
|
HOMEPAGE = https://multimc.org
|
|
|
|
MAINTAINER = Muhammad Kaisar Arkhan <hi@yukiisbo.red>
|
|
|
|
# Apache 2.0
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} Qt5Concurrent Qt5Core Qt5Gui
|
|
WANTLIB += Qt5Network Qt5Widgets Qt5Xml c m z
|
|
|
|
MODULES = devel/cmake \
|
|
x11/qt5 \
|
|
java
|
|
MODJAVA_VER = 11
|
|
|
|
RUN_DEPENDS = audio/openal \
|
|
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\"'
|
|
|
|
CONFIGURE_ARGS = -DMultiMC_LAYOUT="lin-system"
|
|
|
|
WRKDIST = ${WRKDIR}/MultiMC5
|
|
|
|
.include <bsd.port.mk>
|