blob: dc3fc25c685f3cdd006dcbac0a11e66888b82206 (
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
|
# $NetBSD: options.mk,v 1.22 2019/07/02 06:39:40 nia Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.cmus
PKG_SUPPORTED_OPTIONS+= alsa flac mad vorbis libao musepack faad
PKG_SUPPORTED_OPTIONS+= wavpack ffmpeg opus jack pulseaudio
PKG_OPTIONS_OPTIONAL_GROUPS= mod
PKG_OPTIONS_GROUP.mod= modplug mikmod
PKG_SUGGESTED_OPTIONS+= faad flac libao mad modplug opus vorbis
PKG_SUGGESTED_OPTIONS.Linux+= alsa
PKG_OPTIONS_LEGACY_OPTS+= ao:libao
PKG_OPTIONS_LEGACY_OPTS+= mpcdec:musepack
.include "../../mk/bsd.options.mk"
PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS}
###
### Backends
###
# AO support
#
.if !empty(PKG_OPTIONS:Mlibao)
. include "../../audio/libao/buildlink3.mk"
CONFIGURE_ARGS+= CONFIG_AO=y
PLIST.libao= yes
.else
CONFIGURE_ARGS+= CONFIG_AO=n
.endif
# ALSA support
#
.if !empty(PKG_OPTIONS:Malsa)
. include "../../audio/alsa-lib/buildlink3.mk"
CONFIGURE_ARGS+= CONFIG_ALSA=y
PLIST.alsa= yes
.else
CONFIGURE_ARGS+= CONFIG_ALSA=n
.endif
# PULSE support
#
.if !empty(PKG_OPTIONS:Mpulseaudio)
. include "../../audio/pulseaudio/buildlink3.mk"
CONFIGURE_ARGS+= CONFIG_PULSE=y
PLIST.pulseaudio= yes
.else
CONFIGURE_ARGS+= CONFIG_PULSE=n
.endif
# JACK support
#
.if !empty(PKG_OPTIONS:Mjack)
.include "../../audio/jack/buildlink3.mk"
.include "../../audio/libsamplerate/buildlink3.mk"
CONFIGURE_ARGS+= CONFIG_JACK=y
CONFIGURE_ARGS+= CONFIG_SAMPLERATE=y
PLIST.jack= yes
.else
CONFIGURE_ARGS+= CONFIG_JACK=n
CONFIGURE_ARGS+= CONFIG_SAMPLERATE=n
.endif
###
### Codecs
###
# MAD support
#
.if !empty(PKG_OPTIONS:Mmad)
.include "../../audio/libmad/buildlink3.mk"
CONFIGURE_ARGS+= CONFIG_MAD=y
PLIST.mad= yes
.else
CONFIGURE_ARGS+= CONFIG_MAD=n
.endif
# VORBIS support
#
.if !empty(PKG_OPTIONS:Mvorbis)
.include "../../audio/libvorbis/buildlink3.mk"
CONFIGURE_ARGS+= CONFIG_VORBIS=y
PLIST.vorbis= yes
.else
CONFIGURE_ARGS+= CONFIG_VORBIS=n
.endif
# FLAC support
#
.if !empty(PKG_OPTIONS:Mflac)
.include "../../audio/flac/buildlink3.mk"
CONFIGURE_ARGS+= CONFIG_FLAC=y
PLIST.flac= yes
.else
CONFIGURE_ARGS+= CONFIG_FLAC=n
.endif
# MPCDEC support
#
.if !empty(PKG_OPTIONS:Mmusepack)
.include "../../audio/musepack/buildlink3.mk"
CONFIGURE_ARGS+= CONFIG_MPC=y
PLIST.musepack= yes
.else
CONFIGURE_ARGS+= CONFIG_MPC=n
.endif
# VAWPACK support
#
.if !empty(PKG_OPTIONS:Mwavpack)
.include "../../audio/wavpack/buildlink3.mk"
CONFIGURE_ARGS+= CONFIG_WAVPACK=y
PLIST.wavpack= yes
.else
CONFIGURE_ARGS+= CONFIG_WAVPACK=n
.endif
# FFMPEG support
#
.if !empty(PKG_OPTIONS:Mffmpeg)
.include "../../multimedia/ffmpeg4/buildlink3.mk"
CONFIGURE_ARGS+= CONFIG_FFMPEG=y
PLIST.ffmpeg= yes
.else
CONFIGURE_ARGS+= CONFIG_FFMPEG=n
.endif
# modplay support
#
.if !empty(PKG_OPTIONS:Mmikmod)
.include "../../audio/libmikmod/buildlink3.mk"
.include "../../audio/libaudiofile/buildlink3.mk"
CONFIGURE_ARGS+= CONFIG_MODPLUG=n
CONFIGURE_ARGS+= CONFIG_MIKMOD=y
PLIST.mikmod= yes
.endif
.if !empty(PKG_OPTIONS:Mmodplug)
.include "../../audio/libmodplug/buildlink3.mk"
CONFIGURE_ARGS+= CONFIG_MODPLUG=y
CONFIGURE_ARGS+= CONFIG_MIKMOD=n
PLIST.modplug= yes
.endif
# FAAD support
#
.if !empty(PKG_OPTIONS:Mfaad)
.include "../../audio/faad2/buildlink3.mk"
.include "../../multimedia/mp4v2/buildlink3.mk"
CONFIGURE_ARGS+= CONFIG_AAC=y
CONFIGURE_ARGS+= CONFIG_MP4=y
PLIST.faad= yes
.else
CONFIGURE_ARGS+= CONFIG_AAC=n
CONFIGURE_ARGS+= CONFIG_MP4=n
.endif
# Opus support
#
.if !empty(PKG_OPTIONS:Mopus)
.include "../../audio/opusfile/buildlink3.mk"
CONFIGURE_ARGS+= CONFIG_OPUS=y
PLIST.opus= yes
.else
CONFIGURE_ARGS+= CONFIG_OPUS=n
.endif
|