1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00

www/firefox: add SNDIO option

PR:		212028
Submitted by:	Tobias Kortkamp <t@tobik.me>
This commit is contained in:
Jan Beich 2017-01-01 16:24:59 +00:00
parent 8596cbf73f
commit f2d5e52383
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=430261
2 changed files with 18 additions and 2 deletions

View File

@ -372,6 +372,19 @@ MOZ_OPTIONS+= --enable-pulseaudio
MOZ_OPTIONS+= --disable-pulseaudio
.endif
.if ${PORT_OPTIONS:MSNDIO}
LIB_DEPENDS+= libsndio.so:audio/sndio
post-patch-SNDIO-on:
@${REINPLACE_CMD} -e 's|OpenBSD|${OPSYS}|g' \
${MOZSRC}/media/libcubeb/src/moz.build \
${MOZSRC}/media/libcubeb/tests/moz.build \
${MOZSRC}/toolkit/library/moz.build
@${REINPLACE_CMD} -e 's|OS==\"openbsd\"|OS==\"${OPSYS:tl}\"|g' \
${MOZSRC}/media/webrtc/trunk/webrtc/build/common.gypi
@${ECHO} "OS_LIBS += ['sndio']" >> \
${MOZSRC}/media/webrtc/signaling/test/common.build
.endif
.if ${PORT_OPTIONS:MRUST}
BUILD_DEPENDS+= rustc:${RUST_PORT}
RUST_PORT?= lang/rust

View File

@ -5,11 +5,14 @@ OPTIONS_DEFINE+= BUNDLED_CAIRO CANBERRA DBUS DEBUG DTRACE FFMPEG GCONF \
OPTIMIZED_CFLAGS PGO PROFILE TEST
OPTIONS_DEFAULT+= DBUS DTRACE FFMPEG OPTIMIZED_CFLAGS \
${OPTIONS_MULTI_AUDIO} \
ALSA PULSEAUDIO \
${MACHINE_CPU:Msoftfp:C/.+/INTEGER_SAMPLES/}
OPTIONS_MULTI+= AUDIO
OPTIONS_MULTI_AUDIO= ALSA PULSEAUDIO
OPTIONS_MULTI_AUDIO= ALSA PULSEAUDIO SNDIO
# No lazy-bindings and inconsistent fallback order (libcubeb vs. audio_device)
SNDIO_PREVENTS= ${OPTIONS_MULTI_AUDIO:NSNDIO}
# dragonfly, sparc64, riscv
.if !exists(/usr/sbin/dtrace)