blob: 7aad19a90d81df9e11c19d4c44fc368b1851c53d (
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
|
# $NetBSD: options.mk,v 1.17 2021/02/02 12:05:48 ryoon Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.retroarch
PKG_SUPPORTED_OPTIONS+= alsa jack openal pulseaudio
PKG_SUPPORTED_OPTIONS+= debug caca ffmpeg freetype sixel qt5
.include "../../mk/bsd.fast.prefs.mk"
PKG_OPTIONS_OPTIONAL_GROUPS+= gl
.if ${OPSYS} == "NetBSD" && !empty(MACHINE_ARCH:M*arm*)
PKG_OPTIONS_GROUP.gl+= rpi
.endif
PKG_OPTIONS_GROUP.gl+= opengl
PKG_SUGGESTED_OPTIONS= freetype opengl
PKG_SUGGESTED_OPTIONS.Linux+= alsa pulseaudio
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+= --enable-debug
.endif
.if !empty(PKG_OPTIONS:Msixel)
CONFIGURE_ARGS+= --enable-sixel
.include "../../graphics/libsixel/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-sixel
.endif
#
# Graphics acceleration options
#
# Use standard Mesa OpenGL
.if !empty(PKG_OPTIONS:Mopengl)
CONFIGURE_ARGS+= --enable-opengl
. if ${OPSYS} != "Darwin"
. include "../../graphics/MesaLib/buildlink3.mk"
. endif
# 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-opengl_core
CONFIGURE_ARGS+= --disable-vulkan
CONFIGURE_ARGS+= --disable-vulkan_display
.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)
.include "../../x11/qt5-qtbase/buildlink3.mk"
# error: "You must build your code with position independent code if Qt was built with -reduce-relocations."
CFLAGS+= -fPIC
CONFIGURE_ARGS+= --enable-qt
.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
|