diff options
author | Cameron Katri <me@cameronkatri.com> | 2021-07-16 10:16:01 -0400 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-07-16 10:16:01 -0400 |
commit | 8a1b679969245ed7944ca397b5a9df4370166b68 (patch) | |
tree | 355641dbc9d8e351929a54a31a17d605ff6b8d56 /games/multimc/Makefile | |
parent | 1dbd8d488ab44da4daea2a36d251d04f0bb7db70 (diff) | |
download | freebsd-ports-8a1b679969245ed7944ca397b5a9df4370166b68.tar.gz freebsd-ports-8a1b679969245ed7944ca397b5a9df4370166b68.tar.zst freebsd-ports-8a1b679969245ed7944ca397b5a9df4370166b68.zip |
Add multimc with patch to autodetect minecraft-runtime
Diffstat (limited to 'games/multimc/Makefile')
-rw-r--r-- | games/multimc/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/games/multimc/Makefile b/games/multimc/Makefile new file mode 100644 index 0000000..5245a7c --- /dev/null +++ b/games/multimc/Makefile @@ -0,0 +1,36 @@ +PORTNAME= multimc +DISTVERSION= 0.6.12 +CATEGORIES= games java + +MAINTAINER= me@cameronkatri.com +COMMENT= Minecraft launcher with the ability to manage multiple instances + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/COPYING.md + +RUN_DEPENDS= lwjgl>=2.9.3:games/lwjgl \ + ${JAVAJARDIR}/lwjgl3/lwjgl.jar:games/lwjgl3 + +USES= cmake compiler:c++14-lang qt:5 +USE_GITHUB= yes +GH_ACCOUNT= MultiMC +GH_PROJECT= MultiMC5 +GH_TUPLE= MultiMC:libnbtplusplus:508eda8:libnbtplusplus/libraries/libnbtplusplus \ + MultiMC:quazip:3691d57:quazip/libraries/quazip +USE_LDCONFIG= yes +USE_JAVA= 1.8+ +USE_QT= core concurrent gui network testlib_build widgets xml \ + buildtools_build qmake_build + +CMAKE_ARGS= -DMultiMC_LAYOUT="lin-system" +CXXFLAGS+= -Wno-inconsistent-missing-override \ + -Wno-delete-non-virtual-dtor \ + -DLWJGL_DIR='\"${LOCALBASE}/lib/lwjgl\"' + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libMultiMC_*.so + ${INSTALL_DATA} ${WRKSRC}/application/package/linux/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/ + ${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/${PORTNAME}.svg + ${INSTALL_DATA} ${WRKSRC}/application/resources/multimc/scalable/multimc.svg ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/${PORTNAME}.svg + +.include <bsd.port.mk> |