summaryrefslogtreecommitdiffstats
path: root/audio-drivers/pulseaudio/DEPENDS
blob: 3b101bd63dc5f78e0635d2a1b9967ce23b272ec5 (plain) (blame)
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
. "$GRIMOIRE"/MESON_DEPENDS &&

depends cmake      &&
depends check      &&
depends libsndfile &&

if [[ "$PULSE_DB" == 'gdbm' ]]; then
   depends gdbm "database=gdbm"
elif [[ "$PULSE_DB" == 'tdb' ]]; then
   depends tdb "database=tdb"
else
   message "using configuration database $PULSE_DB"
fi &&

# gettext is needed in order to build the desktop files
depends GETTEXT   &&
optional_depends libx11                           \
                 "x11=enabled"                   \
                 "x11=disabled"                  \
                 "Enable X11 support?"            &&

if is_depends_enabled $SPELL libx11; then
  depends  libice   &&
  depends  libsm    &&
  depends  libxext  &&
  depends  libxtst
fi  &&
optional_depends alsa-lib                     \
                 "alsa=enabled"                  \
                 "alsa=disabled"                 \
                 "Enable Advanced Linux Sound Architecture support? (RECOMMENDED)"  &&
optional_depends elogind                       \
                 "elogind=enabled"                 \
                 "elogind=disabled"                \
                 "Enable elogind support?"     &&
optional_depends glib2                       \
                 "glib=enabled"                 \
                 "glib=disabled"                \
                 "Enable glib2 support?"     &&
optional_depends gtk+3 \
                 "gtk=enabled" \
                 "gtk=disabled" \
                 "for GTK+3 support" &&

if is_depends_enabled $SPELL gtk+3; then
  depends  libxxf86vm
fi  &&

optional_depends gconf2 \
                 "gsettings=enabled" \
                 "gsettings=disabled" \
                 "for gsettings support" &&
optional_depends avahi                            \
                 "avahi=enabled"                     \
                 "avahi=disabled"                    \
                 "for ZerConf configuration support"  &&
optional_depends JACK-DRIVER                      \
                 "jack=enabled"                  \
                 "jack=disabled"                 \
                 "for low-latency sound server support?"  &&
optional_depends libasyncns                       \
                 "asyncns=enabled"               \
                 "asyncns=disabled"              \
                 "for asynchronous service queries?"  &&
optional_depends tcp_wrappers                     \
                 "tcpwrap=enabled"               \
                 "tcpwrap=disabled"              \
                 "Enable TCP network filtering?"  &&
optional_depends lirc                             \
                 "lirc=enabled"                  \
                 "lirc=disabled"                 \
                 "Enable infra-red remote control support?"  &&
optional_depends DEVICE-MANAGER                \
                 "udev=enabled hal-compat=false" \
                 "udev=disabled"              \
                 "for device hotplug support"  &&
optional_depends bluez5 \
                 "bluez5=enabled" \
                 "bluez5=disabled" \
                 "for BlueZ-5 support" &&
optional_depends gstreamer-1.0 \
                 "gstreamer=enabled" \
                 "gstreamer=disabled" \
                 "for GStreamer-based RTP support" &&
if is_depends_enabled $SPELL bluez5 && \
    is_depends_enabled $SPELL gstreamer-1.0; then
  OPTS+=" bluez5-gstreamer=enabled"
fi &&

if is_depends_enabled $SPELL bluez ||
   is_depends_enabled $SPELL bluez5; then
  depends sbc &&
  depends dbus "dbus=enabled"
else
  optional_depends dbus                    \
                   "dbus=enabled"             \
                   "dbus=disabled"            \
                   "for D-BUS system messaging" 
fi &&

optional_depends SSL \
                 "openssl=enabled" \
                 "openssl=disabled" \
                 "for SSL support (Airtunes/RAOP)" &&
optional_depends doxygen \
                 "doxygen=true man=true" \
                 "doxygen=false man=false" \
                 "for doxygen-generated documentation" &&

optional_depends -sub SINGLE fftw \
                'fftw=enabled' \
                'fftw=disabled' \
                'build equalizer' &&

optional_depends orc \
                 'orc=enabled' \
                 'orc=disabled' \
                 'improve code' &&

optional_depends speexdsp \
                 "speex=enabled" \
                 "speex=disabled" \
                 "for speex resampling support" &&

optional_depends soxr \
                 "soxr=enabled" \
                 "soxr=disabled" \
                 "for SoXR resampling support" &&

optional_depends systemd \
                 "systemd=enabled" \
                 "systemd=disabled" \
                 "for systemd support" &&

# not optional, build barks out without
if ! list_find "$PULSEAUDIO_OPTS" adrian-aec=true; then
  message "${MESSAGE_COLOR}Some processor is required, forcing the external one.${DEFAULT_COLOR}" &&
  depends webrtc-audio-processing \
                 "webrtc-aec=enabled"
else
  optional_depends webrtc-audio-processing \
                   "webrtc-aec=enabled" \
                   "webrtc-aec=disabled" \
                   "for WebRTC-based echo canceller"
fi &&

if is_depends_enabled ${SPELL} webrtc-audio-processing; then
  depends -sub CXX gcc
fi &&

suggest_depends  pasystray     ''  ''  'for Preferences tool & System Tray' &&
suggest_depends  paprefs       ''  ''  'for Preferences tool'               &&
suggest_depends  pavucontrol   ''  ''  'for Volume Control tool'            &&
suggest_depends  ncpamixer     ''  ''  'for TUI Volume Control tool'        &&
suggest_depends  pavumeter     ''  ''  'for Volume Meter tool'              &&
suggest_depends  paman         ''  ''  'for Manager tool'