summaryrefslogtreecommitdiff
path: root/emulators/libretro-mupen64plus/options.mk
blob: 6edf05c00621ed822918096917e5578e6ca9596e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# $NetBSD: options.mk,v 1.1 2015/02/04 23:02:12 jmcneill Exp $

.include "../../mk/bsd.prefs.mk"

PKG_OPTIONS_VAR=	PKG_OPTIONS.libretro-mupen64plus

.if !empty(MACHINE_ARCH:M*arm*)
PKG_SUPPORTED_OPTIONS+=	rpi dynarec
PKG_SUGGESTED_OPTIONS+=	rpi dynarec
MUPEN64_DYNAREC_ARCH=	arm
.endif

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mrpi)
MAKE_ENV+=	platform=rpi
.include "../../misc/raspberrypi-userland/buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Mdynarec)
MAKE_ENV+=	WITH_DYNAREC=${MUPEN64_DYNAREC_ARCH}
.endif