diff options
Diffstat (limited to 'http/palemoon/CONFIGURE')
-rwxr-xr-x | http/palemoon/CONFIGURE | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/http/palemoon/CONFIGURE b/http/palemoon/CONFIGURE new file mode 100755 index 0000000000..765a237334 --- /dev/null +++ b/http/palemoon/CONFIGURE @@ -0,0 +1,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" |