summaryrefslogtreecommitdiff
path: root/emulators/xmame/options.mk
blob: 94061a9e39d3095062e87ef12c70811f942d58c0 (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
# $NetBSD: options.mk,v 1.2 2004/11/08 14:54:18 wiz Exp $
#

PKG_OPTIONS_VAR=	PKG_OPTIONS.xmame
PKG_SUPPORTED_OPTIONS=	sdl opengl esound
.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Msdl)
MAME_DISP_METHOD?=	SDL
.include "../../devel/SDL/buildlink3.mk"
.elif !empty(PKG_OPTIONS:Mopengl)
MAME_DISP_METHOD?=	xgl
.include "../../graphics/Mesa/buildlink3.mk"
.else
MAME_DISP_METHOD?=	x11
.endif

.if !empty(PKG_OPTIONS:Msdl) && !empty(PKG_OPTIONS:Mopengl)
PKG_SKIP_REASON+=	"Only one display method is allowed."
.endif

.if !empty(PKG_OPTIONS:Mesound)
MAKE_FLAGS+=		SOUND_ESOUND=1
.include "../../audio/esound/buildlink3.mk"
.endif