summaryrefslogtreecommitdiff
path: root/emulators/openmsx/options.mk
blob: eaa62647180669fe324c5644d0093e6b1bdba94f (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
# $NetBSD: options.mk,v 1.1 2021/08/31 10:57:08 nia Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.openmsx
PKG_SUPPORTED_OPTIONS=	opengl theora

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

.if ${OPSYS} == "Linux"
PKG_SUPPORTED_OPTIONS+=	alsa
PKG_SUGGESTED_OPTIONS=	alsa opengl theora
.else
PKG_SUGGESTED_OPTIONS=	opengl theora
.endif

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

.if !empty(PKG_OPTIONS:Malsa)
MESON_ARGS+=	-Dalsamidi=enabled
.  include "../../audio/alsa-lib/buildlink3.mk"
.else
MESON_ARGS+=	-Dalsamidi=disabled
.endif

.if !empty(PKG_OPTIONS:Mopengl)
MESON_ARGS+=	-Dglrenderer=enabled
.  include "../../graphics/glew/buildlink3.mk"
.else
MESON_ARGS+=	-Dglrenderer=disabled
.endif

.if !empty(PKG_OPTIONS:Mtheora)
MESON_ARGS+=	-Dlaserdisc=enabled
.  include "../../audio/libvorbis/buildlink3.mk"
.  include "../../multimedia/libogg/buildlink3.mk"
.  include "../../multimedia/libtheora/buildlink3.mk"
.else
MESON_ARGS+=	-Dlaserdisc=disabled
.endif