summaryrefslogtreecommitdiff
path: root/games/libretro-nxengine/Makefile
blob: 39a84e5ecd95fea05fd15970d77c2e6962a8494f (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
# $NetBSD: Makefile,v 1.4 2020/05/20 06:09:06 rillig Exp $

DISTNAME=	libretro-nxengine-20181126
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_GITHUB:=libretro/}
GITHUB_PROJECT=	nxengine-libretro
GITHUB_TAG=	0fd3d36eeb6339eb3c1cc185b0b6bd589331b1a9

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://docs.libretro.com/library/nxengine/
COMMENT=	Libretro core based on the NXEngine game engine for Cave Story
LICENSE=	gnu-gpl-v3

EXTRACT_USING=	bsdtar
USE_TOOLS+=	gmake
USE_LANGUAGES=	c c++

.include "../../mk/endian.mk"

.if ${MACHINE_ENDIAN} == "big"
CFLAGS+=	-DMSB_FIRST
.endif

BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,--version-script=nxengine/libretro/link.T
BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,-no-undefined

# nxengine/graphics/font.cpp: In function 'bool font_init()':
# nxengine/graphics/font.cpp:69:26: error: array subscript has type 'char' [-Werror=char-subscripts]
#    if (whitefont.letters[c]->h > fontheight)
# Maybe fix this later.
BUILDLINK_TRANSFORM+=	rm:-Werror=char-subscripts

INSTALLATION_DIRS+=	${PREFIX}/lib/libretro

do-install:
	${INSTALL_LIB} ${WRKSRC}/nxengine_libretro.so \
	    ${DESTDIR}${PREFIX}/lib/libretro/nxengine_libretro.so

.include "../../mk/bsd.pkg.mk"