mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
gecko: add JACK option (enabled by default)
PR: 221464
This commit is contained in:
parent
b4ec61411a
commit
cfc5748080
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=450705
@ -358,6 +358,11 @@ RUN_DEPENDS+= alsa-lib>=1.1.1_1:audio/alsa-lib
|
||||
MOZ_OPTIONS+= --enable-alsa
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MJACK}
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/include/jack/jack.h:audio/jack
|
||||
MOZ_OPTIONS+= --enable-jack
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MPULSEAUDIO}
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/include/pulse/pulseaudio.h:audio/pulseaudio
|
||||
MOZ_OPTIONS+= --enable-pulseaudio
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= thunderbird
|
||||
DISTVERSION= 52.3.0
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= mail news net-im ipv6
|
||||
MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \
|
||||
MOZILLA/${PORTNAME}/candidates/${DISTVERSION}-candidates/build1/source
|
||||
|
14
mail/thunderbird/files/patch-bug1386957
Normal file
14
mail/thunderbird/files/patch-bug1386957
Normal file
@ -0,0 +1,14 @@
|
||||
https://github.com/kinetiknz/cubeb/commit/16f9ccc064f2
|
||||
|
||||
--- mozilla/media/libcubeb/src/cubeb_jack.cpp.orig 2017-07-07 05:37:16 UTC
|
||||
+++ mozilla/media/libcubeb/src/cubeb_jack.cpp
|
||||
@@ -8,7 +8,9 @@
|
||||
*/
|
||||
#define _DEFAULT_SOURCE
|
||||
#define _BSD_SOURCE
|
||||
+#ifndef __FreeBSD__
|
||||
#define _POSIX_SOURCE
|
||||
+#endif
|
||||
#include <algorithm>
|
||||
#include <dlfcn.h>
|
||||
#include <limits>
|
@ -4,7 +4,7 @@
|
||||
PORTNAME= firefox
|
||||
DISTVERSION= 52.3.0
|
||||
DISTVERSIONSUFFIX=esr.source
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= www ipv6
|
||||
MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}esr/source \
|
||||
|
14
www/firefox-esr/files/patch-bug1386957
Normal file
14
www/firefox-esr/files/patch-bug1386957
Normal file
@ -0,0 +1,14 @@
|
||||
https://github.com/kinetiknz/cubeb/commit/16f9ccc064f2
|
||||
|
||||
--- media/libcubeb/src/cubeb_jack.cpp.orig 2017-07-07 05:37:16 UTC
|
||||
+++ media/libcubeb/src/cubeb_jack.cpp
|
||||
@@ -8,7 +8,9 @@
|
||||
*/
|
||||
#define _DEFAULT_SOURCE
|
||||
#define _BSD_SOURCE
|
||||
+#ifndef __FreeBSD__
|
||||
#define _POSIX_SOURCE
|
||||
+#endif
|
||||
#include <algorithm>
|
||||
#include <dlfcn.h>
|
||||
#include <limits>
|
@ -10,6 +10,13 @@ Some features available on other platforms are not implemented:
|
||||
|
||||
======================================================================
|
||||
|
||||
To select non-default audio backend open about:config page and create
|
||||
media.cubeb.backend preference. Supported values are: alsa, jack,
|
||||
pulse, oss, sndio. Currently, selected backend can be inspected on
|
||||
about:support page.
|
||||
|
||||
======================================================================
|
||||
|
||||
smb:// issues (Gvfs/GIO option):
|
||||
Network group, machine, and share browsing does not work correctly.
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
PORTNAME= firefox
|
||||
DISTVERSION= 55.0.3
|
||||
DISTVERSIONSUFFIX=.source
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= www ipv6
|
||||
MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \
|
||||
|
@ -5,12 +5,14 @@ OPTIONS_DEFINE+= BUNDLED_CAIRO CANBERRA DBUS DEBUG DTRACE FFMPEG GCONF \
|
||||
OPTIMIZED_CFLAGS PGO PROFILE TEST
|
||||
|
||||
OPTIONS_DEFAULT+= DBUS DTRACE FFMPEG OPTIMIZED_CFLAGS \
|
||||
ALSA PULSEAUDIO \
|
||||
${OPTIONS_MULTI_AUDIO:NSNDIO} \
|
||||
${MACHINE_CPU:Msoftfp:C/.+/INTEGER_SAMPLES/}
|
||||
|
||||
OPTIONS_MULTI+= AUDIO
|
||||
OPTIONS_MULTI_AUDIO= ALSA PULSEAUDIO SNDIO
|
||||
OPTIONS_MULTI_AUDIO= ALSA JACK PULSEAUDIO SNDIO
|
||||
|
||||
# WebRTC legacy audio library only supports ALSA and PulseAudio
|
||||
JACK_IMPLIES= ALSA
|
||||
# No lazy-bindings and inconsistent fallback order (libcubeb vs. audio_device)
|
||||
SNDIO_PREVENTS= ${OPTIONS_MULTI_AUDIO:NSNDIO}
|
||||
|
||||
|
14
www/firefox/files/patch-bug1386957
Normal file
14
www/firefox/files/patch-bug1386957
Normal file
@ -0,0 +1,14 @@
|
||||
https://github.com/kinetiknz/cubeb/commit/16f9ccc064f2
|
||||
|
||||
--- media/libcubeb/src/cubeb_jack.cpp.orig 2017-07-07 05:37:16 UTC
|
||||
+++ media/libcubeb/src/cubeb_jack.cpp
|
||||
@@ -8,7 +8,9 @@
|
||||
*/
|
||||
#define _DEFAULT_SOURCE
|
||||
#define _BSD_SOURCE
|
||||
+#ifndef __FreeBSD__
|
||||
#define _POSIX_SOURCE
|
||||
+#endif
|
||||
#include <dlfcn.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
@ -11,6 +11,13 @@ Some features available on other platforms are not implemented:
|
||||
|
||||
======================================================================
|
||||
|
||||
To select non-default audio backend open about:config page and create
|
||||
media.cubeb.backend preference. Supported values are: alsa, jack,
|
||||
pulse, pulse-rust, oss, sndio. Currently, selected backend can be
|
||||
inspected on about:support page.
|
||||
|
||||
======================================================================
|
||||
|
||||
smb:// issues (Gvfs/GIO option):
|
||||
Network group, machine, and share browsing does not work correctly.
|
||||
|
||||
|
@ -58,6 +58,7 @@ OPTIONS_SINGLE+= TOOLKIT
|
||||
OPTIONS_SINGLE_TOOLKIT= GTK2 GTK3
|
||||
|
||||
.include "${.CURDIR}/../../www/firefox/Makefile.options"
|
||||
OPTIONS_MULTI_AUDIO:= ${OPTIONS_MULTI_AUDIO:NJACK}
|
||||
|
||||
.if ${USE_MOZILLA:M-nss}
|
||||
MOZ_PKGCONFIG_FILES+= mozilla-nss
|
||||
|
@ -4,7 +4,7 @@
|
||||
PORTNAME= seamonkey
|
||||
DISTVERSION= 2.48
|
||||
MOZILLA_VER= 51 # above + 3
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES?= www mail news editors irc ipv6
|
||||
MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \
|
||||
MOZILLA/${PORTNAME}/candidates/${DISTVERSION}-candidates/build1/source
|
||||
|
14
www/seamonkey/files/patch-bug1386957
Normal file
14
www/seamonkey/files/patch-bug1386957
Normal file
@ -0,0 +1,14 @@
|
||||
https://github.com/kinetiknz/cubeb/commit/16f9ccc064f2
|
||||
|
||||
--- mozilla/media/libcubeb/src/cubeb_jack.cpp.orig 2017-07-07 05:37:16 UTC
|
||||
+++ mozilla/media/libcubeb/src/cubeb_jack.cpp
|
||||
@@ -8,7 +8,9 @@
|
||||
*/
|
||||
#define _DEFAULT_SOURCE
|
||||
#define _BSD_SOURCE
|
||||
+#ifndef __FreeBSD__
|
||||
#define _POSIX_SOURCE
|
||||
+#endif
|
||||
#include <algorithm>
|
||||
#include <dlfcn.h>
|
||||
#include <limits>
|
Loading…
Reference in New Issue
Block a user