blob: 8836a46e563468bfd183263cd70fdfba214292e3 (
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
|
# $NetBSD: options.mk,v 1.5 2018/09/06 09:33:38 nia Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.retroarch
PKG_SUPPORTED_OPTIONS+= sdl2 ffmpeg freetype qt5 x11 caca
PKG_SUPPORTED_OPTIONS+= alsa jack openal pulseaudio libusb-1
PKG_SUPPORTED_OPTIONS+= libxml2 # Deprecated
PKG_SUGGESTED_OPTIONS+= sdl2 ffmpeg freetype x11 openal
.if ${OPSYS} == "Linux"
PKG_SUPPORTED_OPTIONS+= udev
.endif
PKG_SUGGESTED_OPTIONS.Linux+= alsa pulseaudio udev
PKG_OPTIONS_OPTIONAL_GROUPS+= gl
PKG_OPTIONS_GROUP.gl+= opengl
.include "../../mk/bsd.fast.prefs.mk"
.if !empty(MACHINE_ARCH:M*arm*)
CONFIGURE_ARGS+= --enable-floathard
PKG_OPTIONS_GROUP.gl+= rpi
PKG_SUPPORTED_OPTIONS+= simd
. if !empty(MACHINE_ARCH:M*armv7*)
PKG_SUGGESTED_OPTIONS+= simd
. endif
.endif
.if !empty(MACHINE_PLATFORM:MNetBSD-*-arm*)
PKG_SUGGESTED_OPTIONS+= rpi
.else
PKG_SUGGESTED_OPTIONS+= opengl
.endif
.include "../../mk/bsd.options.mk"
.if !empty(MACHINE_ARCH:M*arm*)
. if !empty(PKG_OPTIONS:Msimd)
CONFIGURE_ARGS+= --enable-neon
. else
CONFIGURE_ARGS+= --disable-neon
. endif
.endif
.if !empty(PKG_OPTIONS:Mx11)
CONFIGURE_ARGS+= --enable-x11
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXxf86vm/buildlink3.mk"
.include "../../x11/libXinerama/buildlink3.mk"
.include "../../x11/libxcb/buildlink3.mk"
.include "../../x11/libxkbcommon/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-x11
.endif
#
# Graphics acceleration options
#
# Use standard Mesa OpenGL
.if !empty(PKG_OPTIONS:Mopengl)
.include "../../graphics/MesaLib/buildlink3.mk"
CONFIGURE_ARGS+= --enable-opengl
# Enable use of the Raspberry Pi GPU driver
.elif !empty(PKG_OPTIONS:Mrpi)
.include "../../misc/raspberrypi-userland/buildlink3.mk"
SUBST_CLASSES+= vc
SUBST_STAGE.vc= pre-configure
SUBST_MESSAGE.vc= Fixing path to VideoCore libraries.
SUBST_FILES.vc= qb/config.libs.sh
SUBST_SED.vc+= -e 's;/opt/vc;${PREFIX};g'
CONFIGURE_ARGS+= --enable-opengles
# Disable any graphics acceleration library
.else
CONFIGURE_ARGS+= --disable-egl
CONFIGURE_ARGS+= --disable-opengl
CONFIGURE_ARGS+= --disable-vulkan
CONFIGURE_ARGS+= --disable-vulkan_display
CONFIGURE_ARGS+= --disable-wayland
.endif
.if !empty(PKG_OPTIONS:Mudev)
# To support keyboard callback interface in udev, the libxkbcommon package
# (version 0.3 and up) is required. It is used to translate raw evdev events
# to printable characters. It does not depend on Xorg, but it depends on X11
# keyboard layout files being installed.
.include "../../x11/libxkbcommon/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-udev
.endif
.if !empty(PKG_OPTIONS:Msdl2)
CONFIGURE_ARGS+= --enable-sdl2
.include "../../devel/SDL2/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-sdl2
.endif
.if !empty(PKG_OPTIONS:Mffmpeg)
CONFIGURE_ARGS+= --enable-ffmpeg
.include "../../multimedia/ffmpeg4/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-ffmpeg
.endif
.if !empty(PKG_OPTIONS:Mfreetype)
CONFIGURE_ARGS+= --enable-freetype
.include "../../graphics/freetype2/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-freetype
.endif
.if !empty(PKG_OPTIONS:Malsa)
CONFIGURE_ARGS+= --enable-alsa
.include "../../audio/alsa-lib/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-alsa
.endif
.if !empty(PKG_OPTIONS:Mjack)
CONFIGURE_ARGS+= --enable-jack
.include "../../audio/jack/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-jack
.endif
.if !empty(PKG_OPTIONS:Mopenal)
CONFIGURE_ARGS+= --enable-al
.include "../../audio/openal-soft/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-al
.endif
.if !empty(PKG_OPTIONS:Mpulseaudio)
CONFIGURE_ARGS+= --enable-pulse
.include "../../audio/pulseaudio/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-pulse
.endif
.if !empty(PKG_OPTIONS:Mqt5)
CONFIGURE_ARGS+= --enable-qt
.include "../../x11/qt5-qtbase/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-qt
.endif
.if !empty(PKG_OPTIONS:Mcaca)
CONFIGURE_ARGS+= --enable-caca
.include "../../graphics/libcaca/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-caca
.endif
.if !empty(PKG_OPTIONS:Mlibxml2)
CONFIGURE_ARGS+= --enable-libxml2
.include "../../textproc/libxml2/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-libxml2
.endif
.if !empty(PKG_OPTIONS:Mlibusb-1)
CONFIGURE_ARGS+= --enable-libusb
.include "../../devel/libusb1/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-libusb
.endif
|