summaryrefslogtreecommitdiff
path: root/audio/musicpd/options.mk
blob: 9bc34f862cbb324a8ada447f58995e2b43ebf61a (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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
# $NetBSD: options.mk,v 1.39 2021/11/01 21:51:20 wiz Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.musicpd

# audio outputs
PKG_SUPPORTED_OPTIONS+=	jack openal libao pulseaudio
# codecs
PKG_SUPPORTED_OPTIONS+=	adplug faad ffmpeg fluidsynth libgme libwildmidi
PKG_SUPPORTED_OPTIONS+=	mikmod modplug musepack wavpack
# codecs (encoding only)
PKG_SUPPORTED_OPTIONS+=	lame shine twolame
# archive formats
PKG_SUPPORTED_OPTIONS+=	bzip2 zziplib
# networking/comms
PKG_SUPPORTED_OPTIONS+=	avahi curl dbus libmms samba shout upnp
# misc
PKG_SUPPORTED_OPTIONS+=	cdparanoia chromaprint musicpd-soundcloud libmpdclient

# no packages yet
# pipewire
# snapcast
# currently broken build:
# sid

PKG_SUGGESTED_OPTIONS=	curl faad ffmpeg libao musepack samplerate shout vorbis
PKG_SUGGESTED_OPTIONS+=	wavpack

PKG_OPTIONS_LEGACY_OPTS+=	game-music-emu:libgme

PKG_OPTIONS_OPTIONAL_GROUPS=	resampler vorbis
PKG_OPTIONS_GROUP.vorbis=	tremor vorbis
PKG_OPTIONS_GROUP.resampler=	samplerate libsoxr

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

.if !empty(PKG_OPTIONS:Madplug)
.  include "../../audio/adplug/buildlink3.mk"
.else
MESON_ARGS+=	-Dadplug=disabled
.endif

.if !empty(PKG_OPTIONS:Mavahi)
.  include "../../net/avahi/buildlink3.mk"
MESON_ARGS+=	-Dzeroconf=avahi
.else
MESON_ARGS+=	-Dzeroconf=auto
.endif

.if !empty(PKG_OPTIONS:Mbzip2)
.  include "../../archivers/bzip2/buildlink3.mk"
.else
MESON_ARGS+=	-Dbzip2=disabled
.endif

.if !empty(PKG_OPTIONS:Mcdparanoia)
.  include "../../misc/libcdio-paranoia/buildlink3.mk"
.else
MESON_ARGS+=	-Dcdio_paranoia=disabled
.endif

.if !empty(PKG_OPTIONS:Mchromaprint)
.  include "../../audio/chromaprint/buildlink3.mk"
.else
MESON_ARGS+=	-Dchromaprint=disabled
.endif

.if !empty(PKG_OPTIONS:Mcurl)
.  include "../../www/curl/buildlink3.mk"
.else
MESON_ARGS+=	-Dcurl=disabled
.endif

.if !empty(PKG_OPTIONS:Mdbus)
.  include "../../sysutils/dbus/buildlink3.mk"
.else
MESON_ARGS+=	-Ddbus=disabled
.endif

.if !empty(PKG_OPTIONS:Mfaad)
.  include "../../audio/faad2/buildlink3.mk"
.else
MESON_ARGS+=	-Dfaad=disabled
.endif

.if !empty(PKG_OPTIONS:Mffmpeg)
.  include "../../multimedia/ffmpeg4/buildlink3.mk"
.else
MESON_ARGS+=	-Dffmpeg=disabled
.endif

.if !empty(PKG_OPTIONS:Mfluidsynth)
.  include "../../audio/fluidsynth/buildlink3.mk"
.else
MESON_ARGS+=	-Dfluidsynth=disabled
.endif

.if !empty(PKG_OPTIONS:Mlibgme)
.  include "../../audio/game-music-emu/buildlink3.mk"
.else
MESON_ARGS+=	-Dgme=disabled
.endif

.if !empty(PKG_OPTIONS:Mjack)
.  include "../../audio/jack/buildlink3.mk"
.else
MESON_ARGS+=	-Djack=disabled
.endif

.if !empty(PKG_OPTIONS:Mlame)
.  include "../../audio/lame/buildlink3.mk"
.else
MESON_ARGS+=	-Dlame=disabled
.endif

.if !empty(PKG_OPTIONS:Mlibao)
.  include "../../audio/libao/buildlink3.mk"
.else
MESON_ARGS+=	-Dao=disabled
.endif

.if !empty(PKG_OPTIONS:Mlibmms)
.  include "../../net/libmms/buildlink3.mk"
.else
MESON_ARGS+=	-Dmms=disabled
.endif

.if !empty(PKG_OPTIONS:Mlibmpdclient)
BUILDLINK_API_DEPENDS.libmpdclient+=	libmpdclient>=2.11
.  include "../../audio/libmpdclient/buildlink3.mk"
.else
MESON_ARGS+=	-Dlibmpdclient=disabled
.endif

.if !empty(PKG_OPTIONS:Mlibsoxr)
.  include "../../audio/libsoxr/buildlink3.mk"
.else
MESON_ARGS+=	-Dsoxr=disabled
.endif

.if !empty(PKG_OPTIONS:Mlibwildmidi)
.  include "../../audio/libwildmidi/buildlink3.mk"
.else
MESON_ARGS+=	-Dwildmidi=disabled
.endif

.if !empty(PKG_OPTIONS:Mmikmod)
.  include "../../audio/libmikmod/buildlink3.mk"
.else
MESON_ARGS+=	-Dmikmod=disabled
.endif

.if !empty(PKG_OPTIONS:Mmodplug)
.  include "../../audio/libmodplug/buildlink3.mk"
.else
MESON_ARGS+=	-Dmodplug=disabled
.endif

.if !empty(PKG_OPTIONS:Mmusepack)
.  include "../../audio/musepack/buildlink3.mk"
.else
MESON_ARGS+=	-Dmpcdec=disabled
.endif

.if !empty(PKG_OPTIONS:Mmusicpd-soundcloud)
BUILDLINK_API_DEPENDS.yajl+=	yajl>=2.1
.  include "../../devel/yajl/buildlink3.mk"
.else
MESON_ARGS+=	-Dyajl=disabled
.endif

.if !empty(PKG_OPTIONS:Mopenal)
.  include "../../audio/openal-soft/buildlink3.mk"
.else
MESON_ARGS+=	-Dopenal=disabled
.endif

.if !empty(PKG_OPTIONS:Mpulseaudio)
.  include "../../audio/pulseaudio/buildlink3.mk"
.else
MESON_ARGS+=	-Dpulse=disabled
.endif

.if !empty(PKG_OPTIONS:Msamba)
.  include "../../net/samba4/buildlink3.mk"
.else
MESON_ARGS+=	-Dsmbclient=disabled
.endif

.if !empty(PKG_OPTIONS:Msamplerate)
.  include "../../audio/libsamplerate/buildlink3.mk"
.else
MESON_ARGS+=	-Dsamplerate=disabled
.endif

.if !empty(PKG_OPTIONS:Mshine)
.  include "../../audio/shine/buildlink3.mk"
.else
MESON_ARGS+=	-Dshine=disabled
.endif

# src/decoder/plugins/meson.build:170:6: ERROR: C++ shared or static library 'resid-builder' not found
#.if !empty(PKG_OPTIONS:Msidplay)
#.  include "../../audio/libsidplay2/buildlink3.mk"
#.else
#MESON_ARGS+=	-Dsidplay=disabled
#.endif

.if !empty(PKG_OPTIONS:Mshout)
.  include "../../audio/libshout/buildlink3.mk"
.  include "../../audio/lame/buildlink3.mk"
.else
MESON_ARGS+=	-Dshout=disabled
.endif

.if !empty(PKG_OPTIONS:Mtremor)
.  include "../../audio/tremor/buildlink3.mk"
.else
MESON_ARGS+=	-Dtremor=disabled
.endif

.if !empty(PKG_OPTIONS:Mtwolame)
.  include "../../audio/twolame/buildlink3.mk"
.else
MESON_ARGS+=	-Dtwolame=disabled
.endif

.if !empty(PKG_OPTIONS:Mvorbis)
.  include "../../audio/libvorbis/buildlink3.mk"
.else
MESON_ARGS+=	-Dvorbis=disabled
MESON_ARGS+=	-Dvorbisenc=disabled
.endif

.if !empty(PKG_OPTIONS:Mupnp)
.  include "../../net/libnpupnp/buildlink3.mk"
.else
MESON_ARGS+=	-Dupnp=disabled
.endif

.if !empty(PKG_OPTIONS:Mwavpack)
.  include "../../audio/wavpack/buildlink3.mk"
.else
MESON_ARGS+=	-Dwavpack=disabled
.endif

.if !empty(PKG_OPTIONS:Mzziplib)
.  include "../../archivers/zziplib/buildlink3.mk"
.else
MESON_ARGS+=	-Dzzip=disabled
.endif