git: 18aa74c75e84 - 2026Q3 - www/firefox: add libm to opus linker flags
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 Jul 2026 18:07:49 UTC
The branch 2026Q3 has been updated by cmt:
URL: https://cgit.FreeBSD.org/ports/commit/?id=18aa74c75e8415c0104d18701221f75fd88fbb51
commit 18aa74c75e8415c0104d18701221f75fd88fbb51
Author: Christoph Moench-Tegeder <cmt@FreeBSD.org>
AuthorDate: 2026-07-16 18:04:50 +0000
Commit: Christoph Moench-Tegeder <cmt@FreeBSD.org>
CommitDate: 2026-07-16 18:07:11 +0000
www/firefox: add libm to opus linker flags
some combinations of custom CPUTYPE and compiler require special
linker/compiler flags - try to chase this.
PR: 296825
Reported by: Daniel Toschläger
(cherry picked from commit 81447da5d16d2b4f73b4a04013df62a224737bad)
---
www/firefox/Makefile | 1 +
www/firefox/files/patch-libwebrtc-generated | 1 -
www/firefox/files/patch-media_libopus_moz.build | 21 +++++++++++++++++++++
3 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/www/firefox/Makefile b/www/firefox/Makefile
index dbb30913b302..1f7a047968cb 100644
--- a/www/firefox/Makefile
+++ b/www/firefox/Makefile
@@ -1,5 +1,6 @@
PORTNAME= firefox
DISTVERSION= 153.0
+PORTREVISION= 1
PORTEPOCH= 2
CATEGORIES= www wayland
MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}${DISTVERSIONSUFFIX}/source \
diff --git a/www/firefox/files/patch-libwebrtc-generated b/www/firefox/files/patch-libwebrtc-generated
index 2e5c50de4701..e4db36d2ca60 100644
--- a/www/firefox/files/patch-libwebrtc-generated
+++ b/www/firefox/files/patch-libwebrtc-generated
@@ -1,6 +1,5 @@
commit aff9c9149a23dfc8998b7259d90d58ce61387b53
Author: Christoph Moench-Tegeder <cmt@FreeBSD.org>
-Date: Sat Jul 11 12:52:52 2026 +0000
regenerate FreeBSD libwebrtc patch for gecko 153
diff --git a/www/firefox/files/patch-media_libopus_moz.build b/www/firefox/files/patch-media_libopus_moz.build
new file mode 100644
index 000000000000..8654b6400fe2
--- /dev/null
+++ b/www/firefox/files/patch-media_libopus_moz.build
@@ -0,0 +1,21 @@
+commit 970cf3bb5ae10902e438bf07c87974a210221bd2
+Author: Christoph Moench-Tegeder <cmt@FreeBSD.org>
+
+ pet CPUTYPE builds
+
+ some combinations of custom CPUTYPE and compiler require special
+ linker/compiler flags - try to chase this.
+
+diff --git media/libopus/moz.build media/libopus/moz.build
+index 3157236b2bf8..e9921fc3614c 100644
+--- media/libopus/moz.build
++++ media/libopus/moz.build
+@@ -56,7 +56,7 @@ if not CONFIG["MOZ_SAMPLE_TYPE_FLOAT32"]:
+ DEFINES["FIXED_POINT"] = 1
+ DEFINES["DISABLE_FLOAT_API"] = True
+
+-if CONFIG["OS_ARCH"] == "Linux":
++if CONFIG["OS_ARCH"] in ("FreeBSD", "Linux"):
+ OS_LIBS += [
+ "m",
+ ]