summaryrefslogtreecommitdiff
path: root/games/libretro-2048/Makefile
blob: 88ba73d0073fb65fafd3037cc1b8299c61fe5ad3 (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
# $NetBSD: Makefile,v 1.1 2019/02/10 12:39:10 nia Exp $

DISTNAME=	libretro-2048-20181229
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_GITHUB:=libretro/}
GITHUB_PROJECT=	libretro-2048
GITHUB_TAG=	bc05dc6e504e78fd4eaf7bf91f5b3f84a93c2962

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://docs.libretro.com/library/2048/
COMMENT=	Libretro core based on the 2048 puzzle game
LICENSE=	unlicense

EXTRACT_USING=	bsdtar
USE_TOOLS+=	gmake
MAKE_FILE=	Makefile.libretro

CHECK_PORTABILITY_SKIP+=	pixman/configure

MAKE_FLAGS+=	GIT_VERSION="-pkgsrc"

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

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

BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,--no-undefined

INSTALLATION_DIRS+=	${PREFIX}/lib/libretro

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

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