summaryrefslogtreecommitdiffstats
path: root/http/palemoon/CONFIGURE
blob: 765a237334728e2fca4dc8a6103d724ef9fc476f (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
config_query_option PALEMOON_OPTS "Enable Personal Security Manager?" y \
                                  "--enable-crypto" \
                                  "--disable-crypto" &&

config_query_option PALEMOON_OPTS "Enable permissions (popup and cookie blocking)?" y \
                                  "--enable-permissions" \
                                  "--disable-permissions" &&

config_query_option PALEMOON_OPTS "Enable safe browsing (anti-phishing) implementation?" n \
                                  "--enable-safe-browsing" \
                                  "--disable-safe-browsing" &&

local PALEMOON_SB &&

if list_find "${PALEMOON_OPTS}" "--enable-safe-browsing"; then
  PALEMOON_SB=y
else
  PALEMOON_SB=n
fi &&

config_query_option PALEMOON_OPTS "Enable URL classifier module?" ${PALEMOON_SB} \
                                  "--enable-url-classifier" \
                                  "--disable-url-classifier" &&

config_query_option PALEMOON_OPTS "Enable use of Skia Graphics Engine?" y \
                                   "--enable-skia" \
                                   "--disable-skia" &&

config_query_option PALEMOON_OPTS "Enable support for WebRTC?" n \
                                   "--enable-webrtc" \
                                   "--disable-webrtc" &&

config_query_option PALEMOON_OPTS "Enable support for WebM media (VP8 video and Vorbis audio)?" y \
                                  "--enable-webm" \
                                  "--disable-webm" &&

config_query_option PALEMOON_OPTS "Enable support for OGG media (Theora video and Vorbis audio)?" y \
                                  "--enable-ogg" \
                                  "--disable-ogg" &&

config_query_option PALEMOON_OPTS "Enable Wave decoder support?" y \
                                  "--enable-wave" \
                                  "--disable-wave" &&

# required for ALSA
if ! list_find "${PALEMOON_OPTS}" "--enable-webm" &&
   ! list_find "${PALEMOON_OPTS}" "--enable-ogg" &&
   ! list_find "${PALEMOON_OPTS}" "--enable-wave"; then
  config_query_option PALEMOON_OPTS "Enable OSS support?" n \
                                    "--enable-oss" \
                                    "--disable-oss"
fi &&

config_query_option PALEMOON_OPTS "Enable support for HTML Speech API?" y \
                                  "--enable-webspeech" \
                                  "--disable-webspeech" &&

config_query_option PALEMOON_OPTS "Enable support for RAW media?" y \
                                  "--enable-raw" \
                                  "--disable-raw" &&

config_query_option PALEMOON_OPTS "Enable support for Opus audio?" y \
                                  "--enable-opus" \
                                  "--disable-opus" &&

config_query_option PALEMOON_OPTS "Enable support for media plugins?" n \
                                  "--enable-media-plugins" \
                                  "--disable-media-plugins" &&

config_query_option PALEMOON_OPTS "Enable support for getUserMedia?" n \
                                  "--enable-media-navigator" \
                                  "--disable-media-navigator" &&

config_query_option PALEMOON_OPTS "Enable gamepad support?" y \
                                   "--enable-gamepad" \
                                   "--disable-gamepad"