git: 010d7529095e - main - www/librewolf: fix build and enable webrtc on powerpc64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 28 Jan 2023 15:32:47 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=010d7529095ecfe0df5c55787674a91b7d79689f commit 010d7529095ecfe0df5c55787674a91b7d79689f Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2023-01-28 15:32:42 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2023-01-28 15:32:42 +0000 www/librewolf: fix build and enable webrtc on powerpc64 Use the same workaround as for Firefox 108. --- www/librewolf/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/www/librewolf/Makefile b/www/librewolf/Makefile index 7741caaa7d7d..84bd9493ec11 100644 --- a/www/librewolf/Makefile +++ b/www/librewolf/Makefile @@ -77,7 +77,7 @@ FIREFOX_ICON_SRC= ${PREFIX}/lib/${MOZILLA}/browser/chrome/icons/default/default4 FIREFOX_DESKTOP= ${MOZSRC}/taskcluster/docker/firefox-snap/firefox.desktop .if ${ARCH} == powerpc64 -MOZ_OPTIONS+= --disable-webrtc --without-wasm-sandboxed-libraries +MOZ_OPTIONS+= --without-wasm-sandboxed-libraries .else BUILD_DEPENDS+= ${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasi/libc++abi.a:devel/wasi-libcxx \ ${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasi/libc.a:devel/wasi-libc \ @@ -89,6 +89,10 @@ post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/browser/app/nsBrowserApp.cpp @${RM} ${WRKSRC}/mozconfig +.if ${ARCH} == powerpc64 + @${CP} ${PATCHDIR}/RustTabs.jsm ${WRKSRC}/toolkit/components/uniffi-bindgen-gecko-js/components/generated/RustTabs.jsm + @${CP} ${PATCHDIR}/UniFFIGeneratedScaffolding.cpp ${WRKSRC}/toolkit/components/uniffi-js/UniFFIGeneratedScaffolding.cpp +.endif post-install: ${CP} ${FIREFOX_DESKTOP} ${STAGEDIR}${PREFIX}/share/applications/librewolf.desktop