From nobody Tue Sep 10 21:17:58 2024 X-Original-To: dev-commits-ports-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X3Gkv5dTMz5Wkv1; Tue, 10 Sep 2024 21:17:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X3Gkv0hsLz4m5d; Tue, 10 Sep 2024 21:17:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726003079; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9PQZl1ZkXdbRkPfL+RJiZQpRI2sWvDjxBh88ExMgOOA=; b=joSbAtArIJ4/d94m83XL2PeXawb6cu5Y6LcyHc+083BV7GbjoDZOf+DbVP6JyXzt7Bio9i 58AEkelzQCwvA7RzztREFULFaqkiR342B1mFNiwVUUCfrFvtS1g2RnCssyjFFv06+CuCwU qNYEXyxKQXdPxXlhp1oytsatRag0EXkUwql6tq+hxQbiSJpO4CL+VTJteBsWemh+jTlMs9 WjYP6UUFNSkbsHEQkoce68JIMrJKJGibiLa/MexEwk570fEKJ68KX+CjpzUa9fBIoyqbBt TNg865InluWZpG7Au2hSVNLioFAnf7sFey89mf0UcsJbHHKE3OVroqGu/stQPA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726003079; a=rsa-sha256; cv=none; b=NpAe9Ls+f3enCHvdZoFiVsr1Hvoynzn7kb7GZ1AsebCtF8Lm1cNmhoHLPaWP/CjaJDbb8q WP8XIQYnJWYkM4v7CvFMoy9OepqQN6Rqr7bCrAjeRkU23B3oMavfGpSOsXb8JcbVRxckxI UYoJnBm9lkwyKCE4hgXxrfh61ZC/5vEgelQFxc4jTwcR7SPT5h7p6d0hDZ0HEn0lXlAe/K DKJP6bn6lNGY5OAbiE5Vn+m2/LqF45mV7UshBiURSP+HjtG0DIUSP9rZ3V1q3d5CKaZxsi /fZl5Sp9l9oZIDqLlprgsjrIzDE13t13CPz9pUV7MsUHIWT7ufxrWPq+NCG+bw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726003079; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9PQZl1ZkXdbRkPfL+RJiZQpRI2sWvDjxBh88ExMgOOA=; b=dlaajJ+s6JqQMKc8PV1WeclvmWxhBscY0tdDZ47Txzyfc5fmaKX0h6fwM0INSRIYI/o0TV p2Xebfi6ImrWDRgbT9LtX0vOhzZG0JtrfsCExaRzpk+e5fTnuVWsW2PajUPjFbpvt5b/OK tm4hWoaUdrN0etA6K4AXawH0M9x5BZglMBarw+EmcO8jxyoq6EikkfEWFWuNBquiOuSnXP IXGCwTZltvOzKLs5C4PEC5RvJ3cu8gCfc6pZP1yeeOc+F/ohF1MNwepqNUeSxXjcHrvv2v my5ZtNp+IqUVvEEHlaeRsKZ7ie2sm53SX3JQdzJdxKcrVQirtDN9ZzQHYuZVag== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4X3Gkv0HjYz137l; Tue, 10 Sep 2024 21:17:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48ALHwhs031063; Tue, 10 Sep 2024 21:17:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48ALHwJH031060; Tue, 10 Sep 2024 21:17:58 GMT (envelope-from git) Date: Tue, 10 Sep 2024 21:17:58 GMT Message-Id: <202409102117.48ALHwJH031060@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Christoph Moench-Tegeder Subject: git: 4415013c2cf9 - 2024Q3 - www/firefox{,-esr} mail/thunderbird: pet CPUTYPE builds List-Id: Commits to the quarterly branches of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-branches@freebsd.org Sender: owner-dev-commits-ports-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cmt X-Git-Repository: ports X-Git-Refname: refs/heads/2024Q3 X-Git-Reftype: branch X-Git-Commit: 4415013c2cf9899e2c969c6c2dda55dd4f4049e9 Auto-Submitted: auto-generated The branch 2024Q3 has been updated by cmt: URL: https://cgit.FreeBSD.org/ports/commit/?id=4415013c2cf9899e2c969c6c2dda55dd4f4049e9 commit 4415013c2cf9899e2c969c6c2dda55dd4f4049e9 Author: Christoph Moench-Tegeder AuthorDate: 2024-09-10 21:06:53 +0000 Commit: Christoph Moench-Tegeder CommitDate: 2024-09-10 21:17:17 +0000 www/firefox{,-esr} mail/thunderbird: pet CPUTYPE builds some combinations of custom CPUTYPE and compiler require special linker/compiler flags - try to chase this. PR: 277021 PR: 281404 Submitted by: jkim@ (based on) (cherry picked from commit c67ddb28c68d0f6bc1cd72d976ef7739a79e9089) --- mail/thunderbird/Makefile | 1 + mail/thunderbird/files/patch-bug1559213 | 57 ++++++++++++++++++++++------- www/firefox-esr/Makefile | 1 + www/firefox-esr/files/patch-bug1559213 | 63 +++++++++++++++++++++++---------- www/firefox/Makefile | 2 +- www/firefox/files/patch-bug1559213 | 63 +++++++++++++++++++++++---------- 6 files changed, 138 insertions(+), 49 deletions(-) diff --git a/mail/thunderbird/Makefile b/mail/thunderbird/Makefile index 7a533bdd148e..5ac54a27d523 100644 --- a/mail/thunderbird/Makefile +++ b/mail/thunderbird/Makefile @@ -1,5 +1,6 @@ PORTNAME= thunderbird DISTVERSION= 128.2.0 +PORTREVISION= 2 CATEGORIES= mail news net-im wayland MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}esr/source \ MOZILLA/${PORTNAME}/candidates/${DISTVERSION}esr-candidates/build1/source diff --git a/mail/thunderbird/files/patch-bug1559213 b/mail/thunderbird/files/patch-bug1559213 index cfdb9bbefb2b..ead3425fa70b 100644 --- a/mail/thunderbird/files/patch-bug1559213 +++ b/mail/thunderbird/files/patch-bug1559213 @@ -1,11 +1,16 @@ -commit 717bba28411c -Author: Jory A. Pratt -Date: Thu Jun 13 11:53:00 2019 -0700 +commit 25a5572d5cd137aa6d893e09a00bd39908a59a18 +Author: Christoph Moench-Tegeder +Date: Tue Sep 10 22:23:32 2024 +0200 - Bug 1559213 - Allow to use system av1 libs instead of bundled. + based on: + commit 717bba28411c + Author: Jory A. Pratt + Date: Thu Jun 13 11:53:00 2019 -0700 + + Bug 1559213 - Allow to use system av1 libs instead of bundled. diff --git config/external/moz.build config/external/moz.build -index b6e174c5d6..49fe67a7ad 100644 +index a24b470396cf..547f5f5c9e04 100644 --- config/external/moz.build +++ config/external/moz.build @@ -40,8 +40,9 @@ if not CONFIG["MOZ_SYSTEM_LIBVPX"]: @@ -21,10 +26,10 @@ index b6e174c5d6..49fe67a7ad 100644 if not CONFIG["MOZ_SYSTEM_PNG"]: external_dirs += ["media/libpng"] diff --git dom/media/platforms/moz.build dom/media/platforms/moz.build -index 1933f8d73a..049ca0f710 100644 +index 61536cc6e225..29cf635bbb44 100644 --- dom/media/platforms/moz.build +++ dom/media/platforms/moz.build -@@ -73,6 +73,11 @@ if CONFIG["MOZ_AV1"]: +@@ -71,6 +71,11 @@ if CONFIG["MOZ_AV1"]: "agnostic/AOMDecoder.cpp", "agnostic/DAV1DDecoder.cpp", ] @@ -37,10 +42,10 @@ index 1933f8d73a..049ca0f710 100644 if CONFIG["MOZ_OMX"]: EXPORTS += [ diff --git media/ffvpx/libavcodec/moz.build media/ffvpx/libavcodec/moz.build -index 6f09049a60..2e63568bd1 100644 +index 6f09049a6068..90a82a19a9d1 100644 --- media/ffvpx/libavcodec/moz.build +++ media/ffvpx/libavcodec/moz.build -@@ -119,10 +119,14 @@ if not CONFIG['MOZ_FFVPX_AUDIOONLY']: +@@ -119,10 +119,16 @@ if not CONFIG['MOZ_FFVPX_AUDIOONLY']: 'vp9recon.c', 'vpx_rac.c', ] @@ -51,6 +56,8 @@ index 6f09049a60..2e63568bd1 100644 + if CONFIG["MOZ_SYSTEM_AV1"]: + CFLAGS += CONFIG['MOZ_SYSTEM_LIBDAV1D_CFLAGS'] + OS_LIBS += CONFIG['MOZ_SYSTEM_LIBDAV1D_LIBS'] ++ CFLAGS += CONFIG['MOZ_SYSTEM_LIBAOM_CFLAGS'] ++ OS_LIBS += CONFIG['MOZ_SYSTEM_LIBAOM_LIBS'] + else: + USE_LIBS += [ + 'dav1d', @@ -59,11 +66,37 @@ index 6f09049a60..2e63568bd1 100644 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk": LOCAL_INCLUDES += ['/media/mozva'] SOURCES += [ +diff --git media/libopus/moz.build media/libopus/moz.build +index 943aee79ee99..4ad07e3e98af 100644 +--- media/libopus/moz.build ++++ media/libopus/moz.build +@@ -58,7 +58,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", + ] +diff --git media/libvorbis/moz.build media/libvorbis/moz.build +index cd17d4f89759..816edd72a000 100644 +--- media/libvorbis/moz.build ++++ media/libvorbis/moz.build +@@ -45,7 +45,7 @@ LOCAL_INCLUDES += ['lib'] + if CONFIG['OS_ARCH'] == 'SunOS': + DEFINES['HAVE_ALLOCA_H'] = True + +-if CONFIG["OS_ARCH"] == "Linux": ++if CONFIG["OS_ARCH"] in ("FreeBSD", "Linux"): + OS_LIBS += [ + "m", + ] diff --git toolkit/moz.configure toolkit/moz.configure -index a424446c7d..1d5babe8a9 100644 +index 1f85d2831f2f..07294b93f850 100644 --- toolkit/moz.configure +++ toolkit/moz.configure -@@ -789,7 +789,23 @@ def av1(value): +@@ -883,7 +883,23 @@ def av1(value): return True @@ -88,7 +121,7 @@ index a424446c7d..1d5babe8a9 100644 def dav1d_asm(target): if target.cpu in ("aarch64", "x86", "x86_64"): return True -@@ -805,6 +821,7 @@ set_config("MOZ_DAV1D_ASM", dav1d_asm) +@@ -899,6 +915,7 @@ set_config("MOZ_DAV1D_ASM", dav1d_asm) set_define("MOZ_DAV1D_ASM", dav1d_asm) set_config("MOZ_AV1", av1) set_define("MOZ_AV1", av1) diff --git a/www/firefox-esr/Makefile b/www/firefox-esr/Makefile index 1a85da360c7d..cfbe910aed57 100644 --- a/www/firefox-esr/Makefile +++ b/www/firefox-esr/Makefile @@ -1,5 +1,6 @@ PORTNAME= firefox DISTVERSION= 128.2.0 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= www wayland MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}esr/source \ diff --git a/www/firefox-esr/files/patch-bug1559213 b/www/firefox-esr/files/patch-bug1559213 index ae11fb38f989..ead3425fa70b 100644 --- a/www/firefox-esr/files/patch-bug1559213 +++ b/www/firefox-esr/files/patch-bug1559213 @@ -1,17 +1,16 @@ -commit 717bba28411c -Author: Jory A. Pratt -Date: Thu Jun 13 11:53:00 2019 -0700 +commit 25a5572d5cd137aa6d893e09a00bd39908a59a18 +Author: Christoph Moench-Tegeder +Date: Tue Sep 10 22:23:32 2024 +0200 - Bug 1559213 - Allow to use system av1 libs instead of bundled. ---- - config/external/moz.build | 5 +++-- - config/system-headers.mozbuild | 8 ++++++++ - dom/media/platforms/moz.build | 5 +++++ - toolkit/moz.configure | 19 ++++++++++++++++++- - 4 files changed, 34 insertions(+), 3 deletions(-) + based on: + commit 717bba28411c + Author: Jory A. Pratt + Date: Thu Jun 13 11:53:00 2019 -0700 + + Bug 1559213 - Allow to use system av1 libs instead of bundled. diff --git config/external/moz.build config/external/moz.build -index 2fc8df57992e..63d18e50a961 100644 +index a24b470396cf..547f5f5c9e04 100644 --- config/external/moz.build +++ config/external/moz.build @@ -40,8 +40,9 @@ if not CONFIG["MOZ_SYSTEM_LIBVPX"]: @@ -27,10 +26,10 @@ index 2fc8df57992e..63d18e50a961 100644 if not CONFIG["MOZ_SYSTEM_PNG"]: external_dirs += ["media/libpng"] diff --git dom/media/platforms/moz.build dom/media/platforms/moz.build -index 5c6e25b3980b..ce99ebfb6d3f 100644 +index 61536cc6e225..29cf635bbb44 100644 --- dom/media/platforms/moz.build +++ dom/media/platforms/moz.build -@@ -81,6 +81,11 @@ if CONFIG["MOZ_AV1"]: +@@ -71,6 +71,11 @@ if CONFIG["MOZ_AV1"]: "agnostic/AOMDecoder.cpp", "agnostic/DAV1DDecoder.cpp", ] @@ -43,10 +42,10 @@ index 5c6e25b3980b..ce99ebfb6d3f 100644 if CONFIG["MOZ_OMX"]: EXPORTS += [ diff --git media/ffvpx/libavcodec/moz.build media/ffvpx/libavcodec/moz.build -index 761fc8cf4cd9..793a5b8697a8 100644 +index 6f09049a6068..90a82a19a9d1 100644 --- media/ffvpx/libavcodec/moz.build +++ media/ffvpx/libavcodec/moz.build -@@ -120,10 +120,14 @@ if not CONFIG['MOZ_FFVPX_AUDIOONLY']: +@@ -119,10 +119,16 @@ if not CONFIG['MOZ_FFVPX_AUDIOONLY']: 'vp9recon.c', 'vpx_rac.c', ] @@ -57,6 +56,8 @@ index 761fc8cf4cd9..793a5b8697a8 100644 + if CONFIG["MOZ_SYSTEM_AV1"]: + CFLAGS += CONFIG['MOZ_SYSTEM_LIBDAV1D_CFLAGS'] + OS_LIBS += CONFIG['MOZ_SYSTEM_LIBDAV1D_LIBS'] ++ CFLAGS += CONFIG['MOZ_SYSTEM_LIBAOM_CFLAGS'] ++ OS_LIBS += CONFIG['MOZ_SYSTEM_LIBAOM_LIBS'] + else: + USE_LIBS += [ + 'dav1d', @@ -65,11 +66,37 @@ index 761fc8cf4cd9..793a5b8697a8 100644 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk": LOCAL_INCLUDES += ['/media/mozva'] SOURCES += [ +diff --git media/libopus/moz.build media/libopus/moz.build +index 943aee79ee99..4ad07e3e98af 100644 +--- media/libopus/moz.build ++++ media/libopus/moz.build +@@ -58,7 +58,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", + ] +diff --git media/libvorbis/moz.build media/libvorbis/moz.build +index cd17d4f89759..816edd72a000 100644 +--- media/libvorbis/moz.build ++++ media/libvorbis/moz.build +@@ -45,7 +45,7 @@ LOCAL_INCLUDES += ['lib'] + if CONFIG['OS_ARCH'] == 'SunOS': + DEFINES['HAVE_ALLOCA_H'] = True + +-if CONFIG["OS_ARCH"] == "Linux": ++if CONFIG["OS_ARCH"] in ("FreeBSD", "Linux"): + OS_LIBS += [ + "m", + ] diff --git toolkit/moz.configure toolkit/moz.configure -index f93a5d64fec8..814357f4e979 100644 +index 1f85d2831f2f..07294b93f850 100644 --- toolkit/moz.configure +++ toolkit/moz.configure -@@ -744,7 +744,23 @@ def av1(value): +@@ -883,7 +883,23 @@ def av1(value): return True @@ -94,7 +121,7 @@ index f93a5d64fec8..814357f4e979 100644 def dav1d_asm(target): if target.cpu in ("aarch64", "x86", "x86_64"): return True -@@ -760,6 +776,7 @@ set_config("MOZ_DAV1D_ASM", dav1d_asm) +@@ -899,6 +915,7 @@ set_config("MOZ_DAV1D_ASM", dav1d_asm) set_define("MOZ_DAV1D_ASM", dav1d_asm) set_config("MOZ_AV1", av1) set_define("MOZ_AV1", av1) diff --git a/www/firefox/Makefile b/www/firefox/Makefile index 89be664e51cb..45def465f3ea 100644 --- a/www/firefox/Makefile +++ b/www/firefox/Makefile @@ -1,6 +1,6 @@ PORTNAME= firefox DISTVERSION= 130.0 -PORTREVISION= 1 +PORTREVISION= 3 PORTEPOCH= 2 CATEGORIES= www wayland MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}${DISTVERSIONSUFFIX}/source \ diff --git a/www/firefox/files/patch-bug1559213 b/www/firefox/files/patch-bug1559213 index ae11fb38f989..ead3425fa70b 100644 --- a/www/firefox/files/patch-bug1559213 +++ b/www/firefox/files/patch-bug1559213 @@ -1,17 +1,16 @@ -commit 717bba28411c -Author: Jory A. Pratt -Date: Thu Jun 13 11:53:00 2019 -0700 +commit 25a5572d5cd137aa6d893e09a00bd39908a59a18 +Author: Christoph Moench-Tegeder +Date: Tue Sep 10 22:23:32 2024 +0200 - Bug 1559213 - Allow to use system av1 libs instead of bundled. ---- - config/external/moz.build | 5 +++-- - config/system-headers.mozbuild | 8 ++++++++ - dom/media/platforms/moz.build | 5 +++++ - toolkit/moz.configure | 19 ++++++++++++++++++- - 4 files changed, 34 insertions(+), 3 deletions(-) + based on: + commit 717bba28411c + Author: Jory A. Pratt + Date: Thu Jun 13 11:53:00 2019 -0700 + + Bug 1559213 - Allow to use system av1 libs instead of bundled. diff --git config/external/moz.build config/external/moz.build -index 2fc8df57992e..63d18e50a961 100644 +index a24b470396cf..547f5f5c9e04 100644 --- config/external/moz.build +++ config/external/moz.build @@ -40,8 +40,9 @@ if not CONFIG["MOZ_SYSTEM_LIBVPX"]: @@ -27,10 +26,10 @@ index 2fc8df57992e..63d18e50a961 100644 if not CONFIG["MOZ_SYSTEM_PNG"]: external_dirs += ["media/libpng"] diff --git dom/media/platforms/moz.build dom/media/platforms/moz.build -index 5c6e25b3980b..ce99ebfb6d3f 100644 +index 61536cc6e225..29cf635bbb44 100644 --- dom/media/platforms/moz.build +++ dom/media/platforms/moz.build -@@ -81,6 +81,11 @@ if CONFIG["MOZ_AV1"]: +@@ -71,6 +71,11 @@ if CONFIG["MOZ_AV1"]: "agnostic/AOMDecoder.cpp", "agnostic/DAV1DDecoder.cpp", ] @@ -43,10 +42,10 @@ index 5c6e25b3980b..ce99ebfb6d3f 100644 if CONFIG["MOZ_OMX"]: EXPORTS += [ diff --git media/ffvpx/libavcodec/moz.build media/ffvpx/libavcodec/moz.build -index 761fc8cf4cd9..793a5b8697a8 100644 +index 6f09049a6068..90a82a19a9d1 100644 --- media/ffvpx/libavcodec/moz.build +++ media/ffvpx/libavcodec/moz.build -@@ -120,10 +120,14 @@ if not CONFIG['MOZ_FFVPX_AUDIOONLY']: +@@ -119,10 +119,16 @@ if not CONFIG['MOZ_FFVPX_AUDIOONLY']: 'vp9recon.c', 'vpx_rac.c', ] @@ -57,6 +56,8 @@ index 761fc8cf4cd9..793a5b8697a8 100644 + if CONFIG["MOZ_SYSTEM_AV1"]: + CFLAGS += CONFIG['MOZ_SYSTEM_LIBDAV1D_CFLAGS'] + OS_LIBS += CONFIG['MOZ_SYSTEM_LIBDAV1D_LIBS'] ++ CFLAGS += CONFIG['MOZ_SYSTEM_LIBAOM_CFLAGS'] ++ OS_LIBS += CONFIG['MOZ_SYSTEM_LIBAOM_LIBS'] + else: + USE_LIBS += [ + 'dav1d', @@ -65,11 +66,37 @@ index 761fc8cf4cd9..793a5b8697a8 100644 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk": LOCAL_INCLUDES += ['/media/mozva'] SOURCES += [ +diff --git media/libopus/moz.build media/libopus/moz.build +index 943aee79ee99..4ad07e3e98af 100644 +--- media/libopus/moz.build ++++ media/libopus/moz.build +@@ -58,7 +58,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", + ] +diff --git media/libvorbis/moz.build media/libvorbis/moz.build +index cd17d4f89759..816edd72a000 100644 +--- media/libvorbis/moz.build ++++ media/libvorbis/moz.build +@@ -45,7 +45,7 @@ LOCAL_INCLUDES += ['lib'] + if CONFIG['OS_ARCH'] == 'SunOS': + DEFINES['HAVE_ALLOCA_H'] = True + +-if CONFIG["OS_ARCH"] == "Linux": ++if CONFIG["OS_ARCH"] in ("FreeBSD", "Linux"): + OS_LIBS += [ + "m", + ] diff --git toolkit/moz.configure toolkit/moz.configure -index f93a5d64fec8..814357f4e979 100644 +index 1f85d2831f2f..07294b93f850 100644 --- toolkit/moz.configure +++ toolkit/moz.configure -@@ -744,7 +744,23 @@ def av1(value): +@@ -883,7 +883,23 @@ def av1(value): return True @@ -94,7 +121,7 @@ index f93a5d64fec8..814357f4e979 100644 def dav1d_asm(target): if target.cpu in ("aarch64", "x86", "x86_64"): return True -@@ -760,6 +776,7 @@ set_config("MOZ_DAV1D_ASM", dav1d_asm) +@@ -899,6 +915,7 @@ set_config("MOZ_DAV1D_ASM", dav1d_asm) set_define("MOZ_DAV1D_ASM", dav1d_asm) set_config("MOZ_AV1", av1) set_define("MOZ_AV1", av1)