View | Details | Raw Unified | Return to bug 246449 | Differences between
and this patch

Collapse All | Expand All

(-)b/www/chromium/Makefile (-21 / +33 lines)
Lines 1-5 Link Here
1
PORTNAME=	chromium
1
PORTNAME=	chromium
2
PORTVERSION=	124.0.6367.118
2
PORTVERSION=	124.0.6367.118
3
PORTREVISION=	1
3
CATEGORIES=	www wayland
4
CATEGORIES=	www wayland
4
MASTER_SITES=	https://commondatastorage.googleapis.com/chromium-browser-official/ \
5
MASTER_SITES=	https://commondatastorage.googleapis.com/chromium-browser-official/ \
5
		https://nerd.hu/distfiles/:external
6
		https://nerd.hu/distfiles/:external
Lines 15-20 LICENSE_COMB= multi Link Here
15
16
16
ONLY_FOR_ARCHS=	aarch64 amd64 i386
17
ONLY_FOR_ARCHS=	aarch64 amd64 i386
17
18
19
FLAVORS=	alsa pulseaudio sndio
20
FLAVOR?=	${FLAVORS:[2]}
21
PKGNAMESUFFIX=	${FLAVOR:C/^/-/:S/-pulseaudio//}
22
18
BUILD_DEPENDS=	bash:shells/bash \
23
BUILD_DEPENDS=	bash:shells/bash \
19
		${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
24
		${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}ply>0:devel/py-ply@${PY_FLAVOR} \
25
		${PYTHON_PKGNAMEPREFIX}ply>0:devel/py-ply@${PY_FLAVOR} \
Lines 139-149 GN_ARGS+= google_api_key="AIzaSyBsp9n41JLW8jCokwn7vhoaMejDFRd1mp8" Link Here
139
SUB_FILES=	chromium-browser.desktop chrome
144
SUB_FILES=	chromium-browser.desktop chrome
140
SUB_LIST+=	COMMENT="${COMMENT}"
145
SUB_LIST+=	COMMENT="${COMMENT}"
141
146
147
##
148
## flavor-defined build options
149
##
150
151
.if ${FLAVOR} == alsa
152
LIB_DEPENDS+=	libasound.so:audio/alsa-lib
153
RUN_DEPENDS+=	${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins \
154
		alsa-lib>=1.1.1_1:audio/alsa-lib
155
GN_ARGS+=	use_alsa=true
156
.else
157
GN_ARGS+=	use_alsa=false
158
.endif
159
160
.if ${FLAVOR} == pulseaudio
161
LIB_DEPENDS+=	libpulse.so:audio/pulseaudio
162
GN_ARGS+=	use_pulseaudio=true
163
.else
164
GN_ARGS+=	use_pulseaudio=false
165
.endif
166
167
.if ${FLAVOR} == sndio
168
LIB_DEPENDS+=	libsndio.so:audio/sndio
169
GN_ARGS+=	use_sndio=true
170
.else
171
GN_ARGS+=	use_sndio=false
172
.endif
173
142
OPTIONS_DEFINE=		CODECS CUPS DEBUG DRIVER KERBEROS LTO PIPEWIRE TEST WIDEVINE
174
OPTIONS_DEFINE=		CODECS CUPS DEBUG DRIVER KERBEROS LTO PIPEWIRE TEST WIDEVINE
143
OPTIONS_DEFAULT=	CODECS CUPS DRIVER KERBEROS PIPEWIRE SNDIO
175
OPTIONS_DEFAULT=	CODECS CUPS DRIVER KERBEROS PIPEWIRE
144
OPTIONS_EXCLUDE_aarch64=LTO
176
OPTIONS_EXCLUDE_aarch64=LTO
145
OPTIONS_GROUP=		AUDIO
146
OPTIONS_GROUP_AUDIO=	ALSA PULSEAUDIO SNDIO
147
OPTIONS_RADIO=		KERBEROS
177
OPTIONS_RADIO=		KERBEROS
148
OPTIONS_RADIO_KERBEROS=	HEIMDAL HEIMDAL_BASE MIT
178
OPTIONS_RADIO_KERBEROS=	HEIMDAL HEIMDAL_BASE MIT
149
OPTIONS_SUB=		yes
179
OPTIONS_SUB=		yes
Lines 153-164 HEIMDAL_BASE_DESC= Heimdal Kerberos (base) Link Here
153
HEIMDAL_DESC=		Heimdal Kerberos (security/heimdal)
183
HEIMDAL_DESC=		Heimdal Kerberos (security/heimdal)
154
MIT_DESC=		MIT Kerberos (security/krb5)
184
MIT_DESC=		MIT Kerberos (security/krb5)
155
185
156
ALSA_LIB_DEPENDS=	libasound.so:audio/alsa-lib
157
ALSA_RUN_DEPENDS=	${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins \
158
			alsa-lib>=1.1.1_1:audio/alsa-lib
159
ALSA_VARS=		GN_ARGS+=use_alsa=true
160
ALSA_VARS_OFF=		GN_ARGS+=use_alsa=false
161
162
CODECS_VARS=		GN_ARGS+=proprietary_codecs=true \
186
CODECS_VARS=		GN_ARGS+=proprietary_codecs=true \
163
			FFMPEG_BRAND="Chrome"
187
			FFMPEG_BRAND="Chrome"
164
CODECS_VARS_OFF=	GN_ARGS+=proprietary_codecs=false \
188
CODECS_VARS_OFF=	GN_ARGS+=proprietary_codecs=false \
Lines 202-219 PIPEWIRE_VARS= GN_ARGS+=rtc_use_pipewire=true \ Link Here
202
PIPEWIRE_VARS_OFF=	GN_ARGS+=rtc_use_pipewire=false \
226
PIPEWIRE_VARS_OFF=	GN_ARGS+=rtc_use_pipewire=false \
203
			GN_ARGS+=rtc_link_pipewire=false
227
			GN_ARGS+=rtc_link_pipewire=false
204
228
205
PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio
206
PULSEAUDIO_VARS=	GN_ARGS+=use_pulseaudio=true
207
PULSEAUDIO_VARS_OFF=	GN_ARGS+=use_pulseaudio=false
208
209
# With SNDIO=on we exclude audio_manager_linux from the build (see
210
# media/audio/BUILD.gn) and use audio_manager_openbsd which does not
211
# support falling back to ALSA or PulseAudio.
212
SNDIO_PREVENTS=		ALSA PULSEAUDIO
213
SNDIO_LIB_DEPENDS=	libsndio.so:audio/sndio
214
SNDIO_VARS=		GN_ARGS+=use_sndio=true
215
SNDIO_VARS_OFF=		GN_ARGS+=use_sndio=false
216
217
WIDEVINE_DESC=		Depend on foreign-cdm to enable playback of DRM content
229
WIDEVINE_DESC=		Depend on foreign-cdm to enable playback of DRM content
218
WIDEVINE_RUN_DEPENDS=	foreign-cdm>0:www/foreign-cdm
230
WIDEVINE_RUN_DEPENDS=	foreign-cdm>0:www/foreign-cdm
219
231

Return to bug 246449