blob: 879dbfb20afd363cbdb22d1ed42cf85982059501 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# $NetBSD: options.mk,v 1.6 2011/04/04 13:42:08 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.vice
PKG_SUPPORTED_OPTIONS= ffmpeg lame vice-fullscreen vice-hwscaling vice-ethernet
PKG_OPTIONS_REQUIRED_GROUPS = gui
PKG_OPTIONS_GROUP.gui = xaw gnome sdl
PKG_SUGGESTED_OPTIONS= ffmpeg lame vice-fullscreen vice-hwscaling vice-ethernet
PKG_SUGGESTED_OPTIONS+= xaw
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mxaw)
. include "../../x11/libXt/buildlink3.mk"
. include "../../x11/libXmu/buildlink3.mk"
. include "../../x11/libXaw/buildlink3.mk"
. include "../../x11/libXpm/buildlink3.mk"
PLIST_SRC += PLIST.x11
.endif
.if !empty(PKG_OPTIONS:Mgnome)
CONFIGURE_ARGS+= --enable-gnomeui
PLIST_SRC+= PLIST.x11
. include "../../x11/gtk2/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Msdl)
CONFIGURE_ARGS+= --enable-sdlui
PLIST_SRC+= PLIST.sdl
. include "../../devel/SDL/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mvice-fullscreen)
CONFIGURE_ARGS+= --enable-fullscreen
. if !empty(PKG_OPTIONS:Mxaw)
. include "../../x11/libXrandr/buildlink3.mk"
. include "../../x11/libXxf86vm/buildlink3.mk"
. endif
. if !empty(PKG_OPTIONS:Mgnome)
. include "../../x11/libXrandr/buildlink3.mk"
. include "../../x11/libXxf86vm/buildlink3.mk"
. endif
. if !empty(PKG_OPTIONS:Msdl)
. endif
.endif
.if !empty(PKG_OPTIONS:Mvice-hwscaling)
. if !empty(PKG_OPTIONS:Mxaw)
. include "../../x11/libXv/buildlink3.mk"
. endif
. if !empty(PKG_OPTIONS:Mgnome)
. include "../../graphics/gtkglext/buildlink3.mk"
. endif
. if !empty(PKG_OPTIONS:Msdl)
. endif
.endif
.if !empty(PKG_OPTIONS:Mvice-ethernet)
CONFIGURE_ARGS+= --enable-ethernet
. include "../../net/libpcap/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-ffmpeg
. include "../../multimedia/ffmpeg/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mlame)
#BUILDLINK_DEPMETHOD.lame?= build
. include "../../audio/lame/buildlink3.mk"
.endif
|