summaryrefslogtreecommitdiff
path: root/emulators/vice/options.mk
blob: 4d5152ef6287a148ba2eb4eb021318c21f0075b1 (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
40
41
42
43
44
45
46
47
48
49
# $NetBSD: options.mk,v 1.11 2019/12/31 14:42:22 rhialto Exp $

PKG_OPTIONS_VAR=		PKG_OPTIONS.vice
PKG_SUPPORTED_OPTIONS=		ffmpeg x64 cpuhistory
PKG_OPTIONS_REQUIRED_GROUPS=	gui
PKG_OPTIONS_GROUP.gui=		gtk3 sdl sdl2
PKG_SUGGESTED_OPTIONS=		gtk3 ffmpeg

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

PLIST_VARS+=	gtk sdl x64

.if !empty(PKG_OPTIONS:Mgtk3)
CONFIGURE_ARGS+=	--enable-native-gtk3ui
PLIST.gtk=		yes
.  include "../../x11/gtk3/buildlink3.mk"
TOOL_DEPENDS+=		glib2-tools>=2.56:../../devel/glib2-tools
.  include "../../graphics/glew/buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Msdl)
CONFIGURE_ARGS+=	--enable-sdlui
PLIST.sdl=		yes
.  include "../../devel/SDL/buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Msdl2)
CONFIGURE_ARGS+=	--enable-sdlui2
PLIST.sdl=		yes
.  include "../../devel/SDL2/buildlink3.mk"
.endif

# If desired, ffmpeg and lame can be build-time-only dependencies,
# since they are loaded dynamically only.
.if !empty(PKG_OPTIONS:Mffmpeg)
#BUILDLINK_DEPMETHOD.ffmpeg?=	build
CONFIGURE_ARGS+=	--enable-external-ffmpeg
.  include "../../multimedia/ffmpeg3/buildlink3.mk"
.endif

# Building x64 is deprecated, in favour of x64sc (but that is slower).
.if !empty(PKG_OPTIONS:Mx64)
CONFIGURE_ARGS+=	--enable-x64
PLIST.x64=		yes
.endif

.if !empty(PKG_OPTIONS:Mcpuhistory)
CONFIGURE_ARGS+=	--enable-cpuhistory
.endif