FreeBSD Bugzilla – Attachment 250463 Details for
Bug 246449
www/chromium: enable PulseAudio by default.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
flavorize-chromium-on-audio-backends
chromium.patch (text/plain), 3.14 KB, created by
Yuri Victorovich
on 2024-05-05 17:07:52 UTC
(
hide
)
Description:
flavorize-chromium-on-audio-backends
Filename:
MIME Type:
Creator:
Yuri Victorovich
Created:
2024-05-05 17:07:52 UTC
Size:
3.14 KB
patch
obsolete
>diff --git a/www/chromium/Makefile b/www/chromium/Makefile >index 9a2a287d8e19..45929751bac1 100644 >--- a/www/chromium/Makefile >+++ b/www/chromium/Makefile >@@ -1,5 +1,6 @@ > PORTNAME= chromium > PORTVERSION= 124.0.6367.118 >+PORTREVISION= 1 > CATEGORIES= www wayland > MASTER_SITES= https://commondatastorage.googleapis.com/chromium-browser-official/ \ > https://nerd.hu/distfiles/:external >@@ -15,6 +16,10 @@ LICENSE_COMB= multi > > ONLY_FOR_ARCHS= aarch64 amd64 i386 > >+FLAVORS= alsa pulseaudio sndio >+FLAVOR?= ${FLAVORS:[2]} >+PKGNAMESUFFIX= ${FLAVOR:C/^/-/:S/-pulseaudio//} >+ > BUILD_DEPENDS= bash:shells/bash \ > ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \ > ${PYTHON_PKGNAMEPREFIX}ply>0:devel/py-ply@${PY_FLAVOR} \ >@@ -139,11 +144,36 @@ GN_ARGS+= google_api_key="AIzaSyBsp9n41JLW8jCokwn7vhoaMejDFRd1mp8" > SUB_FILES= chromium-browser.desktop chrome > SUB_LIST+= COMMENT="${COMMENT}" > >+## >+## flavor-defined build options >+## >+ >+.if ${FLAVOR} == alsa >+LIB_DEPENDS+= libasound.so:audio/alsa-lib >+RUN_DEPENDS+= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins \ >+ alsa-lib>=1.1.1_1:audio/alsa-lib >+GN_ARGS+= use_alsa=true >+.else >+GN_ARGS+= use_alsa=false >+.endif >+ >+.if ${FLAVOR} == pulseaudio >+LIB_DEPENDS+= libpulse.so:audio/pulseaudio >+GN_ARGS+= use_pulseaudio=true >+.else >+GN_ARGS+= use_pulseaudio=false >+.endif >+ >+.if ${FLAVOR} == sndio >+LIB_DEPENDS+= libsndio.so:audio/sndio >+GN_ARGS+= use_sndio=true >+.else >+GN_ARGS+= use_sndio=false >+.endif >+ > OPTIONS_DEFINE= CODECS CUPS DEBUG DRIVER KERBEROS LTO PIPEWIRE TEST WIDEVINE >-OPTIONS_DEFAULT= CODECS CUPS DRIVER KERBEROS PIPEWIRE SNDIO >+OPTIONS_DEFAULT= CODECS CUPS DRIVER KERBEROS PIPEWIRE > OPTIONS_EXCLUDE_aarch64=LTO >-OPTIONS_GROUP= AUDIO >-OPTIONS_GROUP_AUDIO= ALSA PULSEAUDIO SNDIO > OPTIONS_RADIO= KERBEROS > OPTIONS_RADIO_KERBEROS= HEIMDAL HEIMDAL_BASE MIT > OPTIONS_SUB= yes >@@ -153,12 +183,6 @@ HEIMDAL_BASE_DESC= Heimdal Kerberos (base) > HEIMDAL_DESC= Heimdal Kerberos (security/heimdal) > MIT_DESC= MIT Kerberos (security/krb5) > >-ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib >-ALSA_RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins \ >- alsa-lib>=1.1.1_1:audio/alsa-lib >-ALSA_VARS= GN_ARGS+=use_alsa=true >-ALSA_VARS_OFF= GN_ARGS+=use_alsa=false >- > CODECS_VARS= GN_ARGS+=proprietary_codecs=true \ > FFMPEG_BRAND="Chrome" > CODECS_VARS_OFF= GN_ARGS+=proprietary_codecs=false \ >@@ -202,18 +226,6 @@ PIPEWIRE_VARS= GN_ARGS+=rtc_use_pipewire=true \ > PIPEWIRE_VARS_OFF= GN_ARGS+=rtc_use_pipewire=false \ > GN_ARGS+=rtc_link_pipewire=false > >-PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio >-PULSEAUDIO_VARS= GN_ARGS+=use_pulseaudio=true >-PULSEAUDIO_VARS_OFF= GN_ARGS+=use_pulseaudio=false >- >-# With SNDIO=on we exclude audio_manager_linux from the build (see >-# media/audio/BUILD.gn) and use audio_manager_openbsd which does not >-# support falling back to ALSA or PulseAudio. >-SNDIO_PREVENTS= ALSA PULSEAUDIO >-SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio >-SNDIO_VARS= GN_ARGS+=use_sndio=true >-SNDIO_VARS_OFF= GN_ARGS+=use_sndio=false >- > WIDEVINE_DESC= Depend on foreign-cdm to enable playback of DRM content > WIDEVINE_RUN_DEPENDS= foreign-cdm>0:www/foreign-cdm >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 246449
:
250463
|
250470
|
250489