Sun Jul 17 17:37:11 2022 UTC ()
firefox: enable webrtc by default only on x86

libwebrtc build is borked on at least arm and aarch64


(tnn)
diff -r1.66 -r1.67 pkgsrc/www/firefox/options.mk

cvs diff -r1.66 -r1.67 pkgsrc/www/firefox/options.mk (expand / switch to unified diff)

--- pkgsrc/www/firefox/options.mk 2022/05/13 14:12:53 1.66
+++ pkgsrc/www/firefox/options.mk 2022/07/17 17:37:11 1.67
@@ -1,33 +1,33 @@ @@ -1,33 +1,33 @@
1# $NetBSD: options.mk,v 1.66 2022/05/13 14:12:53 ryoon Exp $ 1# $NetBSD: options.mk,v 1.67 2022/07/17 17:37:11 tnn Exp $
2 2
3PKG_OPTIONS_VAR= PKG_OPTIONS.firefox 3PKG_OPTIONS_VAR= PKG_OPTIONS.firefox
4 4
5PKG_SUPPORTED_OPTIONS= official-mozilla-branding 5PKG_SUPPORTED_OPTIONS= official-mozilla-branding
6PKG_SUPPORTED_OPTIONS+= debug debug-info mozilla-jemalloc webrtc 6PKG_SUPPORTED_OPTIONS+= debug debug-info mozilla-jemalloc webrtc
7PKG_SUPPORTED_OPTIONS+= dbus 7PKG_SUPPORTED_OPTIONS+= dbus
8PKG_SUPPORTED_OPTIONS+= alsa pulseaudio sunaudio jack 8PKG_SUPPORTED_OPTIONS+= alsa pulseaudio sunaudio jack
9 9
10PKG_SUGGESTED_OPTIONS+= dbus 10PKG_SUGGESTED_OPTIONS+= dbus
11 11
12.if ${OPSYS} == "Linux" 12.if ${OPSYS} == "Linux"
13PKG_SUGGESTED_OPTIONS+= pulseaudio mozilla-jemalloc webrtc 13PKG_SUGGESTED_OPTIONS+= pulseaudio mozilla-jemalloc webrtc
14.endif 14.endif
15 15
16.if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS" 16.if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS"
17PKG_SUGGESTED_OPTIONS+= sunaudio 17PKG_SUGGESTED_OPTIONS+= sunaudio
18.endif 18.endif
19 19
20.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} >= 090000 20.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} >= 090000 && (!empty(MACHINE_ARCH:Mx86_64) || !empty(MACHINE_ARCH:Mi386))
21PKG_SUGGESTED_OPTIONS+= webrtc 21PKG_SUGGESTED_OPTIONS+= webrtc
22.endif 22.endif
23 23
24.include "../../mk/bsd.options.mk" 24.include "../../mk/bsd.options.mk"
25 25
26.if !empty(PKG_OPTIONS:Malsa) 26.if !empty(PKG_OPTIONS:Malsa)
27AUDIO_BACKENDS+= alsa 27AUDIO_BACKENDS+= alsa
28.include "../../audio/alsa-lib/buildlink3.mk" 28.include "../../audio/alsa-lib/buildlink3.mk"
29.endif 29.endif
30 30
31.if !empty(PKG_OPTIONS:Mmozilla-jemalloc) 31.if !empty(PKG_OPTIONS:Mmozilla-jemalloc)
32CONFIGURE_ARGS+= --enable-jemalloc 32CONFIGURE_ARGS+= --enable-jemalloc
33CONFIGURE_ARGS+= --enable-replace-malloc 33CONFIGURE_ARGS+= --enable-replace-malloc