summaryrefslogtreecommitdiff
path: root/games/multimc/Makefile
blob: 0dcb0209e8448d016df028f90f8a1d88c77242e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $FreeBSD$

PORTNAME=	multimc
DISTVERSION=	0.6.5
CATEGORIES=	games java

MAINTAINER=	me@tsundoku.ne.jp
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

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"
CMAKE_OFF=	MultiMC_UPDATER
CXXFLAGS+=	-Wno-inconsistent-missing-override \
		-Wno-delete-non-virtual-dtor \
		-DLWJGL_DIR='\"${LOCALBASE}/lib/lwjgl2.9.3\"'

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libMultiMC_*.so

.include <bsd.port.mk>