summaryrefslogtreecommitdiff
path: root/games/openrct2/Makefile
blob: 493f2457c4d8bfef07be3c3031df01a2aa961fc6 (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
# $NetBSD: Makefile,v 1.12 2020/11/05 09:08:13 ryoon Exp $

DISTNAME=	openrct2-0.2.4
PKGREVISION=	10
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_GITHUB:=OpenRCT2/}
GITHUB_PROJECT=	OpenRCT2
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/OpenRCT2/OpenRCT2/
COMMENT=	Open source reimplementation of RollerCoaster Tycoon 2
LICENSE=	gnu-gpl-v3

USE_CMAKE=	yes
USE_TOOLS+=	pkg-config
USE_LANGUAGES=	c c++17

# C++17
GCC_REQD+=	7

CMAKE_ARGS+=	-DCMAKE_BUILD_TYPE="Release"

CXXFLAGS+=	-DORCT2_RESOURCE_DIR=\"${PREFIX}/share/openrct2\"

CONFIGURE_DIRS=	build
CMAKE_ARG_PATH=	..

# XXX it cannot be built without an Internet connection.
# Fails during install stage: 
# CMake Error at cmake_install.cmake:48 (file):
#  file DOWNLOAD HASH mismatch
#
#    for file: [/wrk/games/openrct2/work/.destdir/p/share/openrct2/title/title-sequences.zip]
#      expected hash: [304d13a126c15bf2c86ff13b81a2f2cc1856ac8d]
#        actual hash: [da39a3ee5e6b4b0d3255bfef95601890afd80709]
#             status: [6;"Couldn't resolve host name"]
#

pre-configure:
	${MKDIR} ${WRKSRC}/build

.include "../../archivers/libzip/buildlink3.mk"
.include "../../audio/speexdsp/buildlink3.mk"
.include "../../devel/SDL2/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../textproc/icu/buildlink3.mk"
.include "../../textproc/jansson/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"