aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2017-01-02 00:24:59 +0800
committerjbeich <jbeich@FreeBSD.org>2017-01-02 00:24:59 +0800
commit3cb14170769d7f7f229977c0370293f32b5223d3 (patch)
tree716e63e0cba53553a6a72de96ffbe353774b5e8d /Mk
parentccf8af9323a1bf59c7919ee65eee872b6c68b1d4 (diff)
downloadfreebsd-ports-gnome-3cb14170769d7f7f229977c0370293f32b5223d3.tar.gz
freebsd-ports-gnome-3cb14170769d7f7f229977c0370293f32b5223d3.tar.zst
freebsd-ports-gnome-3cb14170769d7f7f229977c0370293f32b5223d3.zip
www/firefox: add SNDIO option
PR: 212028 Submitted by: Tobias Kortkamp <t@tobik.me>
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.gecko.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/Mk/bsd.gecko.mk b/Mk/bsd.gecko.mk
index 90ec0b4ee66c..810b3ebac955 100644
--- a/Mk/bsd.gecko.mk
+++ b/Mk/bsd.gecko.mk
@@ -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