summaryrefslogtreecommitdiff
path: root/games/minetest/Makefile
blob: f94434f3af02232229b67573168a62b15c9bcaa1 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# $NetBSD: Makefile,v 1.16 2020/11/05 09:08:13 ryoon Exp $

PKGNAME=	minetest-5.1.1
PKGREVISION=	5
CATEGORIES=	games
DIST_SUBDIR=	minetest-${PKGVERSION_NOREV}
DISTFILES+=	minetest.tar.gz
DISTFILES+=	minetest-game.tar.gz
SITES.minetest.tar.gz=\
	-https://github.com/minetest/minetest/archive/${PKGVERSION_NOREV}.tar.gz
SITES.minetest-game.tar.gz=\
	-https://github.com/minetest/minetest_game/archive/${PKGVERSION_NOREV}.tar.gz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://www.minetest.net/
COMMENT=	Infinite-world block sandbox with survival and crafting
LICENSE=	gnu-lgpl-v2.1 AND cc-by-sa-v3.0 AND apache-2.0

WRKSRC=		${WRKDIR}/minetest-${PKGVERSION_NOREV}

USE_CMAKE=	yes
USE_TOOLS+=	msgfmt
USE_LANGUAGES=	c c++11

# "Insufficient gcc version, found 4.8.5.  Version 4.9 or higher is required."
GCC_REQD+=	4.9

CMAKE_ARGS+=	-DCMAKE_BUILD_TYPE="Release"

CMAKE_ARGS+=	-DBUILD_CLIENT=TRUE
CMAKE_ARGS+=	-DBUILD_SERVER=TRUE

CMAKE_ARGS+=	-DENABLE_POSTGRESQL=FALSE
CMAKE_ARGS+=	-DENABLE_LEVELDB=FALSE
CMAKE_ARGS+=	-DENABLE_REDIS=FALSE
CMAKE_ARGS+=	-DENABLE_SPATIAL=FALSE
CMAKE_ARGS+=	-DENABLE_LUAJIT=FALSE

CMAKE_ARGS+=	-DIRRLICHT_INCLUDE_DIR=${BUILDLINK_PREFIX.irrlicht}/include/irrlicht

post-extract:
	${MV} ${WRKDIR}/minetest_game-${PKGVERSION_NOREV} \
	    ${WRKSRC}/games/minetest_game

.include "../../archivers/bzip2/buildlink3.mk"
.include "../../audio/openal-soft/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/gmp/buildlink3.mk"
.include "../../devel/ncursesw/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/irrlicht/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libICE/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/libXxf86vm/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"